Error starting RStudio (2022.12.0+353) from the command line (Ubuntu 22.04.1 LTS)

I updated RStudio to 2022.12.0+353 on my Ubuntu laptop this morning.
When I open RStudio from the command line (cd some_project; rstudio some_project.Rproj &) I get an error message and RStudio fails to open.

RStudio does open correctly when I use the applications menu icon, or an RStudio icon on my "favourites" list. It also opens correctly when I run rstudio from the command line (opening with working directory == my home directory, rather than the directory where the command line call was made).

The error message (printed inside an RStudio window) is as follows:

Error Starting R
The R session failed to start.

RSTUDIO VERSION
RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for Ubuntu Jammy
[No error available]
[No errors emitted]
OUTPUT
[No output emitted]

/home/russ/.local/share/rstudio/log/rsession-russ.log
2022-12-23T12:03:16.515258Z [rsession-russ] ERROR system error 2 (No such file or directory); OCCURRED AT rstudio::core::Error rstudio::core::FilePath::getChildren(std::vector<rstudio::core::FilePath>&) const src/cpp/shared_core/FilePath.cpp:931; LOGGED FROM: rstudio::core::Error rstudio::session::projects::ProjectContext::startup(const rstudio::core::FilePath&, std::string*) src/cpp/session/projects/SessionProjectContext.cpp:268
2022-12-23T12:03:16.515623Z [rsession-russ] ERROR system error 2 (No such file or directory) [path: ]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::makeCurrentPath(bool) const src/cpp/shared_core/FilePath.cpp:1400; LOGGED FROM: int main(int, char* const*) src/cpp/session/SessionMain.cpp:2255
2022-12-23T12:03:16.515623Z [rsession-russ] ERROR system error 2 (No such file or directory) [path: ]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::makeCurrentPath(bool) const src/cpp/shared_core/FilePath.cpp:1400; LOGGED FROM: int main(int, char* const*) src/cpp/session/SessionMain.cpp:2255

NEXT STEPS
R can fail to start up for many reasons. The following may help you resolve the problem:

Investigate any errors above.
Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).
Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.
Remove startup customizations such as an .Rprofile file, if present.
If posting this report online, use the Copy Problem Report button below to generate a textual version of this diagnostic.
Further troubleshooting help can be found on our website:

Troubleshooting RStudio Startup

In the terminal window where RStudio was started from, I have the following errors printed out as well:

> rstudio some_project.Rproj
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[16493:1223/120516.508404:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is desktop, ANGLE is 
[16493:1223/120519.102827:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[16493:1223/120520.541387:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[16493:1223/120521.752118:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

I can start R (4.2.2) from that terminal window and am not using anything like renv or rig or conda - my R is ran from /usr/bin/R.

Any help would be greatly appreciated

Russ

This seems to duplicate an issue in a previous post: Ubuntu 22.04 Rstudio (2022.12.0-353) do not work.

This topic was automatically closed 21 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.