fix(linux): bootstrap Flutter EGL on an isolated worker - #273
Merged
Conversation
🤖 Generated with GitHub Actions
- TEMPORARY push trigger on this branch while under test on the self-hosted runner; remove before merging. - Fall back to :0 when the x11-display input is absent (push events have no inputs context, which would otherwise blank DISPLAY). - Distro-aware dependency step: keep apt-get for Ubuntu, add a dnf path for Fedora that no-ops when deps are preinstalled and sudo needs a password. Co-Authored-By: Claude <noreply@anthropic.com>
- ThermionFlutterPluginInitializer -> ThermionTextureBootstrap, moved into the widgets layer next to ViewerWidget; the name now says what it does (deferred texture handshake) instead of implying a scope. - The plugin no longer constructs widgets: buildInitializationScope is replaced by createContextBootstrap/destroyContextBootstrap, which default to null/no-op for platforms without the Linux OpenGL prerequisite. - The injected allocator pair stays a unit: with an injected create hook, destruction falls back to the descriptor, never the plugin. No behavior change; sequencing and dispose-races are covered by texture_bootstrap_test and lifecycle_test. Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with GitHub Actions
The branch was validated on the self-hosted X11/Wayland runner; keep the workflow dispatch-only for future manual runs. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Aug 22, 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.
On Linux+EGL, Flutter only exposes the real raster EGLDisplay/EGLContext while
FlTextureGL.populateruns, so desktop EGL initialization and texture operations cannot safely run on the Flutter GTK platform or raster threads.The fix:
populate.The bootstrap is a narrow texture-ID handshake and does not enter the platform surface descriptor registry. This removes the GDK-context fallback and the separate direct-EGLImage allocation/cleanup implementation.
We also add a smoke test on both X11 and a headless Weston GL compositor with
GDK_BACKEND=waylandand noDISPLAY, preventing XWayland fallback. This must run on a self-hosted runner with a real GPU and read/write access to/dev/dri/renderD128.