Bug 15639 - list.files(...,recursive=TRUE) fails on Mac GUI
Summary: list.files(...,recursive=TRUE) fails on Mac GUI
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 3.0.2
Hardware: Other OS X Mavericks
: P5 major
Assignee: Simon Urbanek
URL:
Depends on:
Blocks:
 
Reported: 2014-01-14 23:58 UTC by Jonathan Greenberg
Modified: 2014-01-15 03:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Greenberg 2014-01-14 23:58:05 UTC
When using the Mac GUI, if I do a large search beginning at the root level:
list.files(pattern="moomoo",path="/",recursive=TRUE)

I get an error:
Error: C stack usage is too close to the limit

Note that this error does NOT appear to occur if I call R from a Mac terminal window.
Comment 1 Jonathan Greenberg 2014-01-14 23:59:07 UTC
As an additional note, the GUI version (the standard R 3.0.2 install):
R 3.0.2 GUI 1.62 Snow Leopard build (6558)

The error occurs VERY quickly after executing it.
Comment 2 Simon Urbanek 2014-01-15 03:13:35 UTC
I cannot replicate it. I have no issues in either and the base stack usage is not very different:

# in console R:
> unixtools::stack.info()
   used   total 
   9428 8388608 

# in R.app:
> unixtools::stack.info()
   used   total 
   4916 8388608 

The default stack size in both is 8Mb which is reasonably big.
Please check your stack sizes - they may be different depending on your local settings.

[ You can get unixtools via install.packages("unixtools",,"http://rforge.net") ]
Comment 3 Jonathan Greenberg 2014-01-15 03:24:05 UTC
Simon: results below.  As a note I've never touched the stack size (I'm not even sure what it is referring to):

In the Mac GUI:
> unixtools::stack.info()
   used   limit 
   9812 8388608 

Command line R:
> unixtools::stack.info()
   used   limit 
   9812 8388608 

My hardware:
Hardware Overview:

  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro10,1
  Processor Name:	Intel Core i7
  Processor Speed:	2.7 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	8 MB
  Memory:	16 GB
  Boot ROM Version:	MBP101.00EE.B02
  SMC Version (system):	2.3f36
  Serial Number (system):	C02J11Z2DKQ5
  Hardware UUID:	D64AB854-2F8C-5359-AD7B-3AD620E34ED2

Interestingly, I just ran the list.files(...) again and got a new error (in the R GUI):

2014-01-14 21:22:22.633 R[30894:1103] Persistent UI failed to open file file://localhost/Users/jgrn307/Library/Saved%20Application%20State/org.R-project.R.savedState/window_2.data: Too many open files (24)