Skip to main content

RStudio Desktop IDE Will Not Start

Comments

14 comments

  • Phillip Wilshire

    Need help getting error: The R session process exited with code -1073740791.

    0
  • Wlad

    Hi, Phillip would you please log a support ticket and provide us with your available logs so we can help you better?

    0
  • amelie briane

    Hello, I have the same issue. I tried re-installing R and Rstudio but it is still the same. The last work I did was updating R to 4.2 and starting to create package

    0
  • jin

    Need help

    ## R Session Startup Failure Report

    ### RStudio Version

    RStudio 2022.07.1+554, "Spotted Wakerobin" (7872775e, 2022-07-22) for Windows

    Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

    ### Error message

    [No error available]

    ### Process Output

    The R session exited with code 1.

    Error output:

    ```
    [4480:3248:20220823,213955.468:ERROR crash_report_database_win.cc:586] CreateDirectory C:/Users/而댄벂??/AppData/Local/R/crashpad_database: 파일 이름, 디렉터리 이름 또는 볼륨 레이블 구문이 잘못되었습니다. (123)

    ```

    Standard output:

    ```
    [No output emitted]
    ```

    ### Logs

    *C:/Users/컴퓨터1/AppData/Local/RStudio/log/rsession-컴퓨터1.log*

    ```
    2022-08-23T12:39:55.470473Z [rsession-컴퓨터1] ERROR system error 2 (������ ������ ã�� �� �����ϴ�); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::crash_handler::initialize(enum rstudio::core::crash_handler::ProgramMode) src/cpp/core/CrashHandler.cpp:322; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\spotted-wakerobin\src\cpp\session\SessionMain.cpp:2007
    2022-08-23T12:39:55.598564Z [rsession-컴퓨터1] ERROR system error 2 (������ ������ ã�� �� �����ϴ�); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::crash_handler::initialize(enum rstudio::core::crash_handler::ProgramMode) src/cpp/core/CrashHandler.cpp:322; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\spotted-wakerobin\src\cpp\session\SessionMain.cpp:2057
    2022-08-23T12:39:55.598564Z [rsession-컴퓨터1] ERROR system error 2 (������ ������ ã�� �� �����ϴ�); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::crash_handler::initialize(enum rstudio::core::crash_handler::ProgramMode) src/cpp/core/CrashHandler.cpp:322; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\spotted-wakerobin\src\cpp\session\SessionMain.cpp:2057

    ```

    0
  • Seohyun Ji

    Need help getting error: 19784:19876:20220912,234936.573:ERROR crash_report_database_win.cc:586

    0
  • harwester

    After trying dozens of various fixes and advises on similar issues I'm still having trouble starting Rstudio for the past 6 weeks. First I get the "R not found" window, but after pasting the libR.so into R shared library (/usr/local/lib/R/lib) I get this:

    Process Output:
    The R session exited with code 2.

    Error output:
    unable to initialize the JIT

    And when I delete libR.so from R shared library I get the "R not found" window again. I posted my issues in the community (https://community.rstudio.com/t/r-not-found-r-shared-library-usr-local-lib-r-lib-libr-so-not-found-if-this-is-a-custom-build-of-r-was-it-built-with-the-enable-r-shlib-option/148750/3), but after no responses the topic was closed and when I posted a similar one it was deleted as spam... I'm using linux only for 2yrs and I'm still a rookie as well as in R, and it seems I can't solve this issue.

    0
  • Cecil Singh

    Hi Amelie,

    It might be worth raising this as a ticket with our support team here:
    https://support.posit.co/hc/en-us/requests/new

    0
  • Cecil Singh

    Hi Jin and Seohyun,

    It looks like you're both getting the same error so I'll group your queries into the single response. This looks like a crash report is being generated. There are a number of causes for this, but the most common use case is due to special characters on your local machine.

    You can verify this by creating a local user account with only ASCII characters in the name. When you launch RStudio with this user, you shouldn't see the same issue. Do you mind trying this and letting me know if that resolves the issue?

    This community post contains more detail:
    https://community.rstudio.com/t/rstudio-not-starting-due-to-special-characters-finnish-after-rstudio-update-july-2022/143206/7

    I hope this helps!

    0
  • Cecil Singh

    Hi Harwester.

    It looks like you're referring to linux directories here! Note that this article is for RStudio Desktop Pro, as opposed to RStudio server.

    If there is only one user that runs into this error, then the most likely causes are (1) an R session that cannot be loaded or (2) an issue in your environment. Let's look into each of these possibilities.

    (1) Is the user able to access the Home page of the server via http://:/home? Can the user start a new session from there?

    For context, when you log into RStudio Server, it will first authenticate you, then attempt to load your most recent R session. If that session has become corrupt or otherwise cannot be loaded, you won't be able to complete the login process. However, you should still be able to see the Home page, since no R session is loaded when you log into that page.

    We also recommend that you reset the user state for your username with the instructions here: https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server. This will clear out your user sessions and let you log in cleanly (this won't clear the files on disk; it only clears out the workspace information RStudio stores - that article explains in detail).

    (2) Is there anything in your Linux bash profile that may interfere with RStudio's ability to launch an R session on your behalf? This section of the admin guide explains how R sessions are launched: https://docs.rstudio.com/ide/server-pro/r-sessions.html#customizing-session-launches. If there is anything R-related in your bash profile that is invalid to the R installation on the server, RStudio won't be able to launch an R session on your behalf.

    To test, you can disable execution of the shell profiles on the entire server by setting the rsession-no-profile option to 1 in /etc/rstudio/rserver.conf and then restarting the server. For example:

    /etc/rstudio/rserver.conf
    rsession-no-profile=1

    This will turn it off for everyone on the server, so if you actually rely on those profiles to set up user environments, you may want to remove that line after the test is complete.

    I hope this helps point you in the right direction!

    0
  • harwester

    Hi Cecil,
    I guess there's been a misunderstanding. I don't know why you assumed I'm using RStudio Server because I don't. For the past 5yrs I use only RStudio Desktop mainly for data visualization and some statistical analysis in Windows until I finally moved exclusively to Linux Mint 2 yrs ago. So the solutions you're referring to aren't very helpful. But thanks anyway, at least someone finally replied.

    0
  • Cecil Singh

    Hi Harwester,

    My apologies! Given the file paths I had assumed you were using RStudio server on Linux - my bad! Typically, with this error message, resetting user state should help resolve this issue:
    https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State

    Failing that, upgrading to the latest version of RStudio desktop certainly helps in the cases I've seen.

    0
  • Hind mohammed

    ## R Session Startup Failure Report

    ### RStudio Version

    RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for macOS

    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

    ### Error message

    [No error available]

    ### Process Output

    The R session exited with code 1.

    Error output:

    ```
    dyld: Library not loaded: @executable_path/../Frameworks/libssl.1.1.dylib
    Referenced from: /Applications/RStudio.app/Contents/Resources/app/bin/rsession
    Reason: no suitable image found. Did find:
    /Applications/RStudio.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: cannot load 'libssl.1.1.dylib' (load command 0x80000034 is unknown)
    /Applications/RStudio.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: stat() failed with errno=1
    /Applications/RStudio.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: cannot load 'libssl.1.1.dylib' (load command 0x80000034 is unknown)
    /Applications/RStudio.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: stat() failed with errno=1

    ```

    Standard output:

    ```
    [No output emitted]
    ```

    ### Logs

    *Log File*

    ```
    [No logs available]
    ```

    0
  • Príncipe Zanguilo

    ## R Session Startup Failure Report

    ### RStudio Version

    RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for Windows

    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

    ### Error message

    [No error available]

    ### Process Output

    The R session exited with code 3221225781.

    Error output:

    ```
    [No errors emitted]
    ```

    Standard output:

    ```
    [No output emitted]
    ```

    ### Logs

    *C:/Users/Zanguilo Prí/AppData/Local/RStudio/log/rsession-Zanguilo Prí.log*

    ```
    15 Aug 2022 09:59:31 [rsession-Zanguilo Prí] ERROR system error 267 (The directory name is invalid); OCCURRED AT auto __cdecl rstudio::core::system::ChildProcess::run::::operator ()(void) const src/cpp/core/system/Win32ChildProcess.cpp:545; LOGGED FROM: void __cdecl rstudio::session::async_r::AsyncRProcess::start(const char *,class std::vector,class std::allocator >,class std::basic_string,class std::allocator > >,class std::allocator,class std::allocator >,class std::basic_string,class std::allocator > > > >,const class rstudio::core::FilePath &,enum rstudio::session::async_r::AsyncRProcessOptions,class std::vector >,const class std::basic_string,class std::allocator > &) src/cpp/session/SessionAsyncRProcess.cpp:202
    02 Jan 2023 11:26:15 [rsession-Zanguilo Prí] ERROR system error 267 (The directory name is invalid); OCCURRED AT auto __cdecl rstudio::core::system::ChildProcess::run::::operator ()(void) const src/cpp/core/system/Win32ChildProcess.cpp:545; LOGGED FROM: void __cdecl rstudio::session::async_r::AsyncRProcess::start(const char *,class std::vector,class std::allocator >,class std::basic_string,class std::allocator > >,class std::allocator,class std::allocator >,class std::basic_string,class std::allocator > > > >,const class rstudio::core::FilePath &,enum rstudio::session::async_r::AsyncRProcessOptions,class std::vector >,const class std::basic_string,class std::allocator > &) src/cpp/session/SessionAsyncRProcess.cpp:202
    02 Jan 2023 11:46:43 [rsession-Zanguilo Prí] ERROR system error 267 (The directory name is invalid); OCCURRED AT auto __cdecl rstudio::core::system::ChildProcess::run::::operator ()(void) const src/cpp/core/system/Win32ChildProcess.cpp:545; LOGGED FROM: void __cdecl rstudio::session::async_r::AsyncRProcess::start(const char *,class std::vector,class std::allocator >,class std::basic_string,class std::allocator > >,class std::allocator,class std::allocator >,class std::basic_string,class std::allocator > > > >,const class rstudio::core::FilePath &,enum rstudio::session::async_r::AsyncRProcessOptions,class std::vector >,const class std::basic_string,class std::allocator > &) src/cpp/session/SessionAsyncRProcess.cpp:202

    ```

    Can someone please help me with this issue?

    0
  • Wlad

    We advise that you open a support ticket for pro products error troubleshooting.
    If you are using an open-source product, our community is the best resource for help.

    Thank you,
    Wlad de Masi

    0

Article is closed for comments.