R Session Aborted: R encountered a fatal error when navigating in the file tab.

Hi when I navigate in the file tab(the right bottom corner), R Studio always gives me "R Session Aborted: R encountered a fatal error. The session was terminated."

I tried to uninstall and reinstall R and R Studio a few times and even cleared the app data, but it still happens. Could someone help me with this?

This is my log file.
16 Aug 2020 14:11:21 [rsession-z9906] ERROR system error 10053 (你的主机中的软件中止了一个已建立的连接。) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) src/cpp/session/http/SessionWin32HttpConnectionListener.cpp:113; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) src/cpp/session/http/SessionWin32HttpConnectionListener.cpp:118

The Chinese roughly means that a software in your computer stopped a connection that was already established. Please help me out! With a lot of appreciation!

4 Likes

It works perfectly fine when I type code in the terminal or open files using ctrl + o.
And here is RStudio Version section in my diagostic profile, dont know if it helps.

RStudio Version

1.3.1073

Session Information

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2

I am also having this issue frequently when navigating around in the file tab.

Here is the log entry corresponding to the issue:

21 Aug 2020 16:18:45 [rsession-bjorna] 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 &) src/cpp/session/http/SessionWin32HttpConnectionListener.cpp:113; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) src/cpp/session/http/SessionWin32HttpConnectionListener.cpp:118

Here is an excerpt of my diagnostic report:

RStudio Version
--------------------------------------------------
1.3.1073


Session Information
--------------------------------------------------
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RevoUtils_11.0.3     RevoUtilsMath_11.0.0

loaded via a namespace (and not attached):
[1] compiler_3.5.3 tools_3.5.3
3 Likes

I'm having the same issue. If anyone finds a solution please let us know.

Thanks!

1 Like

I have a similar problem

1 Like

Ditto. Fresh install of R 4.0.2 and RStudio 1.3.1073 on Windows 10, all patched up. Tried reinstalling both and restarting to no avail, but continually and quickly get the following when trying to navigate to my code directory in Files:
R Session Aborted
R encountered a fatal error
The session was terminated
Start New Session

UPDATE: One thing I did find was that a folder that triggered the error most consistently contained a folder named __MACOSX (extracted from a zip). As this is Windows and I didn't need it, I removed it, and it seems more stable (but not perfect). Just guessing it's related to filenames or directory properties that it reads.

This is not a solution, but perhaps a workaround. You may try avoiding directories containing "out of the ordinary" files or folders.

I am having this same problem with RStudio. Every time I go to the File tab in the lower right corner window, I get the following message:
"R Session Aborted
R encountered a fatal error.
The session was terminated."

How can I fix my RStudio?

1 Like

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.