Skip to content

RStudio closes when attempting to drag the window to another monitor or resize the window. #18803

Closed

Description

@wacekk

System details

RStudio Edition : Desktop
RStudio Version : RStudio 2026.09.0+174 
OS Version      :  Windows 10
R Version       :  4.6.1.

Steps to reproduce the problem

  1. Open RStudio
  2. Try dragging the window to another screen or resizing it with the mouse
  3. RStudio crashes

Describe the problem in detail

The issue occurs on both the latest version of RStudio and the previous version (2026.08.02-200).

I have a computer with three screens (2x FHD, 1x 4K). I usually run RStudio in full-screen mode on the largest monitor. RStudio crashes when I try to drag it to another screen or resize it using the mouse. I can move RStudio to another screen using the [Win] + arrow keys. Additionally, after the crash, the FancyZones utility from PowerToys (used for splitting the screen) malfunctions; I have to move another window for the program to stop thinking I am in the middle of moving a window.

Describe the behavior you expected

RStudio should continue to run after resizing the window or moving it to another screen.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added theissue type on Sep 13, 2026
  2. gtritchie commented on Sep 13, 2026

    @gtritchie
    Member

    Investigation note:

    • RStudio 2026.08.0+200 has Electron 42.7.1
    • RStudio 2026.09.0+174 has Electron 42.11.1
    • RStudio 2026.10.0+70 has Electron 43.7.0 (under-development version of RStudio)
  3. gtritchie commented on Sep 13, 2026

    @gtritchie
    Member

    Thanks for the report. I looked through the Electron release notes and issue tracker for 42.x through 44.x and didn't find a known crash matching this, so a few questions to help narrow it down:

    1. Did RStudio 2026.07.x work on this machine? That release used Electron 41; 2026.08 and 2026.09 use Electron 42. Knowing whether 2026.07 was fine tells us whether this is an Electron regression or something environmental.

    2. Does it still crash with FancyZones disabled? You mentioned FancyZones is left in a mid-drag state after the crash, which means it was hooked into the window move. PowerToys has a history of interfering with Chromium-based apps during cross-monitor drags, so this is a quick way to rule it in or out.

    3. Does it still crash with software rendering? In Tools > Global Options > General > Advanced, set Rendering engine to Software, restart RStudio, and try the drag again. Dragging between monitors with different DPI (4K vs FHD) forces the GPU compositor to rebuild its surfaces, and a whole-app exit with no error dialog is what a GPU process failure looks like.

    4. Could you attach a diagnostics report? From the main menu, choose Help > Diagnostics > Write Diagnostics Report and attach the resulting file here.

    5. Could you try a daily build of 2026.10? Available at https://dailies.rstudio.com/. It is under active development and not recommended for production use, but it ships a newer Electron major (43), so knowing whether the crash still reproduces there would be very helpful.

  4. added
    info needed
    on Sep 14, 2026
  5. wacekk commented on Sep 14, 2026

    @wacekk
    Author

    Thank you for your interest in my issue. I am replying in the order the tests were performed.

    The problem persists with software rendering.

    I installed version 2026.07.1-147—the problem occurs there as well. I likely didn't change the position of the RStudio window while using that version. I work on the center screen (4K) with the window maximized 99% of the time.

    I installed RStudio-2026.10.0-daily-77—the problem still exists.

    I reverted to the 2026.08.2 Build 200 version of RStudio than I disabled FancyZones in PowerToys. Unfortunately, the problem still occurs. It is therefore difficult to link its occurrence to any specific event.

    Anonymizing the crash report will take quite a bit of time, as the file contains nearly 2,000 lines. However, after a quick review, the only potential errors I found are entries like these:

    2026-09-14T15:40:15.949448Z [rsession-XXX] ERROR system error 2 (Nie można odnaleźć określonego pliku) [description: Git installation not found on PATH, via the Start Menu shortcut, or in a standard install location]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::session::modules::git::`anonymous-namespace'::discoverGitBinDir(class rstudio::core::FilePath *) C:\Users\jenkins\workspace\ide-os-windows\rel-yellow-yarrow\src\cpp\session\modules\SessionGit.cpp:2986; LOGGED FROM: bool __cdecl rstudio::session::modules::git::initGitBin(void) C:\Users\jenkins\workspace\ide-os-windows\rel-yellow-yarrow\src\cpp\session\modules\SessionGit.cpp:3351
    2026-09-14T15:40:15.949448Z [rsession-XXX] ERROR system error 2 (Nie można odnaleźć określonego pliku) [description: Git installation not found on PATH, via the Start Menu shortcut, or in a standard install location]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::session::modules::git::`anonymous-namespace'::discoverGitBinDir(class rstudio::core::FilePath *) C:\Users\jenkins\workspace\ide-os-windows\rel-yellow-yarrow\src\cpp\session\modules\SessionGit.cpp:2986; LOGGED FROM: bool __cdecl rstudio::session::modules::git::initGitBin(void) C:\Users\jenkins\workspace\ide-os-windows\rel-yellow-yarrow\src\cpp\session\modules\SessionGit.cpp:3351
    
  6. gtritchie commented on Sep 14, 2026

    @gtritchie
    Member

    Thanks. We're adding some additional logging around this scenario via #18808, and once a build is available with that change we'll reply here with a link to it, have you install and repro the crash again, and see if it captures anything useful.

    Unfortunately this kind of issue can be very hardware and driver-dependent and it could prove difficult for us to provide a solution unless it gets fixed in (most likely) Chromium as part of Electron, but we'll see what we can do once we get the logs.

  7. self-assigned this
    on Sep 16, 2026
  8. gtritchie commented on Sep 16, 2026

    @gtritchie
    Member

    The latest daily build at https://dailies.rstudio.com/rstudio/blue-mistflower/ (2026.10.0-daily+102 or newer) has the added logging I mentioned. If you can install it, repro the crash, then generate a new diagnostics report, it should/might contain additional information related to the crash. If so, please share. Thanks!

  9. wacekk commented on Sep 17, 2026

    @wacekk
    Author

    Hi gtritchie. Thank you for your interest in my problem. I did another experiment. After disconnecting the docking station to which I have three displays connected, the problem disappeared. I was working on one display on my laptop and had no issues with RStudio crashes. I installed the "daily build" you suggested today – the problem also disappeared on three displays. I then reverted to the stable version RStudio-2026.09.0-174. The problem also disappears on three displays. I can freely move the window between displays with different resolutions, and RStudio works as expected. I can't say what caused the problem. Thank you very much for your help!

  10. gtritchie commented on Sep 17, 2026

    @gtritchie
    Member

    Great, glad to hear you've got it working.
    I'll go ahead and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginfo neededsupportwindows

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions