fix(gui): default to Slint software renderer so launch survives RDP / no-GL2.0#88
Merged
Merged
Conversation
… no-GL2.0 The shipped 0.1.1 GUI crashes immediately under Remote Desktop (and on VMs / headless / bad-GPU machines): Slint's default femtovg renderer needs OpenGL 2.0, but those environments expose only legacy software GL 1.1, so `MainWindow::new()` fails with "Could not locate glCreateShader symbol", `main` returns Err, and the GUI-subsystem process dies before any window shows — no visible error, just an instant crash. Default `SLINT_BACKEND=winit-software` when unset (escape hatch: `SLINT_BACKEND=winit-femtovg`). This masked-matrix table UI gains nothing from GPU rendering, and a software default covers RDP/VM/driver cases with less logic than RDP-detection. Keep `renderer-software` an explicit slint feature so a future default-features trim can't silently reintroduce the crash. Verified under an RDP session: the window launches with no SLINT_BACKEND set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Kyle-Falconer
added a commit
that referenced
this pull request
Jun 25, 2026
Cuts 0.1.2 to ship the RDP / no-GL2.0 launch fix (#88, 18be430): the GUI now defaults to Slint's software renderer, so the installer no longer crashes on launch under Remote Desktop / VMs / headless GPU. A pushed v0.1.2 tag drives the draft release (verify-version requires tag == janitor-gui crate version). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The shipped 0.1.1 GUI crashes immediately on launch under Remote Desktop (reproduced on this machine), and the same path will fail on VMs / headless / bad-GPU hosts.
Root cause: Slint's default femtovg renderer requires OpenGL 2.0, but RDP sessions expose only legacy software OpenGL 1.1. So
MainWindow::new()returnsErr("Failed to initialize OpenGL driver: Could not locate glCreateShader symbol"),mainreturnsErr, and the GUI-subsystem process dies before any window shows — no visible error, reads as an instant crash.Confirmed by forcing
SLINT_BACKEND=winit-softwareon the installed 0.1.1 binary → it launches fine.origin/main'sjanitor-gui/src/main.rsis unchanged since thev0.1.1tag and has no backend handling, so the bug is live onmainHEAD.Fix
SLINT_BACKEND=winit-softwarewhen the user hasn't set it (top ofmain(), beforeMainWindow::new()). GPU escape hatch preserved:SLINT_BACKEND=winit-femtovg.renderer-softwarean explicitslintfeature so a futuredefault-featurestrim can't silently reintroduce the crash.Chose software-default over RDP-detection deliberately: it also covers VMs/headless/bad-driver machines with less logic, and this masked-matrix table UI gains nothing from GPU rendering.
Verification
Built and smoke-launched on this branch under an active RDP session with
SLINT_BACKENDunset (JANITOR_MOCK=1): the window stays up. The failing condition no longer crashes.Notes
janitor-guiis the thin, untested-by-design view (ADR 0003); the change is inmain()which tests don't exercise.mainafter merge so RDP/VM users get an unbroken installer. A startup error message box (so future GUI-subsystem init failures are visible) is worth a follow-up but is out of scope here.🤖 Generated with Claude Code