fix(appimage): drop the bundled libwayland-client so EGL can start - #2
Merged
Conversation
The released AppImage opens every window blank on hosts whose Mesa is built against wayland 1.23 or newer. Mesa resolves its libwayland-client dependency to the copy linuxdeploy bundled from the build distro, which predates the symbol Mesa needs, and EGL display creation fails with EGL_BAD_PARAMETER — WebKit's render process aborts before drawing anything. Deleting the one library during the repack makes Mesa bind to the host's copy; this is the same measure the AppImage excludelist takes (mesa#11316). The library is removed in the repack rather than kept out of the bundle because Tauri gives no hook into its pinned linuxdeploy, whose excludelist predates the ban.
Merged
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.
The released AppImage opens every window blank on hosts whose Mesa is built against wayland 1.23+ (Arch and friends, recent Fedora): Mesa binds to the bundled, older
libwayland-client.so.0and EGL display creation fails withEGL_BAD_PARAMETER, so WebKit's render process aborts before drawing.Verified by bisection against the published artifact: deleting exactly this library fixes it; the sibling
libwayland-*libs are innocent. Same measure the AppImage excludelist takes (mesa#11316, AppImageCommunity/pkg2appimage#559). Removed in the repack because Tauri's pinned linuxdeploy predates the excludelist ban and offers no hook.Repacked the published v2.8.0+linux.1 AppImage with the patched script and ran it: no EGL errors, window renders, memory scan works.