MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #15639] list.files(...,recursive=TRUE) fails on Mac GUI #5199

Open MichaelChirico opened 4 years ago

MichaelChirico commented 4 years ago

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.


METADATA

MichaelChirico commented 4 years ago

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.


METADATA

MichaelChirico commented 4 years ago

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") ]


METADATA

MichaelChirico commented 4 years ago

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)


METADATA

MichaelChirico commented 4 years ago

(In reply to Jonathan Greenberg from comment #3)

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)

I'm still on R 3.6 and tested with [R.app GUI 1.70 (7657) x86_64-apple-darwin15.6.0]

I let it run for about 20 minutes and no C stack issue (didn't finish though).

Maybe not enough to close the issue; Jonathan, could you try reproducing again?


METADATA