Repository navigation
test(linux): run the file dialog test without GL - #2664
Merged
Merged
Conversation
The file dialog test takes SIGSEGV inside GTK's main loop on a host whose EGL has no DRI3 device: libEGL warns, then the process dies in gMainContextIteration. The test's own process now passes gl-disable to GDK, so GTK opens no GL context for a dialog that needs none.
This was referenced Nov 27, 2026
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.
Summary
test-suite (core)crashes intermittently inTestFileDialogsReachGTK, and while it does the required check stays red for every pull request that draws the crash. Four runs failed this way today, on three branches:depot-gd829tdlqddepot-p23r06ct0qfix-ios-full-rate-slidesdepot-mqkh1pqgwcfix-ios-full-rate-slidesdepot-1p8t7kxk39Every one of them has the same signature:
libEGL warning: DRI3 error: Could not get DRI3 device, thenSIGSEGVduring cgo, with the stack at(*window).run→gMainContextIteration(internal/platform/linux/linux.go:800). The crash is inside GTK's main loop, not in this repository's Go code, and the runs on other hosts that day pass without the DRI3 warning.The test already starts a process of its own to keep GTK away from the desktop's portal, through
GDK_DEBUG=no-portals. That process now passesgl-disableas well, so GDK opens no GL context and never reaches EGL on a host without DRI3. A file dialog needs no GL context.Targets
Screenshots
None.
Verification
gofmt -l internal/platform/linux/system_native_test.go— no output.go tool nsgo check— exit 0, all targets vetted.test.yml, acceptsgl-disablein itsGDK_DEBUGflag list (gdk/gdk.c).test.ymlruns it on every pull request; the check is whethertest-suite (core)stays green over the next runs.Risk
Newer GDK versions drop
gl-disableforGDK_DISABLE=gland warn about the unknown value, so this targets the versiontest.ymlruns. If GTK ignores the flag, the change is a no-op and the crash stays. The test drives the same dialogs either way; only GDK's GL path changes.Checklist
fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.🤖 Generated with Claude Code