Skip to content
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

timespace.R - crash on line 77 #9

Closed
jaromf opened this issue Oct 31, 2019 · 3 comments
Closed

timespace.R - crash on line 77 #9

jaromf opened this issue Oct 31, 2019 · 3 comments

Comments

@jaromf
Copy link

jaromf commented Oct 31, 2019

When running line 77 summary(ARdj <- glm(dja[2:n] ~ d of timespace.R, R Studio crashes and reports a "Segmentation fault" in the Bash terminal. I read on StackOverflow that this could be due to limited memory. I'm running Crostini / Debian on a Pixelbook with 8 GB ram and approx. 80 GB free disk space. Can anyone suggest a possible solution or troubleshooting tips?

@jaromf
Copy link
Author

jaromf commented Oct 31, 2019

Here's the result of running 'gc(ARdj)`

gc(ARdj)
Garbage collection 15 = 12+0+3 (level 2) ...
26.9 Mbytes of cons cells used (53%)
7.6 Mbytes of vectors used (12%)
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 502063 26.9 944981 50.5 944981 50.5
Vcells 988437 7.6 8388608 64.0 1762250 13.5

BTW - running summary() on line 80 summary( glm(returns[2:n] ~ returns[1:(n-1)]) ) works fine and does not result in a crash

@mataddy
Copy link
Member

mataddy commented Oct 31, 2019

hi @jaromf I can't replicate this error and it does indeed look like a memory issue. The memory that matters is the 8GB -- your working memory. Nothing in this file is big enough to fill that up so it must be that either (a) you have a bunch of other stuff in R using up working memory or (b) other applications are taking all the working memory. I'd suspect (a), so quit R studio and when you re-launch make sure that it is not loading any saved objects from previous sessions (i.e., make sure to not save your session).

@jaromf
Copy link
Author

jaromf commented Nov 3, 2019

Hi @mataddy I tried clearing as much RAM as possible, but still run into the issue. I posted the topic on a related thread in Rstudio Community. Ultimately, I may need to use a computer with more RAM. I'm thinking about setting up a powerful desktop computer and accessing it remotely as needed. https://community.rstudio.com/t/rstudio-desktop-on-a-chromebook-without-crouton-using-new-linux-beta-option/17393/9

@mataddy mataddy closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants