RStudio Failing to Start

Error Information:

Yesterday, I was using RStudio with zero issues. This morning, I boot up my machine and start RStudio, only for it to fail to start. I've gone through all the steps shown in this article: I've removed the start up files; I've held ctrl while starting RStudio to make sure it can find R (which it does); my firewall, proxy settings, and antimalware don't seem to be interfering; I've checked the permissions of my desktop directory; and I've reset RStudio's state. I've even gone so far as to uninstall and re-install twice, to no avail.

Diagnostic report here

Any help would be much appreciated!

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.2.5033
  • OS Version: Windows 10
  • R Version: 3.6.2 "Dark and Stormy Night"
  • Output your diagnostics report (if possible):

Thanks for taking the time to share a diagnostics report. Some of the entries near the end show:

27 Feb 2020 04:36:57 [rsession-Owner] 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::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\SessionHttpConnectionImpl.hpp:111; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\SessionHttpConnectionImpl.hpp:116

My understanding is that this can occur if something on the system (e.g. a firewall or antivirus) is blocking the connection RStudio attempts to make with the underlying R session. You might want to check things like Windows Defender and other software you have installed to see if they might be causing an issue.

Strangely enough, when I troubleshot, Windows Defender showed RStudio was allowed (both private and public). I double checked my other software, and none of them are blocking RStudio. RStudio still won't open for me.

So, I've double checked my firewalls, and they're all set to allow RStudio through. I've double checked all the start up files, and moved them to a new folder. I've reset RStudio's state. I've uninstalled and reinstalled. I've forced RStudio to use older versions of R, as well as trying both the 64 bit and the 32 bit versions. RStudio continues to not start.

Neither my firewall nor any other protection software are blocking RStudio.

You might also try installing the preview release, to see if you have better luck with RStudio v1.3.

If not, can you let me know if things work with an older release of RStudio? Older releases are published here:

I'll give the preview release a go, and I'll let you know if it works. If not, I'll try an older version.

1.3 didn't want to start up either. 1.1.463 popped right up, no problem.

Thanks for following up.

Can you confirm that you've followed the steps described in this article: https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State; especially around removing the folders at:

%appdata%\RStudio
%localappdata%\RStudio-Desktop

If that still doesn't work, then it might also be worth trying to enable Windows Minidumps, just in case RStudio or the rsession is crashing during launch. Instructions follow:


You can try creating a Windows Minidump. First, you need to enable Minidumps explicitly. Microsoft provides explicit instructions at https://docs.microsoft.com/en-us/windows/desktop/wer/collecting-user-mode-dumps. If you'd like to automatically enable user-mode dumps, you can also try importing the following registry file:

Restart your computer afterwards to ensure the registry updates take effect.

Next, try to launch RStudio. If we're lucky, the crash dump will be written to a folder at:

C:\Users\%USERNAME%\AppData\Local\CrashDumps

replacing %USERNAME% with your Windows username as appropriate. Note that AppData is a hidden folder, so if you're trying to navigate to it in the Windows explorer you'll need to ensure hidden files and directories are made visible.

Then, within the folder, you should find files of the form:

*.exe.<id>.dmp

Depending on what application has crashed, you should see dumps for either rstudio.exe or rsession.exe. If the file is large, you might consider uploading it to a cloud storage provider (DropBox, Google Drive, Windows OneDrive) and sharing a link to that file for us to examine.

If you'd like to later disable Windows minidumps, you can run the following registry file:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.