[R-sig-Geo] readRAST6: too many open files

Roger Bivand Roger.Bivand at nhh.no
Tue May 5 17:30:06 CEST 2009


On Tue, 5 May 2009, Agustin Lobo wrote:

> Here it is:
>
> R version 2.9.0 (2009-04-17)
> i486-pc-linux-gnu
>
> locale:
> LC_CTYPE=es_ES.UTF-8;LC_NUMERIC=C;LC_TIME=es_ES.UTF-8;LC_COLLATE=es_ES.UTF-8;LC_MONETARY=C;LC_MESSAGES=es_ES.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base 
> other attached packages:
> [1] spgrass6_0.6-4 XML_1.95-3     rgdal_0.6-7    sp_0.9-34 
> loaded via a namespace (and not attached):
> [1] grid_2.9.0      lattice_0.17-22
>
>
> We are upgrading to match your versions, will retry and let you know

Is it possible that this only happens with the default plugin=NULL 
argument to readRAST6(), and you have a GRASS GDAL plugin, so it gets 
auto-found and used? Does it still happen when plugin=FALSE?

Roger

>
> Agus
>
> Roger Bivand wrote:
>> On Tue, 5 May 2009, Agustin Lobo wrote:
>> 
>>> We're using
>>> rastdum <- readRAST6("nomdum",cat=F,ignore.stderr = T)
>>> 
>>> (on a ubuntu 8.10 machine and R 2.9)
>>> within a for() loop of hundreds of iterations.
>>> 
>>> At some point (ca. 199) we get an error
>>> "Too many open files"
>>> 
>>> and suspect that this is because readRAST6() is opening
>>> and not closing files. Is this a bug?
>> 
>> Possibly, but a complete sessionInfo() would be necessary - the versions of 
>> the packages involved may matter. Does this reproduce with readRAST6() in a 
>> loop reading say the same raster? I've run 300 reads of spearfish 
>> elevation.dem without seeing problems for:
>> 
>>> sessionInfo()
>> R version 2.9.0 (2009-04-17)
>> i386-pc-mingw32
>> 
>> locale:
>> LC_COLLATE=Norwegian (Bokmål)_Norway.1252;LC_CTYPE=Norwegian 
>> (Bokmål)_Norway.1252;LC_MONETARY=Norwegian 
>> (Bokmål)_Norway.1252;LC_NUMERIC=C;LC_TIME=Norwegian (Bokmål)_Norway.1252
>> 
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>> 
>> other attached packages:
>> [1] spgrass6_0.6-5 XML_2.3-0      rgdal_0.6-8    sp_0.9-36
>> 
>> loaded via a namespace (and not attached):
>> [1] grid_2.9.0      lattice_0.17-22
>> 
>> Roger
>> 
>>> I remember having
>>> a similar problem with writeGDAL() on a win machine a long ago,
>>> but that problem was fixed.
>>> 
>>> Thanks
>>> 
>>> Agus
>>> 
>>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>> 
>
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no


More information about the R-sig-Geo mailing list