Skip to content

[Electron] Blank window on startup after GPU crash fix (v2026.06.0+242 on Ubuntu 22.04) #18323

Closed as duplicate

Description

@jkim7722

Environment:

  • RStudio Version: 2026.06.0+242 "Blue Plumbago" (amd64)
  • OS: Ubuntu 22.04 LTS (Jammy Jellyfish), x86_64
  • Framework: Electron 41.7.2, Chrome 146.0.7680.216
  • 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.


Log Outputs & Diagnostics:

  1. JavaScript UI Error (rdesktop.log / --enable-logging output):
[3872:0722/102426.320051:INFO:CONSOLE:23934] "Uncaught Error: Class$S640: Exception caught: (TypeError) : Cannot read properties of undefined (reading 'values')", source: rstudio-0.js (23934)
(node:3872) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'logErrorAtLevel')
    at logError (/usr/lib/rstudio/resources/app/.webpack/main/index.js:14:281461)
  1. 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-*).
  • Tested rendering/compositor overrides (--disable-gpu, --use-gl=desktop, --use-gl=swiftshader, --no-sandbox).
  • Verified process stays alive after launch (ps aux), but the UI frame remains blank.

Activity

  1. added theissue type on Jul 22, 2026
  2. added
    startup
    on Jul 22, 2026
  3. self-assigned this
    on Jul 29, 2026
  4. gtritchie commented on Jul 29, 2026

    @gtritchie
    Member

    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.

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

Metadata

Metadata

Assignees

Labels

bugduplicateelectronstartup

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions