R Session Startup Failure Report
RStudio Version
RStudio 2023.12.1+402 "Ocean Storm " (4da58325, 2024-01-28) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.12.1+402 Chrome/116.0.5845.190 Electron/26.2.4 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/liang/AppData/Local/RStudio/log/rsession-liang.log
2024-03-11T15:21:03.098761Z [rsession-liang] ERROR Unable to retrieve user home path. HRESULT: 0x80070003; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::core::system::userSettingsPath(const class rstudio::core::FilePath &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,bool) src/cpp/core/system/Win32System.cpp:341
When I start Rstudio or run R code, it crashes randomly. The error messages were not same every time, but ERROR Unable to retrieve user home path. HRESULT: 0x80070003 occured more often.
I have tried everything from the github issues and posit community, but it is useless.
I have tried different versions of R from 4.3.0-4.3.3, but it is useless.