fatal error and poor performance in rStudio but not console

Hello,

I recently received a new work computer (Mac, Sonoma 14.4.1), on this machine I am running rStudio through a virtual instance of Windows 11. This is a similar arrangement that I had working with no issues on my previous machine.

My issue is that rStudio appears to be running commands very slowly (e.g., ~45 sec for setwd) and encounters a fatal error and aborts the session when running a command from the RODBC library (odbcConnectAccess2007). However, performance within the R console appears fine and I encounter no error when running odbcConnectAccess2007.

I have tried an uninstall and reinstall to no avail.

I'm unsure how to sort this one and would be very appreciative of any help! Log file pasted below.

Thank you!

2024-04-29T15:11:29.838218Z [rsession-dandrews] ERROR jsonrpc error 1 (Could not check for updates. Please check the network connection.) [r-error: Error in file(filename, "r", encoding = encoding) : 
  cannot open the connection
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  cannot open file 'C:/Program Files/RStudio/resources/app/R/modules/SessionUpdates.R': No such file or directory
Execution halted
]; OCCURRED AT void __cdecl rstudio::session::modules::updates::`anonymous-namespace'::endRPCUpdateCheck(const class rstudio_boost::function<void __cdecl(class rstudio::core::Error const &,class rstudio::core::json::JsonRpcResponse *)> &,const struct rstudio::core::system::ProcessResult &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\SessionUpdates.cpp:143; LOGGED FROM: void __cdecl rstudio::session::modules::updates::`anonymous-namespace'::endRPCUpdateCheck(const class rstudio_boost::function<void __cdecl(class rstudio::core::Error const &,class rstudio::core::json::JsonRpcResponse *)> &,const struct rstudio::core::system::ProcessResult &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\SessionUpdates.cpp:145
2024-04-29T15:11:29.838218Z [rsession-dandrews] ERROR jsonrpc error 1 (Could not check for updates. Please check the network connection.) [r-error: Error in file(filename, "r", encoding = encoding) : 
  cannot open the connection
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  cannot open file 'C:/Program Files/RStudio/resources/app/R/modules/SessionUpdates.R': No such file or directory
Execution halted
]; OCCURRED AT void __cdecl rstudio::session::modules::updates::`anonymous-namespace'::endRPCUpdateCheck(const class rstudio_boost::function<void __cdecl(class rstudio::core::Error const &,class rstudio::core::json::JsonRpcResponse *)> &,const struct rstudio::core::system::ProcessResult &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\SessionUpdates.cpp:143; LOGGED FROM: void __cdecl rstudio::session::modules::updates::`anonymous-namespace'::endRPCUpdateCheck(const class rstudio_boost::function<void __cdecl(class rstudio::core::Error const &,class rstudio::core::json::JsonRpcResponse *)> &,const struct rstudio::core::system::ProcessResult &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\SessionUpdates.cpp:145
2024-04-29T15:23:30.877943Z [rsession-dandrews] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161
2024-04-29T15:23:30.877943Z [rsession-dandrews] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161
2024-04-29T15:23:30.968801Z [rsession-dandrews] ERROR system error 2 (The system cannot find the file specified) [path: C:/Users/dandrews/AppData/Local/RStudio/jobs/27E808BB-output.json]; OCCURRED AT auto __cdecl rstudio::core::FilePath::openForRead::<lambda_2680836a0c4eb06d115e894dc84dc1dd>::operator ()(void) const src/cpp/shared_core/FilePath.cpp:1468; LOGGED FROM: class rstudio::core::json::Array __cdecl rstudio::session::modules::jobs::Job::output(int) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\jobs\Job.cpp:494
2024-04-29T15:23:30.968801Z [rsession-dandrews] ERROR system error 2 (The system cannot find the file specified) [path: C:/Users/dandrews/AppData/Local/RStudio/jobs/27E808BB-output.json]; OCCURRED AT auto __cdecl rstudio::core::FilePath::openForRead::<lambda_2680836a0c4eb06d115e894dc84dc1dd>::operator ()(void) const src/cpp/shared_core/FilePath.cpp:1468; LOGGED FROM: class rstudio::core::json::Array __cdecl rstudio::session::modules::jobs::Job::output(int) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\modules\jobs\Job.cpp:494
2024-04-29T15:35:18.498555Z [rsession-dandrews] ERROR CLIENT EXCEPTION (rsession-dandrews): TypeError: Cannot read properties of undefined (reading 'singular');|||http://127.0.0.1:18719/rstudio/5211D105E03B661ABAB3208B894B3099.cache.js#-1::showTooltip|||com/google/gwt/animation/client/Animation.java#29::this$01|||http://127.0.0.1:18719/rstudio/5211D105E03B661ABAB3208B894B3099.cache.js#-1::anonymous|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: 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
2024-04-29T15:35:18.498555Z [rsession-dandrews] ERROR CLIENT EXCEPTION (rsession-dandrews): TypeError: Cannot read properties of undefined (reading 'singular');|||http://127.0.0.1:18719/rstudio/5211D105E03B661ABAB3208B894B3099.cache.js#-1::showTooltip|||com/google/gwt/animation/client/Animation.java#29::this$01|||http://127.0.0.1:18719/rstudio/5211D105E03B661ABAB3208B894B3099.cache.js#-1::anonymous|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: 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
2024-04-29T15:44:49.879702Z [rsession-dandrews] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161
2024-04-29T15:44:49.879702Z [rsession-dandrews] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-ocean-storm\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161
...

What about to run it from MacOS terminal, or install Bash shell and use the Linux version of Rstudio?

Was your old Mac an Intel-based model, and your new Mac using an ARM processor? That is, Apple Silicon (e.g. M1, M2, etc.)?

If the virtual Windows environment is running directly on your Mac (e.g. via Parallels or VMWare or some other similar technology), then your virtual Windows machine is running RStudio via Intel CPU emulation (there is no ARM version of RStudio for WIndows), and this could account for much of the slowdown.

You'd likely have much better performance running the Mac version of RStudio, but understand that might not be an option in your work environment.

FYI, there is an issue tracking creation of an ARM version of RStudio for Windows, but that's not yet scheduled to be implemented. Add builds for Windows on ARM, for Surface Pro X / Surface Pro 9 / etc. · Issue #11977 · rstudio/rstudio · GitHub

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