#15665·tauri

AppImages from default bundler settings fail on Mesa 25+ distros (over-bundled libwayland/glib/gstreamer, stale GST_PLUGIN_SYSTEM_PATH in AppRun)

Author: wpfleger96Created Jul 7, 2026Updated Sep 24, 2026
Labelsplatform: Linuxai-slop

Describe the bug

I hit this with a tauri 2.11 app (block/buzz) shipped as an AppImage built with the default bundler settings (no bundle.linux config at all, built on ubuntu-24.04 GitHub runners). On newer distros — Ubuntu 26.04 with Mesa 25 and GLib 2.88 in my case — the AppImage starts but the window never appears: WebKitWebProcess aborts and the app keeps running headless with no error surfaced to the user.

I spent a while bisecting this and it comes down to three separate mechanisms, all in the default AppImage bundling path (crates/tauri-bundler/src/bundle/linux/appimage/linuxdeploy.rs plus the vendored linuxdeploy-plugin-gtk):

1. libwayland-client gets bundled, which breaks newer Mesa. linuxdeploy's dependency follower sweeps libwayland-client.so.0 (and the glib family that pins it) into usr/lib — its excludelist doesn't contain it, though the pkg2appimage community excludelist does, with a comment that bundling it breaks newer Mesa. With the host's Mesa 25 loaded against the bundled libwayland-client 1.22, eglGetDisplay(EGL_DEFAULT_DISPLAY) fails with EGL_BAD_PARAMETER under a Wayland session, WebKitWebProcess prints "Could not create default EGL display: EGL_BAD_PARAMETER. Aborting..." and dies. I confirmed by LD_PRELOAD-bisecting the bundled libs one at a time: every lib that reproduced the EGL failure links libwayland-client, and removing the wayland/glib infra libs fixes it.

2. AppRun exports GST_PLUGIN_SYSTEM_PATH_1_0=$APPDIR/usr/lib/gstreamer-1.0 unconditionally, but with the default bundleMediaFramework: false that directory is never created. Pointing that env var at a missing/empty dir disables GStreamer's default plugin search entirely, so WebKit's media setup fails ("GStreamer element appsink not found"), a NULL signal connect follows (GLib-GObject-CRITICAL), and the render process dies. It also rebuilds ~/.cache/gstreamer-1.0/registry.x86_64.bin as an empty registry, which then affects other GStreamer apps for the user until the cache is cleared.

3. (latent) The bundled WebKit helper binaries only have RUNPATH=$ORIGIN. Any launch path that doesn't go through AppRun's cd $APPDIR/usr makes the bundled libwebkit2gtk (2.44 in my build) spawn the system WebKit helpers (2.52 on my machine) — the version mismatch kills WebKitNetworkProcess with SIGBUS.

Reproduction

Build any tauri 2.11 app with tauri build --bundles appimage on ubuntu-24.04 with default config, then run the AppImage on Ubuntu 26.04 under Wayland. The window never appears and stderr shows the EGL abort above.

Manually removing the over-bundled infra libs from the extracted AppDir (libwayland-*, libglib-2.0/libgio-2.0/libgobject-2.0/libgmodule-2.0, all libgst*, libmount/libblkid/libselinux/libpcre2-8, libzstd/libelf/libffi) and symlinking usr/lib/gstreamer-1.0 to the system plugin directory produces a fully working app on the same machine, so the system versions are drop-in compatible — bundling them is what breaks things.

What I'd like

  • A supported way to exclude libraries from the AppImage bundle (an excludeLibraries-style option under bundle.linux.appimage). Right now there's no config surface for this at all — files can only add real files, not remove or symlink — so we're stuck post-processing the AppImage in CI.
  • Consider not bundling the wayland/glib infra by default (or adopting the community excludelist). Bundling them means every AppImage silently breaks on distros newer than the build machine, which defeats the point of building on the oldest supported base.
  • AppRun probably shouldn't export GST_PLUGIN_SYSTEM_PATH/GST_PLUGIN_SYSTEM_PATH_1_0 when bundleMediaFramework is false and the directory doesn't exist.

Environment

  • tauri / tauri-bundler 2.11.2 (I checked the diff through 2.11.5 — nothing touches this)
  • Build: ubuntu-24.04 GitHub runner, --bundles appimage, no bundle.linux config
  • Target: Ubuntu 26.04, GNOME Wayland, Mesa 25, GLib 2.88, webkit2gtk-4.1 2.52.3
  • Real-world case: the block/buzz 0.3.45 release AppImage