You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Electron] Blank window on startup after GPU crash fix (v2026.06.0+242 on Ubuntu 22.04) #18323
R Version: 4.3.3 "Angel Food Cake" (/usr/bin/R, R_HOME: /usr/lib/R)
Installation: RStudio Desktop (standalone, no rstudio-server installed)
Issue Summary:
RStudio Desktop fails to launch into a functional session on Ubuntu 22.04. Initially, launching the app caused an immediate crash (Main window closed unexpectedly). Passing --disable-gpu stops the crash and keeps the main window open, but the window content remains completely blank/grey and unresponsive.
Backend Verification (rsession):
Running the backend binary directly (/usr/lib/rstudio/resources/app/bin/rsession --program-mode desktop) executes without errors. The issue appears isolated to the Electron frontend / window compositor bridge rather than rsession itself.
Troubleshooting Steps Attempted:
Confirmed R and R_HOME path discovery are intact (/usr/bin/R).
Performed full purge and reinstall (sudo apt purge rstudio, sudo apt autoremove, reinstall .deb).
Backed up and cleared user configuration, state, and cache directories (~/.config/rstudio, ~/.local/share/rstudio, and /tmp/rstudio-*).
Looks like a duplicate of #18019, fixed in the latest RStudio release (2026.07.1).
I'm closing this as a duplicate, if you upgrade to 2026.07.1 or newer and it doesn't solve this, please leave a note and I'll reopen this and investigate further.
This also revealed a second issue around error logging, I opened #18391 and will fix that for the 2026.08 release.
Investigation notes:
The "Class$S640: Exception caught: (TypeError)..." format decodes as GWT's UmbrellaException — thrown when an event handler throws during EventBus dispatch (Class$S640 is just its obfuscated class name). The inner TypeError maps precisely to known pre-2026.07 code: in the reporter's tag, Prefs.java:164 reads layers_.get(i).getValues().hasKey(name_) with no bounds guard. When the pref-layer array is incomplete — which the code comments say happens in desktop mode until a bootstrap refresh runs — layers_.get(i) returns undefined, and .getValues() compiles down to a bare .values property read: character-for-character the reported error.
This is the same root cause as #18019 ("failed set_user_state during bootstrap leaves an unrecoverable grey screen", reported on 2026.06.0+240). Kevin's fix, commit 72ea5bb (PR #18031, June 21), made bootstrap continue past RPC failures and added a layerValues() guard to all the positional accessors. I verified with git tag --contains that the fix exists only in v2026.07.0+139 and v2026.07.1+147 — v2026.06.0+242 was tagged June 18 and still has the unguarded code. Even the reporter's "Main window closed unexpectedly" message matches: that's main-window.ts:345, logged when the window closes and window.desktopHooks was never registered — i.e., GWT died before workbench init, which is exactly what an uncaught startup exception produces.
Activity
gtritchie commentedon Jul 29, 2026
Looks like a duplicate of #18019, fixed in the latest RStudio release (2026.07.1).
I'm closing this as a duplicate, if you upgrade to 2026.07.1 or newer and it doesn't solve this, please leave a note and I'll reopen this and investigate further.
This also revealed a second issue around error logging, I opened #18391 and will fix that for the 2026.08 release.
Investigation notes:
The "Class$S640: Exception caught: (TypeError)..." format decodes as GWT's UmbrellaException — thrown when an event handler throws during EventBus dispatch (Class$S640 is just its obfuscated class name). The inner TypeError maps precisely to known pre-2026.07 code: in the reporter's tag, Prefs.java:164 reads layers_.get(i).getValues().hasKey(name_) with no bounds guard. When the pref-layer array is incomplete — which the code comments say happens in desktop mode until a bootstrap refresh runs — layers_.get(i) returns undefined, and .getValues() compiles down to a bare .values property read: character-for-character the reported error.
This is the same root cause as #18019 ("failed set_user_state during bootstrap leaves an unrecoverable grey screen", reported on 2026.06.0+240). Kevin's fix, commit 72ea5bb (PR #18031, June 21), made bootstrap continue past RPC failures and added a layerValues() guard to all the positional accessors. I verified with git tag --contains that the fix exists only in v2026.07.0+139 and v2026.07.1+147 — v2026.06.0+242 was tagged June 18 and still has the unguarded code. Even the reporter's "Main window closed unexpectedly" message matches: that's main-window.ts:345, logged when the window closes and window.desktopHooks was never registered — i.e., GWT died before workbench init, which is exactly what an uncaught startup exception produces.