RStudio won't start. R encountered a fatal error. R session failed to start.

I have been using RStudio for a while. Most recently I tried opening RStudio and it says it encountered a fatal error. The session has been terminated. It won't start and I can't work on it. I read in previous posts it could be due to .RData being loaded every time RStudio starts. I deleted all my .RData files and RStudio still won't start. Attached is the problem report. Any help would be greatly appreciated.

R Session Startup Failure Report

RStudio Version

RStudio 2023.06.0+421 "Mountain Hydrangea " (583b465e, 2023-06-05) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.06.0+421 Chrome/110.0.5481.208 Electron/23.3.0 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 1.

Error output:

[No errors emitted]

Standard output:

[No output emitted]

Logs

) [errormsg: Error in exists(cacheKey, where = .rs.CachedDataEnv, inherits = FALSE) :
invalid first argument
]; OCCURRED AT rstudio::core::Error rstudio::r::exec::(anonymous namespace)::evaluateExpressionsUnsafe(SEXP, SEXP, SEXP *, sexp::Protect *, rstudio::r::exec::(anonymous namespace)::EvalType) src/cpp/r/RExec.cpp:228; LOGGED FROM: rstudio::core::Error rstudio::session::modules::data::viewer::(anonymous namespace)::getGridData(const http::Request &, http::Response *) src/cpp/session/modules/data/DataViewer.cpp:870

It's not you, it's RStudio. I've learned to leave my versions on macOS and Ubuntu running along until some later version introduces a must-have feature and even then, I'll let the dust settle before throwing in my lot with the intrepid explorers of the wildnerness. Under the hood, RStudio is quite complex and it's understandable that this type of issue can crop up yet escape their testing (that's another sore point with me but not relevant here.)

Fortunately, it's not too hard to downversion. I'm on Elspeth Geranium from earlier this year and have none of these problems, but I did have to do some fine tuning of my config setup elements. So, look at the dailies and try either the latest, Desert Sunflower, or the previous, Cherry Blossom. These are universal builds, which isn't ideal if you are running Silicon, but worth a try.

1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.