Repository navigation
fix(bundler): update linuxdeploy and linuxdeploy-plugin-gtk - #16062
Conversation
|
Thanks for working on this. I tested the PR with a production Tauri app on Ubuntu 26.04, where the current AppImage fails to start. With this PR, it starts normally on both Wayland and X11 without any workarounds. One thing I noticed is that prepare_tools() downloads linuxdeploy-plugin-gtk.sh from the plugin repository’s master branch instead of using the version included in this PR. I monkeypatched it by putting the PR’s script in the Tauri cache to test it. Otherwise, this fixes the issue for us. Thanks! |
|
Thanks for testing it. Much appreciated :)
ffs, how embarassing... |
…n Linux WebKitWebProcess aborts with "Could not create default EGL display: EGL_BAD_PARAMETER. Aborting..." because linuxdeploy bundles libwayland-client.so.0, which shadows the host library and breaks the host Mesa/EGL stack glvnd loads. Strip it from the AppImage after bundling on Linux CI builds. See veloxbase#47; tracked upstream at tauri-apps/tauri#16062.
- Rewrite the embedded linuxdeploy-plugin-gtk/gstreamer scripts whenever the cached copy differs. A script left in the tools cache by an older CLI was used forever, so existing users kept `GDK_BACKEND=x11` and got no GIO module bundling. - Find gio-querymodules with search_tool: Fedora only ships gio-querymodules-64, which made the gtk plugin exit with 127. - Skip the gdk-pixbuf loaders when their directory does not exist (gdk-pixbuf 2.44 with glycin on Arch), instead of failing on `cp ''`. - Drop the old libgiognutls/GIO_EXTRA_MODULES block, now covered by GIO_MODULE_DIR. It found two copies of the module and exported a newline-separated value that included the build machine's AppDir path.
|
my LLM based tests came up with some weird bugs (not related to this PR):
|
* feat: restore AppImage distribution with GPU rendering (#1301) Tauri CLI 2.12 (tauri-bundler 2.10, tauri-apps/tauri#16062) fixes the AppImage blank-window EGL bug on Mesa 25+/Wayland at the source, so: - bump @tauri-apps/cli to ^2.12.0 and re-add the appimage bundle target - drop the AppImage-only WEBKIT_DISABLE_COMPOSITING_MODE/DMABUF gate; the env vars are still honoured (and detected) when a user sets them by hand - README and updater footer no longer describe AppImage as local-build-only * docs: list cmake in Linux build dependencies * docs: list cmake in README Linux build dependencies * docs: drop nonexistent libayatanaloop-dev from README Linux deps
tauri-bundler 2.10 (CLI 2.12) の linuxdeploy GTK plugin は GIO モジュールを usr/lib/x86_64-linux-gnu/gio/modules ではなく usr/lib/gio/modules へ置く (tauri-apps/tauri#16062)。起動時の同梱 TLS の確認先・検査スクリプト・runbook を新しい配置へ合わせる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): TypeScript / npm 依存を最新へ更新する (#1449 AC-1) - apps/desktop と tools/promo の npm 依存を latest へ上げる。 - desktop の typescript は typescript-eslint 8.71.0 の peer 上限 (<6.1.0) のため 6.0.3 に留める。 - desktop の jsdom は vitest の jsdom 環境が 30.1 で壊れる (vitest-dev/vitest#11336、未リリース) ため ~30.0.1 に留める。 - promo は TypeScript 7.0.2 / React 19.3 / Remotion 4.0.530 へ上げる。 - Tauri JS 2.12 に合わせ、src-tauri の tauri / tauri-build / 各 plugin の crate を同じ major.minor へ上げる。 - 非推奨になった InvokeMessage::state_ref を Manager::try_state へ置き換える。 - eslint-plugin-react-refresh 0.5.7 で不要になった抑制コメントを削除する。 - THIRD_PARTY_NOTICES を lock から再生成する。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(appimage): Tauri CLI 2.12 の GIO モジュールの配置先に合わせる (#1449 AC-1) tauri-bundler 2.10 (CLI 2.12) の linuxdeploy GTK plugin は GIO モジュールを usr/lib/x86_64-linux-gnu/gio/modules ではなく usr/lib/gio/modules へ置く (tauri-apps/tauri#16062)。起動時の同梱 TLS の確認先・検査スクリプト・runbook を新しい配置へ合わせる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(updater): 更新 fixture が署名した bundle の版を告知する (#1449 AC-1) tauri-plugin-updater 2.13 は、署名の trusted comment に Tauri CLI 2.12 が記録した版と 更新 endpoint が告知する版の一致を要求する。fixture は同じ crate の版で署名した bundle を 99.0.0 として告知していたため SignedVersionMismatch で拒否された。告知する版を crate の版に合わせる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…te it (#1509) * fix(release): don't bundle libwayland into the Tauri AppImage, and gate it A libwayland copied from the Ubuntu build image clashes with the host's newer Mesa: crashes or a blank webview on e.g. Arch/KDE Wayland (tauri-apps/tauri#15665, tauri-apps/tauri#15976). Set LINUXDEPLOY_EXCLUDED_LIBRARIES=libwayland-* for the Tauri builds (linuxdeploy honors it from @tauri-apps/cli 2.12, tauri-apps/tauri#16062), and run the host-ABI gate on the Tauri AppImage. host-abi-gate.sh gains HOST_ABI_LIBS_LIST so this bundle can keep glib, which its GTK/WebKitGTK needs. * test(package): cover host-abi-gate.sh's default list and HOST_ABI_LIBS_LIST override * test(package): make the symlink case depend on the gate checking symlinks
…) (#480) The 0.4.10 AppImage opened an empty window on Omarchy with an AMD GPU: WebKit's page process aborted with "Could not create default EGL display: EGL_BAD_PARAMETER". Tauri 2.11's bundler builds the AppImage with a linuxdeploy from July 2024, which copies Ubuntu 22.04's libwayland 1.20 into it, ahead of the system's; Mesa 26.2's EGL driver needs functions libwayland only gained later, so it never loads. Found and tested by the reporter. Tauri's fix (tauri-apps/tauri#16062, not in a release yet) moves to linuxdeploy 07333c6. scripts/appimage-linuxdeploy.sh puts that same build, checksum pinned, where Tauri 2.11 looks before downloading its own, and the builds set LINUXDEPLOY_EXCLUDED_LIBRARIES=libwayland-* so all four (client, server, cursor, egl) stay out. Every desktop has its own libwayland, as GTK needs it. scripts/appimage-wayland-check.sh fails a build that carries one; it fails on the released 0.4.10 AppImage, naming the four.
…ayland Tauri CLI 2.12 updates linuxdeploy and its GTK plugin (tauri-apps/tauri#16062), fixing EGL_BAD_PARAMETER blank windows on newer Mesa (tauri-apps/tauri#15976, #15665).
tauri cli 2.12 ships updated linuxdeploy and gtk plugin builds that leave libwayland-client to the host. the 2.10 build bundled the ubuntu 22.04 copy, so newer mesa failed to create an egl display and webkit aborted with EGL_BAD_PARAMETER, leaving the palette blank upstream: tauri-apps/tauri#15976, tauri-apps/tauri#16062 Fixes #64
AppImages built with Tauri CLI 2.11.5 bundle an old libwayland-client from the build runner. On Mesa 26 hosts (Ubuntu 26.04, Fedora 44, Arch, openSUSE), libEGL_mesa needs wl_display_create_queue_with_name, wl_display_dispatch_queue_timeout and wl_fixes_interface, which that copy lacks, so EGL cannot load and WebKitWebProcess aborts with "Could not create default EGL display: EGL_BAD_PARAMETER", leaving a blank window (#223). CLI 2.12 (tauri-apps/tauri#16062) pins linuxdeploy 07333c6, whose excludelist leaves libwayland-client to the host, and embeds the GTK plugin, which no longer forces GDK_BACKEND=x11. Tested on Ubuntu 26.04 ARM64: an arm64 AppImage built with CLI 2.12.2 on ubuntu:24.04 renders; removing only libwayland-client from the 3.9.1 AppImage also renders, while the 3.9.1 AppImage as shipped aborts.
…rolling distros (#65) 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>
The AppImage up to 0.20.0 bundled Ubuntu 24.04's libwayland-client 1.22, which the Mesa of current distributions cannot load against. Inside the app only NVIDIA's EGL could initialise, so on a hybrid laptop WebKit drew every frame on the NVIDIA card and copied it to the GPU driving the screen: the typing and selection lag reported on Linux. Without NVIDIA the app aborted with EGL_BAD_PARAMETER. Tauri CLI 2.12 (tauri-bundler 2.10, tauri-apps/tauri#16062) leaves the library to the system and no longer forces GDK_BACKEND=x11. Bump the CLI, document the finding (changelog, troubleshooting, design docs, display.rs comment) and the lesson: measure the artefact that ships, not the dev build. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The AppImage step failed on every release since v0.18.19 with "failed to bundle project: failed to run linuxdeploy". tauri-bundler 2.9.4 (shipped with @tauri-apps/cli 2.11.x) downloads a 2021-era linuxdeploy and pulls linuxdeploy-plugin-gtk.sh live from the master branch; upstream fixed both in 2.12 (tauri-apps/tauri#16062). - desktop: @tauri-apps/cli ^2.12.4 -> tauri-bundler 2.10.4 with linuxdeploy 07333c6 and the plugin scripts inlined. - workflow: pass -v to tauri build on ubuntu so the bundler takes the output_ok() path and linuxdeploy's stderr reaches the log. - workflow: keep NO_STRIP=true as a precaution against Ubuntu 22.04 binutils 2.38 crashing on .relr.dyn sections. - CHANGELOG: record the real root cause instead of the strip theory.
…the wall clock The released AppImage's GTK launch hook forced GDK_BACKEND=x11, so on a Wayland desktop the office ran under XWayland, where WebKit could not hand its frames to the GPU and painted every one on the CPU: a core pinned and an avatar that lagged its own keys. Tauri CLI 2.12's bundler no longer sets it (tauri-apps/tauri#16062), and fix-appimage.sh strips it from any older hook, so the window opens on Wayland where there is one. GDK_BACKEND=x11 in the environment still forces X11 for anyone who needs it. Two client faults showed up once frames were slow. Prediction stepped by Phaser's smoothed delta, which averages frames, drops any over 200ms and caps every frame at the 60Hz target for two seconds after a refocus — so the local avatar walked slower than the server's, set off slowly after coming back to the window and slid on after the key was released to catch up. It now steps by the real time since the last frame. And a key held when the window lost focus never sent its stop: Phaser reset the key, but the stop only went out from the frame loop, which a hidden window does not run, so the server walked on into a wall and the avatar came back elsewhere. The stop now goes out from the blur and hidden events, and a route clicked before looking away is walked on resume for as long as the loop was paused. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Joao Henrique Machado Silva <joaoh82@gmail.com>
…the wall clock (#152) The released AppImage's GTK launch hook forced GDK_BACKEND=x11, so on a Wayland desktop the office ran under XWayland, where WebKit could not hand its frames to the GPU and painted every one on the CPU: a core pinned and an avatar that lagged its own keys. Tauri CLI 2.12's bundler no longer sets it (tauri-apps/tauri#16062), and fix-appimage.sh strips it from any older hook, so the window opens on Wayland where there is one. GDK_BACKEND=x11 in the environment still forces X11 for anyone who needs it. Two client faults showed up once frames were slow. Prediction stepped by Phaser's smoothed delta, which averages frames, drops any over 200ms and caps every frame at the 60Hz target for two seconds after a refocus — so the local avatar walked slower than the server's, set off slowly after coming back to the window and slid on after the key was released to catch up. It now steps by the real time since the last frame. And a key held when the window lost focus never sent its stop: Phaser reset the key, but the stop only went out from the frame loop, which a hidden window does not run, so the server walked on into a wall and the avatar came back elsewhere. The stop now goes out from the blur and hidden events, and a route clicked before looking away is walked on resume for as long as the loop was paused. Signed-off-by: Joao Henrique Machado Silva <joaoh82@gmail.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…n Linux (#58) WebKitWebProcess aborts with "Could not create default EGL display: EGL_BAD_PARAMETER. Aborting..." because linuxdeploy bundles libwayland-client.so.0, which shadows the host library and breaks the host Mesa/EGL stack glvnd loads. Strip it from the AppImage after bundling on Linux CI builds. See #47; tracked upstream at tauri-apps/tauri#16062.
…ixes #369) (#455) * build(linux): bump @tauri-apps/cli to 2.12 to stop bundling libwayland-client CLI 2.12 ships tauri-apps/tauri#16062 (pin linuxdeploy to 07333c6, updated inlined gtk plugin): the AppImage no longer bundles the host's libwayland-client and no longer forces GDK_BACKEND=x11 in the AppRun hooks. Resolving the client library against the host fixes 'Could not create default EGL display: EGL_BAD_PARAMETER' under current Mesa (Fedora 44, GNOME Wayland, Mesa 26.1, AMDGPU). * ci(linux): fail release if AppImage bundles libwayland-client Packaging guard styled after verify-appimage-update.py, run in release.yml for both linux targets. Passes on a CLI 2.12 build; verified to fail on the 1.99.21 release image.
So far i only tested building and running on arch. I assume this will cause issues but since the old stuff also causes issues i think this is fine.
script diff is tauri-apps/linuxdeploy-plugin-gtk#5 + tauri-apps/linuxdeploy-plugin-gtk#6
Still on vacation so idk how long it takes for me to test this.
Should fix #15976
Should fix #15665 (same as above)
Maybe fixes #15902
Edit: In #14390 i inlined the plugin scripts. In #14841 i accidentally removed that. This PR fixes that as well.