RStudio: Error Starting R

The latest RStudio update is not working in a corporate environment. I believe this is due to the recent RStudio AI update. I'm updating from 2025.09.0-387

R Session Startup Failure Report

RStudio Version

RStudio 2026.04.0+526 "Globemaster Allium " (57f8932a, 2026-04-18) for windows

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2026.04.0+526 Chrome/142.0.7444.265 Electron/39.8.7 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 3221225477.

Error output:

[No errors emitted]

Standard output:

[No output emitted]

Logs

Log File

[No logs available]

If I had to guess, I think this is because RStudio AI may be trying to create a network connection that our firewall is blocking. If I reinstall the old version of RStudio, that version will work.

A previous report of that error code was fixed by resetting RStudio's state.

Thanks for the help. I did try that. This what AI is telling me,

"After clearing all RStudio user state, RStudio still fails before launching R. Logs show Electron renderer and localhost server startup failures (ERR_CONNECTION_RESET, Object has been destroyed). Even the local static error UI cannot render. This indicates the RStudio Desktop runtime itself is being terminated (Electron crash / security interference / corrupt install), not a project, R, or OneDrive issue."

If that's true, there's likely some sort of corporate security software on my machine that's killing the R process for some reason. For now I'll use either an older version of RStudio and Visual Studio Code. Hopefully there'll be a workaround in the future.

Being blocked by a security layer is a possibility. Regarding the AI Assistant, I upgraded to Build 526 a while ago. It has a toolbar button for the assistant, but the assistant itself is not installed. So unless you explicitly installed the assistant, that's not the culprit.

1 Like

I also had a similar error, when I tried to open an existing R project that utilizes renv and thus contains .Rprofile. The error page suggested to Remove startup customizations such as an .Rprofile file, if present. and if I remove that .Rprofile I can open the project, but it means that I have to re-initialize the renv of the project.

R Session Startup Failure Report

RStudio Version

RStudio 2026.04.0+526 "Globemaster Allium " (57f8932a, 2026-04-18) for windows

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2026.04.0+526 Chrome/142.0.7444.265 Electron/39.8.7 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 3221225477.

Error output:

[No errors emitted]

Standard output:

[No output emitted]

Logs

C:/Users/%USERNAME%/AppData/Local/RStudio/log/rsession-MYNAME.log

2026-05-01T07:58:15.129126Z [rsession-MYNAME] ERROR system error 42 (Unknown error (42)) [str: ใ‚€, len: 3, from: UTF-8, to: ISO8859-1]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::r::util::`anonymous-namespace'::iconvstrImpl(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *) src/cpp/r/RUtil.cpp:268; LOGGED FROM: class rstudio::core::Error __cdecl rstudio::session::modules::spelling::`anonymous-namespace'::checkSpelling(const struct rstudio::core::json::JsonRpcRequest &,class rstudio::core::json::JsonRpcResponse *) C:\Users\jenkins\workspace\ide-os-windows\rel-globemaster-allium\src\cpp\session\modules\SessionSpelling.cpp:225
2026-05-01T08:17:15.116974Z [rsession-MYNAME] ERROR system error 3 (ๆŒ‡ๅฎšใ•ใ‚ŒใŸใƒ‘ใ‚นใŒ่ฆ‹ใคใ‹ใ‚Šใพใ›ใ‚“ใ€‚) [path: C:/Users/%USERNAME%/Documents/r-msw-survey-master/r-msw-survey-master/.Rproj.user/87BC2E11/scratch-path]; OCCURRED AT auto __cdecl rstudio::core::FilePath::openForRead::<lambda_1>::operator ()(void) const src/cpp/shared_core/FilePath.cpp:1611; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::projects::`anonymous-namespace'::computeUserDir(const class rstudio::core::FilePath &,const struct rstudio::core::r_util::RProjectConfig &) C:\Users\jenkins\workspace\ide-os-windows\rel-globemaster-allium\src\cpp\session\projects\SessionProjectContext.cpp:153
2026-05-01T08:17:15.116974Z [rsession-MYNAME] ERROR system error 3 (ๆŒ‡ๅฎšใ•ใ‚ŒใŸใƒ‘ใ‚นใŒ่ฆ‹ใคใ‹ใ‚Šใพใ›ใ‚“ใ€‚) [path: C:/Users/%USERNAME%/Documents/r-msw-survey-master/r-msw-survey-master/.Rproj.user/87BC2E11/scratch-path]; OCCURRED AT auto __cdecl rstudio::core::FilePath::openForRead::<lambda_1>::operator ()(void) const src/cpp/shared_core/FilePath.cpp:1611; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::session::projects::`anonymous-namespace'::computeUserDir(const class rstudio::core::FilePath &,const struct rstudio::core::r_util::RProjectConfig &) C:\Users\jenkins\workspace\ide-os-windows\rel-globemaster-allium\src\cpp\session\projects\SessionProjectContext.cpp:153

1 Like

Thank you! Deleting my RProfile fixed the issue.

FYI, downgrading the version of RStudio (2026.04.0 -> 2026.01.2) along with R (4.6.0 -> 4.5.3) also resolved the error without removing .Rprofile, so it seems that there's something wrong with the current versions.

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.