RStudio Crashing on Ubuntu

My version of RStudio is constantly crashing. I get the error

R Session aborted
R encountered a fatal error
The session was terminated

I've not been able to find a reproducible way of making it crash. But it's regular, every few minutes.

  • R 3.6.1 (fresh install)
  • RStudio: 1.2.5001 (fresh install)
  • Ubuntu: 18.04

What other error logs can I provide?

Looking through error logs I've found the following entry

16 Oct 2019 09:27:19 [rsession-ncsg3] ERROR r error 4 (R code execution error) [errormsg=Error in parse(text = capture.output(x)) : <text>:1:1: unexpected input|||1: e|||    ^|||]; OCCURRED AT: rstudio::core::Error rstudio::r::exec::{anonymous}::evaluateExpressionsUnsafe(SEXP, SEXP, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::{anonymous}::EvalType) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/r/RExec.cpp:171; LOGGED FROM: SEXPREC* rstudio::r::sexp::PrimitiveWrappers::operator[](SEXP) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/r/RSexp.cpp:1633

I think this might be related to when I set

# Needed for a package I'm developing
options("crayon.enabled" = TRUE)

Going to investigate. Then raise an issue

Interesting... This is what I run, with no issues.

By R 3.6 you mean 3.6.1, do you?

Does R on command line work?

Consider sudo apt-get --reinstall install r-base-core if it seems R issue.

And just to make sure check Help / Diagnostics / Show Log Files / rsession-your login.log for any funny messages (but that is just RStudio, not R, so possibly nothing there).

1 Like

Thanks. Followed your suggestions. The log part was helpful

1 Like

I've raised an RStudio bug report

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.