Error starting R since update to 2022.12.0

Hi,

Since I have updated to rstudio-2022.12.0-353-amd64.deb on my Ubuntu Linux 20.04.5 LTS installation, I have started getting R startup errors when I start a RStudio project from the command line. For example:

rstudio myproject.Rproj

fails with the error report below. I have had the same issue on two different computers. In both cases, R starts without an issue from the command line and rstudio starts without error if I do not initially specify a project file. Without error I can switch into the project (e.g., myproject.Rproj above) after starting up rstudio without specifying a project file.

R Session Startup Failure Report

RStudio Version

RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for Ubuntu Bionic

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 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

/home/dmk/.local/share/rstudio/log/rsession-dmk.log

2023-01-03T13:47:50.435480Z [rsession-dmk] 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::__cxx11::string*) src/cpp/session/projects/SessionProjectContext.cpp:268
2023-01-03T13:47:50.437963Z [rsession-dmk] 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
2023-01-03T13:47:50.437963Z [rsession-dmk] 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

I just realized that

rstudio myproject.Rproj

fails (though it used to work just fine before the latest rstudio release), but the following opens without issue:

rstudio $PWD/myproject.Rproj

I also find that

rstudio ./myproject.Rproj

Opens but it shows just a . as the project name in the upper right-hand corner of the RStudio window.

I am experiencing the exact same issue, with the same workaround of using rstudio $PWD/myproject.Rproj working. I am on an Ubuntu 22.04.1 LTS system using R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid".

This appears to be a tracked issue - rstudio fails to open projects using relative path from command line on Ubuntu 22 · Issue #12495 · rstudio/rstudio (github.com)

1 Like

Thanks, you are correct, this appears to be the same issue.