Skip to content

fix(linux): bump @tauri-apps/cli to 2.12.1 so the AppImage starts on Arch/Fedora - #65

Open
Lesani wants to merge 1 commit into
MertPROJ:mainfrom
Lesani:fix/appimage-egl-abort
Open

Lesani wants to merge 1 commit into
MertPROJ:mainfrom
Lesani:fix/appimage-egl-abort

Conversation

@Lesani

@Lesani Lesani commented Oct 7, 2026

Copy link
Copy Markdown

Problem

The v1.5.0 AppImage aborts at launch on rolling-release distros (reproduced on Arch, kernel 7.2, Mesa from the current repos, Hyprland/Wayland):

Could not create surfaceless EGL display: EGL_BAD_ALLOC. Aborting...

WebKitWebProcess dumps core and the main process follows.

Cause

The AppImage is built by tauri-bundler's bundled linuxdeploy + GTK plugin. The older versions pinned by @tauri-apps/cli 2.10.1 (the version in package-lock.json) ship libwayland-client.so.0 inside the AppImage. That copy is older than what the host Mesa expects, so EGL initialisation fails.

Confirmed by unpacking the v1.5.0 AppImage and deleting only usr/lib/libwayland-*: the unmodified binary then starts and renders normally.

Tauri fixed this upstream in tauri-apps/tauri#16062 (tauri-bundler 2.10): newer linuxdeploy and GTK plugin, "fixing EGL_BAD_PARAMETER crashes on newer Mesa and bundling on Fedora and Arch".

Change

  • @tauri-apps/cli ^2 → ^2.12.1 in package.json, lockfile regenerated.

No Rust or frontend code changes. The tauri crate stays at 2.10.3 (the CLI is versioned independently).

Testing

  • CI-equivalent build (ubuntu:22.04, same apt deps as release.yml, tauri build --bundles appimage): libwayland-client.so.0 is no longer in the AppDir (libwayland-cursor/-egl/-server remain, which is harmless). The resulting AppImage launches and renders on Arch with no coredumps.
  • Arch-built AppImage with the new CLI: launches and renders, no coredumps. Bundling on Arch also works now (it failed in the GTK plugin with the old CLI).
  • Stock v1.5.0 AppImage on the same machine: aborts as above (baseline).

Side note: setting WEBKIT_DISABLE_DMABUF_RENDERER=1 is not enough. The main process survives, but the web process still crashes and the window stays blank.

🤖 Greetings from Claude

…rolling distros

The AppImage bundled an old libwayland-client that aborts WebKitWebProcess
with "Could not create surfaceless EGL display: EGL_BAD_ALLOC" against a
newer host Mesa (Arch, Fedora). tauri-bundler 2.10 (tauri-apps/tauri#16062)
updates linuxdeploy and its GTK plugin, which stop bundling it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lesani
Lesani requested a review from MertPROJ as a code owner October 7, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant