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

Rstudio 1.2 crash on any rmd in windws (ERROR: option error has NULL value) #4759

Closed
CorradoLanera opened this issue May 6, 2019 · 34 comments
Labels
Milestone

Comments

@CorradoLanera
Copy link

@CorradoLanera CorradoLanera commented May 6, 2019

System details

RStudio Edition : Desktop
RStudio Versions :  1.2.1335/1511
OS Version      :  win 10 pro
R Version       :  3.6

Steps to reproduce the problem

File --> New file --> R Markdown... --> OK
click on the "play" button of the first chunk (i.e. setup)

Describe the problem in detail

The console starts to show ERROR: option error has NULL value and repeat infinitely to show it again and again (every time in a new line). RStudio is blocked, you can type something on the console but nothing happens if you run it. Menus are shown but nothing happens if you select any option. CPU fun twists very fast, the RStudio processes consume high ammount of RAM and CPU (QtWebEngineProcess.exe QtWebEngineProcess.exe ~30% CPU, 100MB RAM, RStudio R Session ~30% CPU, 4.7GB RAM (after one minute, and constantly increasing)). I can switch off RStuio only by killing the entire processes' group by Task Manager.

Additional info

  1. The output of sessionInfo()
> devtools::session_info()
- Session info ------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.0 (2019-04-26)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_United States.1252  
 ctype    English_United States.1252  
 tz       Europe/Berlin               
 date     2019-05-06                  

- Packages ----------------------------------------------------------------------
 package     * version    date       lib source                      
 assertthat    0.2.1      2019-03-21 [2] CRAN (R 3.6.0)              
 backports     1.1.4      2019-04-10 [2] CRAN (R 3.6.0)              
 callr         3.2.0      2019-03-15 [2] CRAN (R 3.6.0)              
 cli           1.1.0      2019-03-19 [2] CRAN (R 3.6.0)              
 crayon        1.3.4      2017-09-16 [2] CRAN (R 3.6.0)              
 desc          1.2.0      2018-05-01 [2] CRAN (R 3.6.0)              
 devtools      2.0.2      2019-04-08 [2] CRAN (R 3.6.0)              
 digest        0.6.18     2018-10-10 [2] CRAN (R 3.6.0)              
 fs            1.2.7      2019-03-19 [2] CRAN (R 3.6.0)              
 glue          1.3.1      2019-03-12 [2] CRAN (R 3.6.0)              
 magrittr      1.5        2014-11-22 [2] CRAN (R 3.6.0)              
 memoise       1.1.0      2017-04-21 [2] CRAN (R 3.6.0)              
 pkgbuild      1.0.3      2019-03-20 [2] CRAN (R 3.6.0)              
 pkgload       1.0.2      2018-10-29 [2] CRAN (R 3.6.0)              
 prettyunits   1.0.2      2015-07-13 [2] CRAN (R 3.6.0)              
 processx      3.3.0      2019-03-10 [2] CRAN (R 3.6.0)              
 ps            1.3.0      2018-12-21 [2] CRAN (R 3.6.0)              
 R6            2.4.0      2019-02-14 [2] CRAN (R 3.6.0)              
 Rcpp          1.0.1      2019-03-17 [2] CRAN (R 3.6.0)              
 remotes       2.0.4      2019-04-10 [2] CRAN (R 3.6.0)              
 rlang         0.3.4.9003 2019-04-30 [2] Github (r-lib/rlang@09989a3)
 rprojroot     1.3-2      2018-01-03 [2] CRAN (R 3.6.0)              
 rstudioapi    0.10       2019-03-19 [2] CRAN (R 3.6.0)              
 sessioninfo   1.1.1      2018-11-05 [2] CRAN (R 3.6.0)              
 testthat      2.1.1      2019-04-23 [2] CRAN (R 3.6.0)              
 usethis       1.5.0      2019-04-07 [2] CRAN (R 3.6.0)              
 withr         2.1.2      2018-03-15 [2] CRAN (R 3.6.0)              

[1] C:/Users/corra/Documents/R/win-library/3.6
[2] C:/Program Files/R/R-3.6.0/library

This can be related with #4752 but my .RProfile is empty.
I have tried to add to it rstudio.errors.suppressed=FALSE as suggested in #4723 but it did not fix the issue.

  1. A diagnostics report:
    diagnostics-report.txt
@jmcphers
Copy link
Member

@jmcphers jmcphers commented May 6, 2019

We have a fix for #4723 available; would you be willing to try a build and let us know if it fixes the problem for you?

https://s3.amazonaws.com/rstudio-ide-build/desktop/windows/RStudio-1.2.1518.exe

@jmcphers jmcphers added this to the v1.2-patch milestone May 6, 2019
@CorradoLanera
Copy link
Author

@CorradoLanera CorradoLanera commented May 6, 2019

Wonderfull. Solved for me!

@jmcvw
Copy link

@jmcvw jmcvw commented May 7, 2019

Hey, I have been suffering the same problem all day. This worked for me too.

@anjesh
Copy link

@anjesh anjesh commented May 8, 2019

Do you have build for MacOS with this fix? I found the build https://s3.amazonaws.com/rstudio-ide-build/desktop/macos/RStudio-1.2.1511.dmg by hit and trial but it also has the same problem ERROR: option error has NULL value when executing chunks in Rmd

@datadavidz
Copy link

@datadavidz datadavidz commented May 8, 2019

I had same issue on Windows and this build fixed it.

@jmcphers
Copy link
Member

@jmcphers jmcphers commented May 8, 2019

@anjesh No, we're working on getting a MacOS build out!

@chelauk
Copy link

@chelauk chelauk commented May 9, 2019

Hi, I am encountering the same problem, linux ubuntu 14.04 rstudio Version 1.2.1335 R3.6

@chasemc
Copy link

@chasemc chasemc commented May 13, 2019

Fixed the problem for me on Windows

We have a fix for #4723 available; would you be willing to try a build and let us know if it fixes the problem for you?

https://s3.amazonaws.com/rstudio-ide-build/desktop/windows/RStudio-1.2.1518.exe

@kornl
Copy link

@kornl kornl commented May 14, 2019

Same for Ubuntu and the Linux build https://s3.amazonaws.com/rstudio-ide-build/desktop/bionic/amd64/rstudio-1.2.1518-amd64.deb that can be found at the same adress.

@ramnathv
Copy link

@ramnathv ramnathv commented May 15, 2019

@jmcphers Any updates on when the Mac OS build will be out?

@jmcphers
Copy link
Member

@jmcphers jmcphers commented May 16, 2019

Today! Give it a try:

@jmcphers
Copy link
Member

@jmcphers jmcphers commented May 16, 2019

https://www.rstudio.com/products/rstudio/download/preview/

@anjesh
Copy link

@anjesh anjesh commented May 17, 2019

Still getting the same issue ERROR: option error has NULL value when executing chunks in Rmd. I am using the following

> R.version
               _                           
platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          6.0                         
year           2019                        
month          04                          
day            26                          
svn rev        76424                       
language       R                           
version.string R version 3.6.0 (2019-04-26)
nickname       Planting of a Tree          
> RStudio.Version()
$mode
[1] "desktop"

$version
[1] ‘1.2.1511’

@ramnathv
Copy link

@ramnathv ramnathv commented May 17, 2019

Mmmm. For some reason the preview page has reverted back to the older preview version. When I visited that page earlier today, I was pointed to v 1.2.1522 which resolves the issue.

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 17, 2019

Yes, we hit an issue with the 1.2.1522 and had to revert to the previous build until we sort it out. Sorry about that!

@ramnathv
Copy link

@ramnathv ramnathv commented May 17, 2019

@gtritchie Thanks! I am using 1.2.1522 and have not run into any issues so far. But I will wait for a better build. Thanks again!

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 17, 2019

The issue under investigation appears to be Mac-only, so probably fine to keep using 1.2.1522 on Windows if you've already got it installed.

@ramnathv
Copy link

@ramnathv ramnathv commented May 17, 2019

Oh. I am actually using the Mac version of 1.2.1522. Would you recommend that I downgrade to 1.2.1511?

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 17, 2019

If it’s working should be fine. The issue is that on some systems (i.e. mine) it won’t start.

@anjesh
Copy link

@anjesh anjesh commented May 17, 2019

https://s3.amazonaws.com/rstudio-ide-build/desktop/macos/RStudio-1.2.1522.dmg works without error in my mac. Thanks.

@xrobin
Copy link

@xrobin xrobin commented May 17, 2019

1.2.1522 is working fine on my mac with Mojave 10.14.4.

@gtritchie It should be noted that v. 1.2.1511 and the current stable do not work either, as per this bug they crash with Rmd files, and other stuff like option(error= ... ). So I don't see the point to revert to an other broken version. But anyways thanks @anjesh for the direct link.

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 17, 2019

On some machines 1.2.1522 would not start at all, which was deemed worse. An updated preview build is in progress.

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 17, 2019

The updated 1.2.1522 preview build is up at https://www.rstudio.com/products/rstudio/download/preview/

@chienc1
Copy link

@chienc1 chienc1 commented May 24, 2019

https://s3.amazonaws.com/rstudio-ide-build/desktop/macos/RStudio-1.2.1522.dmg works without error in my mac. Thanks.

This also worked for me on MacOS with Mojave 10.14.5!

@ronblum
Copy link
Contributor

@ronblum ronblum commented Jun 7, 2019

Verified problem is resolved based on feedback above.

@Walt3r1
Copy link

@Walt3r1 Walt3r1 commented Jun 18, 2019

Was getting the same error "ERROR: option error has NULL value", and same behavior. The release of RStudio v1.2.1541-1 solved the problem. Thanks.

@ThierryO
Copy link

@ThierryO ThierryO commented Aug 30, 2019

One of my co-workers has the same problem with an older version of RStudio (1.1.463). He can't upgrade because he needs a 32-bit R version.

The solution was to upgrade all packages to R 3.6.1 with update.packages(ask = FALSE, checkbuil = TRUE). Then install the development version of the rstudioapi package from GitHub instead of the CRAN version remotes::install_github("rstudio/rstudioapi")

@axelpuri
Copy link

@axelpuri axelpuri commented Oct 24, 2019

We have a fix for #4723 available; would you be willing to try a build and let us know if it fixes the problem for you?

https://s3.amazonaws.com/rstudio-ide-build/desktop/windows/RStudio-1.2.1518.exe

Hi the download isnt working !

@ronblum
Copy link
Contributor

@ronblum ronblum commented Oct 24, 2019

@axelpuri The current released version is 1.2.5001 at https://rstudio.com/products/rstudio/download/#download . There's also a preview of the upcoming update https://rstudio.com/products/rstudio/download/preview/ , if you are interested.

@axelpuri
Copy link

@axelpuri axelpuri commented Oct 24, 2019

@axelpuri The current released version is 1.2.5001 at https://rstudio.com/products/rstudio/download/#download . There's also a preview of the upcoming update https://rstudio.com/products/rstudio/download/preview/ , if you are interested.

Hi ronblum
thanks for your reply

I'm getting another error which comes repeatedly in the console similar to the rmarkdown error earlier
while working in ggplot this is something I havent seen before
Error in fetch(key) :
lazy-load database 'C:/Users/axelp/OneDrive/Documents/R/win-library/3.6/ggplot2/help/ggplot2.rdb' is corrupt

I switched to Rscript from markdown yet the agony persists ! :/

@ronblum
Copy link
Contributor

@ronblum ronblum commented Oct 24, 2019

@axelpuri Can you file a new issue for this? It sounds like a different problem. Thanks!

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Oct 24, 2019

This is a known issue -- this can occur when you reinstall an already-installed package. Restarting the R session will fix it.

@Ayeshasaeedhaq
Copy link

@Ayeshasaeedhaq Ayeshasaeedhaq commented Feb 12, 2020

I have restarted and reinstalled R and that didnt fix this error. Do you have any tips?

@msmith01
Copy link

@msmith01 msmith01 commented Oct 29, 2020

What fixed this issue for me was adding the file location to Python to the PATH in windows.

Search "PATH" in the windows search bar, then select "Internal Variables", then go to "Path" in the "System Variables" and click "Edit" and add the PATH ( "C:/Users/myUSER/Anaconda3/python.exe" ) to Python here.

Then in R just run:

reticulate::use_python("C:/Users/myUSER/Anaconda3/python.exe")

Where the use_python() contains the Python version you added to the PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests