New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R 3.6.0 (but not R 3.5.3) incorrectly reports memory.limit() #4986
Comments
|
@WilDoane Thank you for filing this issue. In addition to 1.3, I can reproduce this in 1.2.1335. |
|
I am also experiencing this issue (Rstudio version 1.2.1335, R Version 3.6.1) and it is currently preventing me from increasing the memory limit in R studio. Would be great to get this fixed as I am limited to working on Windows and prefer to work in Rstudio! Any workarounds or fixes I can take? I have set --max-mem-size= 2G, which is reflected in R console but not in RStudio. |
|
For the time being, is there a workaround? I have to switch between RGui and Rstudio in my project because of this bug. |
|
@kevinushey Is there a possible workaround for this? |
|
Not that I'm aware of, unfortunately. It seems unlikely that the wrongly-reported memory limit would be related to allocation failures (which typically implies the R session is running out of memory). I could be wrong, though, and a reproducible example would be helpful (e.g. something that reproduces in RStudio but not RGui) |
|
In my case, I'm not experiencing an allocation error, but the way the ff package initializes it's batch chunk size causes a cascading failure later when chunks of a huge size are attempted. https://r-forge.r-project.org/scm/viewvc.php/pkg/ff/R/zzz.R?view=markup&revision=127&root=ff ReprEx: |
|
Thanks for the bug report. I see a similar error: If I try to set the Either way, it seems clear that some R packages rely on the R session to return accurate output from |
|
Hi everyone, Does any find any solution for fixing this problem? I really need to increase memory limitation in Rstudio to run my analysis. Thanks |
|
Any progress on this? It means I can't use RStudio, |
|
Some notes: Normally, one can set the environment variable The default value for the memory limit is R later tries to set the memory limit when parsing command line options here: But we don't actually ever use R's own command line parser. Instead, we manually set the memory limit here: rstudio/src/cpp/r/session/REmbeddedWin32.cpp Lines 103 to 136 in c6a59ab
So that above code seems to no longer be working as expected. |
|
I think this is the commit that broke things for us: Note that it's possible to raise the memory limit, but not lower it, using I'm looking into solutions... |
|
This will be fixed in the next daily builds of RStudio. If all goes well, we may consider backporting to the v1.2 release. |
|
I am about to re-calibrate a model. Is the backporting planned anytime soon? |
|
We're considering back-porting this fix, but want to be absolutely sure it doesn't cause any other regressions (since the change we had to make to fix this is a bit dangerous). (Moving to v1.2-patch milestone just so it doesn't get lost) |
|
Backported to 1.2 in 74c0a1e. |
|
Verified fixed 1.2.5013. |
|
I am quite new to R/Rstudio and learning the language to handle big data sets. I've come across this same issue now on RStudio version 1.2.5001 where memory.limit() is reporting 1.759219e+13. I'm trying to learn all the terminology here, but is there a way I can backport the fix for RStudio Desktop? It seems like the fix detailed here has only been confirmed for RStudio Server. Or do I need to manually make changes as referenced above by jmcphers? For whatever it is worth, I am running a 64-bit Windows 10 system. Thanks for any insight you all may have. |
|
The issue should be fixed in the latest preview release, which we hope to promote to a patch release very soon. |
On Windows 10 64bit
Base R's memory.limit() function reports wildly different results in (a) R Console and (b) RStudio 1.3.2xx's console for R 3.6.0.
R3.5.3 reports 16279, as expected on my system, in both RConsole and RStudio.
R3.6.0 reports 16279 (R Console) and erroneously reports 17592186044416 (RStudio console)
memory.limit() results:
The text was updated successfully, but these errors were encountered: