fix(linux): Remove unnecessary system GLib preload from AppRun#14616
Open
jack-obrien wants to merge 1 commit into
Open
fix(linux): Remove unnecessary system GLib preload from AppRun#14616jack-obrien wants to merge 1 commit into
jack-obrien wants to merge 1 commit into
Conversation
Contributor
|
See the Build Results workflow run for details. |
The LD_PRELOAD of system libglib-2.0.so.0 was added in mavlink#13757 to fix TTS (libspeechd) failing because the bundled GLib lacked the g_string_free_and_steal symbol (added in GLib 2.76). The CI build environment is now ubuntu-24.04, which ships GLib 2.80. linuxdeploy bundles that GLib into the AppImage, so the TTS issue is no longer applicable. On systems with a newer system GLib (e.g. Arch Linux), the preload causes a version mismatch between the system GLib and the bundled GObject/GStreamer, resulting in a segfault on pipeline startup.
jack-obrien
force-pushed
the
fix/apprun-remove-glib-preload
branch
from
July 19, 2026 11:55
3dc19ea to
c086b3d
Compare
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.
Description
Refer to Issue #14615 for the segfault bug I was experiencing.
The LD_PRELOAD of system libglib-2.0.so.0 was added in #13757 to fix TTS (libspeechd) failing because the bundled GLib lacked the g_string_free_and_steal symbol (added in GLib 2.76).
The CI build environment is now ubuntu-24.04, which ships GLib 2.80. linuxdeploy bundles that GLib into the AppImage, so the TTS issue is no longer applicable.
On systems with a newer system GLib (e.g. Arch Linux), the preload causes a version mismatch between the system GLib and the bundled GObject/GStreamer, resulting in a segfault on pipeline startup.
I also noticed that a similar symbol check exists in AppRun for the GIO module compatibility checking. This is also outdated as it checks against a symbol added in GIO 2.76, meanwhile the Appimage provides GIO 2.80. For now I kept the existing GIO logic to avoid breaking anything else. However I have added a WARNING comment there.
For now I would suggest merging this change to fix daily build compatibility fast, then coming back and fixing any other stale logic in a separate PR.
Type of Change
Testing
Platforms Tested
Checklist
Related Issues
#14615
By submitting this pull request, I confirm that my contribution is made under the terms of the project's dual license (Apache 2.0 and GPL v3).