[R-SIG-Mac] R GUI Cannot load Interface Builder
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Mar 20 13:21:08 CET 2009
Well, the error seems clear: your R session has too many files open.
Now most OSes do have limited tables of files per process, but the
numbers are not small: on Mac OS I believe it is 256 (that's what bash
reports on mine): 1024 is a common value for other Unixen.
You could try closeAllConnections(), in case that helps enough to let
you shutdown the session (but R allows only 128 connections, so that
is not the main cause here).
Have you any idea what you might be doing that opens hundreds of
files (at a lower level than R). Are you actually using those spatial
packages (it might be one of those)?
It is possible to raise the limit on the number of open files (in
bash, ulimit -n), but this is not advisable unless you need it.
On Fri, 20 Mar 2009, Roland Kaiser wrote:
> I'm using the R GUI with joy ever since, despite some occasional
> misbehaviour. However, the last days I have noticed some errors
> that really waste a considerable amount of time.
> I'm sorry, I can't come up with a reproducible example,
> but I try to explain how the error was raised in my case.
> During testing of code I subsequently executed
> lines by cmd + return.
> After several times suddenly the working directory
> in the GUI shows <deleted> instead of the path.
> Maybe I did some strange key combination here,
> but in the past I did never deleted the path by accident?
> The console then states:
> 2009-03-20 10:06:08.537 R Cannot load Interface Builder file
> I am not able to save any open files, but can copy
> and paste to TextEdit to prevent loss.
> Funny to see what sessionInfo() tells invoked after.
> Fehler in gzfile(file, "rb") : kann Verbindung nicht öffnen
> Zusätzlich: Warning message:
> In gzfile(file, "rb") :
> kann komprimierte Datei
> '/Users/roli/Library/R/2.8/library/maptools/Meta/package.rds' nicht öffnen.
> Grund evtl. 'Too many open files'
> when q() the session console prints again
> … too many open files … and quits.
> SessionInfo after restart and reloading packages and data
> GUI version is Mac OS X GUI rev. 5372 for R 2.8.x
> R version 2.8.1 (2008-12-22)
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> other attached packages:
>  maptools_0.7-16 foreign_0.8-29 spatstat_1.14-9 deldir_0.0-7
>  gpclib_1.4-2 mgcv_1.4-1.1 rgdal_0.6-7 sp_0.9-32
> loaded via a namespace (and not attached):
>  grid_2.8.1 lattice_0.17-17
> Any Ideas what will cause that crash?
> Is a matter of my system locale (German in this case).
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac