tauri-apps/tauri

[bug] Tauri fails to build on Fedora 41 (Failed to get GBM device)

Closed this issue · 16 comments

Describe the bug

When trying to run a default template app made with the npm create tauri-app@latest command using React on Fedora 41, the window appears to have an empty screen with the errors Failed to get GBM device.

npm run tauri dev log:

image

> tauri-app@0.1.0 tauri
> tauri dev

    Running BeforeDevCommand (`npm run dev`)

> tauri-app@0.1.0 dev
> vite


  VITE v6.0.3  ready in 176 ms

  ➜  Local:   http://localhost:1420/
    Info Watching /home/user/Downloads/tauri-app/src-tauri for changes...
    Updating crates.io index
  Downloaded foreign-types-shared v0.1.1
  Downloaded foreign-types v0.3.2
  Downloaded openssl-macros v0.1.1
  Downloaded openssl-probe v0.1.5
  Downloaded hyper-tls v0.6.0
  Downloaded tokio-native-tls v0.3.1
  Downloaded rustls-pemfile v2.2.0
  Downloaded native-tls v0.2.12
  Downloaded openssl-sys v0.9.104
  Downloaded rustls-pki-types v1.10.1
  Downloaded openssl v0.10.68
  Downloaded vcpkg v0.2.15
  Downloaded 12 crates (753.6 KB) in 0.34s
   Compiling equivalent v1.0.1
   Compiling hashbrown v0.15.2
   Compiling winnow v0.5.40
   Compiling indexmap v2.7.0
   Compiling toml_datetime v0.6.3
   Compiling serde_spanned v0.6.8
   Compiling cfg-if v1.0.0
   Compiling heck v0.5.0
   Compiling toml_edit v0.20.2
   Compiling serde v1.0.216
   Compiling toml v0.8.2
   Compiling libc v0.2.168
   Compiling system-deps v6.2.2
   Compiling once_cell v1.20.2
   Compiling memchr v2.7.4
   Compiling byteorder v1.5.0
   Compiling zerocopy v0.7.35
   Compiling ppv-lite86 v0.2.20
   Compiling siphasher v0.3.11
   Compiling pin-project-lite v0.2.15
   Compiling stable_deref_trait v1.2.0
   Compiling futures-core v0.3.31
   Compiling zerofrom v0.1.5
   Compiling getrandom v0.2.15
   Compiling itoa v1.0.14
   Compiling smallvec v1.13.2
   Compiling yoke v0.7.5
   Compiling zerovec v0.10.4
   Compiling fnv v1.0.7
   Compiling thiserror v1.0.69
   Compiling glib-sys v0.18.1
   Compiling tinystr v0.7.6
   Compiling writeable v0.5.5
   Compiling litemap v0.7.4
   Compiling futures-io v0.3.31
   Compiling icu_locid v1.5.0
   Compiling getrandom v0.1.16
   Compiling rand_core v0.6.4
   Compiling gobject-sys v0.18.0
   Compiling icu_provider v1.5.0
   Compiling rand_chacha v0.3.1
   Compiling rand_core v0.5.1
   Compiling icu_locid_transform_data v1.5.0
   Compiling icu_locid_transform v1.5.0
   Compiling rand v0.8.5
   Compiling icu_collections v1.5.0
   Compiling phf_shared v0.10.0
   Compiling bitflags v2.6.0
   Compiling icu_properties_data v1.5.0
   Compiling icu_properties v1.5.1
   Compiling slab v0.4.9
   Compiling rand_chacha v0.2.2
   Compiling rand_pcg v0.2.1
   Compiling log v0.4.22
   Compiling write16 v1.0.0
   Compiling icu_normalizer_data v1.5.0
   Compiling utf8_iter v1.0.4
   Compiling utf16_iter v1.0.5
   Compiling rand v0.7.3
   Compiling phf_shared v0.8.0
   Compiling gio-sys v0.18.1
   Compiling futures-sink v0.3.31
   Compiling scopeguard v1.2.0
   Compiling lock_api v0.4.12
   Compiling phf_generator v0.8.0
   Compiling futures-task v0.3.31
   Compiling ryu v1.0.18
   Compiling pin-utils v0.1.0
   Compiling futures-util v0.3.31
   Compiling phf_generator v0.10.0
   Compiling precomputed-hash v0.1.1
   Compiling new_debug_unreachable v1.0.6
   Compiling bitflags v1.3.2
   Compiling string_cache_codegen v0.5.2
   Compiling phf_codegen v0.10.0
   Compiling toml_edit v0.19.15
   Compiling mac v0.1.1
   Compiling futf v0.1.5
   Compiling markup5ever v0.11.0
   Compiling phf_macros v0.8.0
   Compiling futures-channel v0.3.31
   Compiling utf-8 v0.7.6
   Compiling dtoa v1.0.9
   Compiling dtoa-short v0.3.5
   Compiling tendril v0.4.3
   Compiling phf v0.8.0
   Compiling phf_codegen v0.8.0
   Compiling phf v0.10.1
   Compiling aho-corasick v1.1.3
   Compiling gdk-sys v0.18.2
   Compiling regex-syntax v0.8.5
   Compiling itoa v0.4.8
   Compiling matches v0.1.10
   Compiling darling_core v0.20.10
   Compiling regex-automata v0.4.9
   Compiling selectors v0.22.0
   Compiling hashbrown v0.12.3
   Compiling nodrop v0.1.14
   Compiling servo_arc v0.1.1
   Compiling regex v1.11.1
   Compiling darling_macro v0.20.10
   Compiling typeid v1.0.2
   Compiling fxhash v0.2.1
   Compiling proc-macro-crate v2.0.2
   Compiling unic-common v0.9.0
   Compiling unic-char-range v0.9.0
   Compiling thin-slice v0.1.1
   Compiling glib-macros v0.18.5
   Compiling unic-char-property v0.9.0
   Compiling unic-ucd-version v0.9.0
   Compiling darling v0.20.10
   Compiling futures-executor v0.3.31
   Compiling phf_shared v0.11.2
   Compiling pango-sys v0.18.0
   Compiling cairo-sys-rs v0.18.2
   Compiling gdk-pixbuf-sys v0.18.0
   Compiling alloc-no-stdlib v2.0.4
   Compiling alloc-stdlib v0.2.2
   Compiling phf_generator v0.11.2
   Compiling serde_with_macros v3.11.0
   Compiling unic-ucd-ident v0.9.0
   Compiling icu_normalizer v1.5.0
   Compiling glib v0.18.5
   Compiling parking_lot_core v0.9.10
   Compiling atk-sys v0.18.2
   Compiling parking_lot v0.12.3
   Compiling idna_adapter v1.2.0
   Compiling phf_macros v0.11.2
   Compiling brotli-decompressor v4.0.1
   Compiling serde_json v1.0.133
   Compiling crossbeam-utils v0.8.21
   Compiling same-file v1.0.6
   Compiling walkdir v2.5.0
   Compiling thiserror v2.0.7
   Compiling brotli v7.0.0
   Compiling phf v0.11.2
   Compiling idna v1.0.3
   Compiling string_cache v0.8.7
   Compiling uuid v1.11.0
   Compiling bytes v1.9.0
   Compiling glob v0.3.1
   Compiling dunce v1.0.5
   Compiling url v2.5.4
   Compiling indexmap v1.9.3
   Compiling cssparser v0.27.2
   Compiling proc-macro-crate v1.3.1
   Compiling gtk-sys v0.18.2
   Compiling html5ever v0.26.0
   Compiling gio v0.18.4
   Compiling cfb v0.7.3
   Compiling jsonptr v0.6.3
   Compiling erased-serde v0.4.5
   Compiling schemars v0.8.21
   Compiling http v1.2.0
   Compiling cargo_metadata v0.18.1
   Compiling serde-untagged v0.1.6
   Compiling json-patch v3.0.1
   Compiling infer v0.16.0
   Compiling kuchikiki v0.8.2
   Compiling urlpattern v0.3.0
   Compiling serde_with v3.11.0
   Compiling tauri-utils v2.1.0
   Compiling memoffset v0.9.1
   Compiling vcpkg v0.2.15
   Compiling parking v2.2.1
   Compiling option-ext v0.2.0
   Compiling percent-encoding v2.3.1
   Compiling openssl-sys v0.9.104
   Compiling pango v0.18.3
   Compiling gdk-pixbuf v0.18.5
   Compiling typenum v1.17.0
   Compiling concurrent-queue v2.5.0
   Compiling cairo-rs v0.18.5
   Compiling gdk v0.18.2
   Compiling generic-array v0.14.7
   Compiling anyhow v1.0.94
   Compiling form_urlencoded v1.2.1
   Compiling gtk v0.18.2
   Compiling field-offset v0.3.6
   Compiling event-listener v5.3.1
   Compiling dirs-sys v0.4.1
   Compiling atk v0.18.2
   Compiling gtk3-macros v0.18.2
   Compiling embed-resource v2.5.1
   Compiling toml v0.7.8
   Compiling javascriptcore-rs-sys v1.1.1
   Compiling soup3-sys v0.5.0
   Compiling tracing-core v0.1.33
   Compiling mio v1.0.3
   Compiling socket2 v0.5.8
   Compiling tracing v0.1.41
   Compiling tokio v1.42.0
   Compiling tauri-winres v0.1.1
   Compiling dirs v5.0.1
   Compiling event-listener-strategy v0.5.3
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling gdkx11-sys v0.18.2
   Compiling webkit2gtk-sys v2.0.1
   Compiling cargo_toml v0.17.2
   Compiling foreign-types-shared v0.1.1
   Compiling fastrand v2.3.0
   Compiling openssl v0.10.68
   Compiling foreign-types v0.3.2
   Compiling tauri-build v2.0.3
   Compiling digest v0.10.7
   Compiling x11 v2.21.0
   Compiling http-body v1.0.1
   Compiling dpi v0.1.1
   Compiling crc32fast v1.4.2
   Compiling openssl-macros v0.1.1
   Compiling native-tls v0.2.12
   Compiling try-lock v0.2.5
   Compiling num-conv v0.1.0
   Compiling powerfmt v0.2.0
   Compiling time-core v0.1.2
   Compiling cpufeatures v0.2.16
   Compiling time-macros v0.2.19
   Compiling deranged v0.3.11
   Compiling want v0.3.1
   Compiling flate2 v1.0.35
   Compiling httparse v1.9.5
   Compiling futures-lite v2.5.0
   Compiling openssl-probe v0.1.5
   Compiling raw-window-handle v0.6.2
   Compiling png v0.17.15
   Compiling hyper v1.5.2
   Compiling x11-dl v2.21.0
   Compiling time v0.3.37
   Compiling semver v1.0.24
   Compiling soup3 v0.5.0
   Compiling javascriptcore-rs v1.1.2
   Compiling tauri v2.1.1
   Compiling crossbeam-channel v0.5.14
   Compiling base64 v0.22.1
   Compiling tower-service v0.3.3
   Compiling linux-raw-sys v0.4.14
   Compiling async-task v4.7.1
   Compiling atomic-waker v1.1.2
   Compiling piper v0.2.4
   Compiling rustix v0.38.42
   Compiling hyper-util v0.1.10
   Compiling wry v0.47.2
   Compiling dlopen2 v0.7.0
   Compiling enumflags2 v0.7.10
   Compiling webkit2gtk v2.0.1
   Compiling cookie v0.18.1
   Compiling ico v0.3.0
   Compiling tokio-native-tls v0.3.1
   Compiling zvariant_derive v4.0.0
   Compiling gdkx11 v0.18.2
   Compiling sha2 v0.10.8
   Compiling http-body-util v0.1.2
   Compiling async-lock v3.4.0
   Compiling async-channel v2.3.1
   Compiling tauri-plugin v2.0.3
   Compiling gdkwayland-sys v0.18.2
   Compiling instant v0.1.13
   Compiling lazy_static v1.5.0
   Compiling endi v1.1.0
   Compiling rustls-pki-types v1.10.1
   Compiling unicode-segmentation v1.12.0
   Compiling static_assertions v1.1.0
   Compiling zvariant v4.0.0
   Compiling keyboard-types v0.7.0
   Compiling rustls-pemfile v2.2.0
   Compiling tao v0.30.8
   Compiling tauri-plugin-opener v2.2.2
   Compiling blocking v1.6.1
   Compiling hyper-tls v0.6.0
   Compiling tauri-codegen v2.0.3
   Compiling tauri-runtime v2.2.0
   Compiling polling v3.7.4
   Compiling tokio-util v0.7.13
   Compiling serde_urlencoded v0.7.1
   Compiling sync_wrapper v1.0.2
   Compiling is-docker v0.2.0
   Compiling ipnet v2.10.1
   Compiling mime v0.3.17
   Compiling reqwest v0.12.9
   Compiling is-wsl v0.4.0
   Compiling serialize-to-javascript v0.1.1
   Compiling tauri-runtime-wry v2.2.0
   Compiling async-io v2.4.0
   Compiling tauri-macros v2.0.3
   Compiling async-fs v2.1.2
   Compiling zbus_names v3.0.0
   Compiling muda v0.15.3
   Compiling async-executor v1.13.1
   Compiling zbus_macros v4.0.1
   Compiling sha1 v0.10.6
   Compiling async-broadcast v0.7.1
   Compiling nix v0.27.1
   Compiling ordered-stream v0.2.0
   Compiling xdg-home v1.3.0
   Compiling hex v0.4.3
   Compiling pathdiff v0.2.3
   Compiling open v5.3.1
   Compiling zbus v4.0.1
   Compiling tauri-app v0.1.0 (/home/user/Downloads/tauri-app/src-tauri)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 43s
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI3: Screen seems not DRI3 capable
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device

Reproduction

  1. Install necessary dependencies
  2. npm create tauri-app@latest (Choose default options with React)
  3. npm install
  4. npm run tauri dev

Expected behavior

The window displays the contents of the app.

Full tauri info output

> tauri-app@0.0.0 tauri
> tauri info


[✔] Environment
    - OS: Linux Mint 22.0.0 X64
    ✔ webkit2gtk-4.0: 2.42.1
    ✔ rsvg2: 2.58.0
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 18.19.1
    - npm: 9.2.0

[-] Packages
    - tauri [RUST]: 1.2 (no lockfile)
    - tauri-build [RUST]: no manifest (no lockfile)
    - wry [RUST]: no manifest (no lockfile)
    - tao [RUST]: no manifest (no lockfile)
    - @tauri-apps/api [NPM]: 1.6.0 (outdated, latest: 2.1.1)
    - @tauri-apps/cli [NPM]: 1.6.3 (outdated, latest: 2.1.0)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

They don't contain the very same error message i think but i'll close this as a duplicate of #5143 and #9304. We already have too many issues open for "white window" upstream issues imo.
Thanks for the report nonetheless.
Also, webkitgtk released a new version today, so maybe keep your eyes open for that to hit the distro repos.

Are you using Wayland + Nvidia? If so, it has already been reported earlier #8254 . Using WEBKIT_DISABLE_COMPOSITING_MODE=1 npm run tauri dev may be used as a workaround for now.

Also, it can be issue with webkit2gtk-4.0: 2.42.1 , like reported here #7927

It is most probably an upstream issue, as already suggested.

@naman-crabnebula All my tests were done on VMs with the standard ISO installations.

Thanks so much that actually managed to fix the issue for running, when building on Debian/Ubuntu base so that I can run on Fedora do I have to run it with this argument or can I somehow set it in the configs so that this is done automatically for me?

As for the Fedora webkit version:
Package "webkit2gtk4.1-2.46.4-1.fc41.x86_64" is already installed.

you could add this above the tauri::Builder line in lib.rs/main.rs

std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); // alternatively `WEBKIT_DISABLE_COMPOSITING_MODE` if this one is not enough

@FabianLars I tried building an AppImage on Fedora with the variable in the Tauri builder but it still failed:

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); // alternatively `WEBKIT_DISABLE_COMPOSITING_MODE` if this one is not enough

    tauri::Builder::default()
        .plugin(tauri_plugin_opener::init())
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
    }

The terminal logs:

...
   Compiling tauri-app v0.1.0 (/home/user/Downloads/tauri-app/src-tauri)
    Finished `release` profile [optimized] target(s) in 2m 55s
    Built application at: /home/user/Downloads/tauri-app/src-tauri/target/release/tauri-app
    Bundling tauri-app_0.1.0_amd64.deb (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/deb/tauri-app_0.1.0_amd64.deb)
    Bundling tauri-app-0.1.0-1.x86_64.rpm (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/rpm/tauri-app-0.1.0-1.x86_64.rpm)
    Bundling tauri-app_0.1.0_amd64.AppImage (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/tauri-app_0.1.0_amd64.AppImage)
failed to bundle project: error running build_appimage.sh: `failed to run /home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/build_appimage.sh`
    Error failed to bundle project: error running build_appimage.sh: `failed to run /home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/build_appimage.sh`

I deleted the target folder many times and tried rebuilding but no success.

can you build it with the --verbose flag so we see what's going on? This error is unrelated to rust code and the gbm/webkit runtime issues.

can you build it with the --verbose flag so we see what's going on? This error is unrelated to rust code and the gbm/webkit runtime issues.

Terminal:

npm verbose cli /usr/bin/node-22 /usr/bin/npm
npm info using npm@10.9.0
npm info using node@v22.11.0
npm verbose title npm run tauri build
npm verbose argv "run" "tauri" "build" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2024-12-18T22_01_23_678Z-
npm verbose logfile /home/user/.npm/_logs/2024-12-18T22_01_23_678Z-debug-0.log

> tauri-app@0.1.0 tauri
> tauri build

    Running beforeBuildCommand `npm run build`
npm verbose cli /usr/bin/node-22 /usr/bin/npm
npm info using npm@10.9.0
npm info using node@v22.11.0
npm verbose title npm run build
npm verbose argv "run" "build"
npm verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2024-12-18T22_01_26_000Z-
npm verbose logfile /home/user/.npm/_logs/2024-12-18T22_01_26_000Z-debug-0.log

> tauri-app@0.1.0 build
> tsc && vite build

vite v6.0.3 building for production...
✓ 30 modules transformed.
dist/index.html                   0.47 kB │ gzip:  0.31 kB
dist/assets/react-CHdo91hT.svg    4.13 kB │ gzip:  2.05 kB
dist/assets/index-B3KA1C1_.css    1.37 kB │ gzip:  0.65 kB
dist/assets/index-CjyhBE6J.js   144.40 kB │ gzip: 46.53 kB
✓ built in 488ms
npm verbose cwd /home/user/Downloads/tauri-app
npm verbose os Linux 6.12.4-200.fc41.x86_64
npm verbose node v22.11.0
npm verbose npm  v10.9.0
npm verbose exit 0
npm info ok
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.14
   Compiling serde v1.0.216
   Compiling equivalent v1.0.1
   Compiling hashbrown v0.15.2
   Compiling quote v1.0.37
   Compiling syn v2.0.90
   Compiling indexmap v2.7.0
   Compiling winnow v0.5.40
   Compiling smallvec v1.13.2
   Compiling pkg-config v0.3.31
   Compiling autocfg v1.4.0
   Compiling heck v0.5.0
   Compiling libc v0.2.168
   Compiling serde_derive v1.0.216
   Compiling target-lexicon v0.12.16
   Compiling cfg-if v1.0.0
   Compiling cfg-expr v0.15.8
   Compiling version-compare v0.2.0
   Compiling syn v1.0.109
   Compiling toml_datetime v0.6.3
   Compiling serde_spanned v0.6.8
   Compiling toml_edit v0.20.2
   Compiling toml v0.8.2
   Compiling system-deps v6.2.2
   Compiling zerocopy-derive v0.7.35
   Compiling byteorder v1.5.0
   Compiling synstructure v0.13.1
   Compiling siphasher v0.3.11
   Compiling zerocopy v0.7.35
   Compiling zerofrom-derive v0.1.5
   Compiling ppv-lite86 v0.2.20
   Compiling version_check v0.9.5
   Compiling yoke-derive v0.7.5
   Compiling zerovec-derive v0.10.3
   Compiling pin-project-lite v0.2.15
   Compiling displaydoc v0.2.5
   Compiling once_cell v1.20.2
   Compiling getrandom v0.2.15
   Compiling thiserror v1.0.69
   Compiling futures-core v0.3.31
   Compiling thiserror-impl v1.0.69
   Compiling memchr v2.7.4
   Compiling getrandom v0.1.16
   Compiling icu_provider_macros v1.5.0
   Compiling rand_core v0.6.4
   Compiling glib-sys v0.18.1
   Compiling rand_chacha v0.3.1
   Compiling rand_core v0.5.1
   Compiling futures-io v0.3.31
   Compiling rand v0.8.5
   Compiling gobject-sys v0.18.0
   Compiling rand_pcg v0.2.1
   Compiling rand_chacha v0.2.2
   Compiling slab v0.4.9
   Compiling lock_api v0.4.12
   Compiling parking_lot_core v0.9.10
   Compiling rand v0.7.3
   Compiling phf_shared v0.10.0
   Compiling phf_shared v0.8.0
   Compiling bitflags v2.6.0
   Compiling stable_deref_trait v1.2.0
   Compiling phf_generator v0.8.0
   Compiling semver v1.0.24
   Compiling gio-sys v0.18.1
   Compiling futures-sink v0.3.31
   Compiling phf_generator v0.10.0
   Compiling zerofrom v0.1.5
   Compiling futures-macro v0.3.31
   Compiling futures-task v0.3.31
   Compiling pin-utils v0.1.0
   Compiling proc-macro-hack v0.5.20+deprecated
   Compiling yoke v0.7.5
   Compiling futures-util v0.3.31
   Compiling zerovec v0.10.4
   Compiling phf_codegen v0.10.0
   Compiling string_cache_codegen v0.5.2
   Compiling fnv v1.0.7
   Compiling phf_macros v0.8.0
   Compiling markup5ever v0.11.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cssparser v0.27.2
   Compiling toml_edit v0.19.15
   Compiling typeid v1.0.2
   Compiling tinystr v0.7.6
   Compiling phf_codegen v0.8.0
   Compiling futures-channel v0.3.31
   Compiling proc-macro-error v1.0.4
   Compiling litemap v0.7.4
   Compiling writeable v0.5.5
   Compiling icu_locid v1.5.0
   Compiling selectors v0.22.0
   Compiling gdk-sys v0.18.2
   Compiling html5ever v0.26.0
   Compiling cssparser-macros v0.6.1
   Compiling strsim v0.11.1
   Compiling ident_case v1.0.1
   Compiling darling_core v0.20.10
   Compiling icu_provider v1.5.0
   Compiling shlex v1.3.0
   Compiling convert_case v0.4.0
   Compiling icu_locid_transform_data v1.5.0
   Compiling icu_locid_transform v1.5.0
   Compiling darling_macro v0.20.10
   Compiling derive_more v0.99.18
   Compiling cc v1.2.4
   Compiling icu_collections v1.5.0
   Compiling rustc_version v0.4.1
   Compiling phf_shared v0.11.2
   Compiling proc-macro-crate v2.0.2
   Compiling itoa v1.0.14
   Compiling thiserror v2.0.8
   Compiling icu_properties_data v1.5.0
   Compiling heck v0.4.1
   Compiling icu_properties v1.5.1
   Compiling glib-macros v0.18.5
   Compiling phf_generator v0.11.2
   Compiling darling v0.20.10
   Compiling futures-executor v0.3.31
   Compiling pango-sys v0.18.0
   Compiling gdk-pixbuf-sys v0.18.0
   Compiling cairo-sys-rs v0.18.2
   Compiling typenum v1.17.0
   Compiling utf16_iter v1.0.5
   Compiling crossbeam-utils v0.8.21
   Compiling scopeguard v1.2.0
   Compiling serde_json v1.0.133
   Compiling icu_normalizer_data v1.5.0
   Compiling write16 v1.0.0
   Compiling new_debug_unreachable v1.0.6
   Compiling utf8_iter v1.0.4
   Compiling icu_normalizer v1.5.0
   Compiling glib v0.18.5
   Compiling serde_with_macros v3.11.0
   Compiling phf_macros v0.11.2
   Compiling aho-corasick v1.1.3
   Compiling atk-sys v0.18.2
   Compiling thiserror-impl v2.0.8
   Compiling precomputed-hash v0.1.1
   Compiling ryu v1.0.18
   Compiling regex-syntax v0.8.5
   Compiling mac v0.1.1
   Compiling futf v0.1.5
   Compiling regex-automata v0.4.9
   Compiling parking_lot v0.12.3
   Compiling idna_adapter v1.2.0
   Compiling generic-array v0.14.7
   Compiling indexmap v1.9.3
   Compiling log v0.4.22
   Compiling dtoa v1.0.9
   Compiling bitflags v1.3.2
   Compiling utf-8 v0.7.6
   Compiling percent-encoding v2.3.1
   Compiling tendril v0.4.3
   Compiling form_urlencoded v1.2.1
   Compiling dtoa-short v0.3.5
   Compiling idna v1.0.3
   Compiling string_cache v0.8.7
   Compiling regex v1.11.1
   Compiling phf v0.8.0
   Compiling phf v0.10.1
   Compiling uuid v1.11.0
   Compiling bytes v1.9.0
   Compiling ctor v0.2.9
   Compiling alloc-no-stdlib v2.0.4
   Compiling camino v1.1.9
   Compiling hashbrown v0.12.3
   Compiling matches v0.1.10
   Compiling nodrop v0.1.14
   Compiling gio v0.18.4
   Compiling unic-common v0.9.0
   Compiling unic-char-range v0.9.0
   Compiling itoa v0.4.8
   Compiling unic-char-property v0.9.0
   Compiling unic-ucd-version v0.9.0
   Compiling servo_arc v0.1.1
   Compiling alloc-stdlib v0.2.2
   Compiling url v2.5.4
   Compiling proc-macro-crate v1.3.1
   Compiling fxhash v0.2.1
   Compiling gtk-sys v0.18.2
   Compiling serde_derive_internals v0.29.1
   Compiling thin-slice v0.1.1
   Compiling schemars v0.8.21
   Compiling schemars_derive v0.8.21
   Compiling erased-serde v0.4.5
   Compiling brotli-decompressor v4.0.1
   Compiling unic-ucd-ident v0.9.0
   Compiling cfb v0.7.3
   Compiling jsonptr v0.6.3
   Compiling cargo-platform v0.1.9
   Compiling memoffset v0.9.1
   Compiling anyhow v1.0.94
   Compiling dyn-clone v1.0.17
   Compiling same-file v1.0.6
   Compiling http v1.2.0
   Compiling walkdir v2.5.0
   Compiling cargo_metadata v0.18.1
   Compiling json-patch v3.0.1
   Compiling infer v0.16.0
   Compiling urlpattern v0.3.0
   Compiling brotli v7.0.0
   Compiling serde-untagged v0.1.6
   Compiling kuchikiki v0.8.2
   Compiling phf v0.11.2
   Compiling serde_with v3.11.0
   Compiling dunce v1.0.5
   Compiling glob v0.3.1
   Compiling tauri-utils v2.1.0
   Compiling vcpkg v0.2.15
   Compiling parking v2.2.1
   Compiling openssl-sys v0.9.104
   Compiling gdk-pixbuf v0.18.5
   Compiling pango v0.18.3
   Compiling concurrent-queue v2.5.0
   Compiling cairo-rs v0.18.5
   Compiling field-offset v0.3.6
   Compiling gdk v0.18.2
   Compiling gtk v0.18.2
   Compiling option-ext v0.2.0
   Compiling dirs-sys v0.4.1
   Compiling event-listener v5.3.1
   Compiling atk v0.18.2
   Compiling gtk3-macros v0.18.2
   Compiling embed-resource v2.5.1
   Compiling toml v0.7.8
   Compiling tracing-core v0.1.33
   Compiling soup3-sys v0.5.0
   Compiling javascriptcore-rs-sys v1.1.1
   Compiling tracing-attributes v0.1.28
   Compiling mio v1.0.3
   Compiling socket2 v0.5.8
   Compiling x11 v2.21.0
   Compiling simd-adler32 v0.3.7
   Compiling tracing v0.1.41
   Compiling tokio v1.42.0
   Compiling tauri-winres v0.1.1
   Compiling event-listener-strategy v0.5.3
   Compiling dirs v5.0.1
   Compiling gdkx11-sys v0.18.2
   Compiling webkit2gtk-sys v2.0.1
   Compiling cargo_toml v0.17.2
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.68
   Compiling adler2 v2.0.0
   Compiling fastrand v2.3.0
   Compiling httparse v1.9.5
   Compiling miniz_oxide v0.8.2
   Compiling foreign-types v0.3.2
   Compiling tauri-build v2.0.3
   Compiling http-body v1.0.1
   Compiling dpi v0.1.1
   Compiling crc32fast v1.4.2
   Compiling openssl-macros v0.1.1
   Compiling x11-dl v2.21.0
   Compiling time-core v0.1.2
   Compiling native-tls v0.2.12
   Compiling powerfmt v0.2.0
   Compiling num-conv v0.1.0
   Compiling try-lock v0.2.5
   Compiling want v0.3.1
   Compiling time-macros v0.2.19
   Compiling deranged v0.3.11
   Compiling flate2 v1.0.35
   Compiling futures-lite v2.5.0
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling fdeflate v0.3.7
   Compiling cookie v0.18.1
   Compiling zvariant_utils v1.1.0
   Compiling openssl-probe v0.1.5
   Compiling raw-window-handle v0.6.2
   Compiling rustix v0.38.42
   Compiling time v0.3.37
   Compiling png v0.17.15
   Compiling digest v0.10.7
   Compiling hyper v1.5.2
   Compiling javascriptcore-rs v1.1.2
   Compiling soup3 v0.5.0
   Compiling tauri v2.1.1
   Compiling crossbeam-channel v0.5.14
   Compiling dlopen2_derive v0.4.0
   Compiling enumflags2_derive v0.7.10
   Compiling atomic-waker v1.1.2
   Compiling cpufeatures v0.2.16
   Compiling tower-service v0.3.3
   Compiling tauri-runtime v2.2.0
   Compiling async-task v4.7.1
   Compiling wry v0.47.2
   Compiling linux-raw-sys v0.4.14
   Compiling enumflags2 v0.7.10
   Compiling hyper-util v0.1.10
   Compiling sha2 v0.10.8
   Compiling piper v0.2.4
   Compiling dlopen2 v0.7.0
   Compiling webkit2gtk v2.0.1
   Compiling ico v0.3.0
   Compiling tokio-native-tls v0.3.1
   Compiling zvariant_derive v4.0.0
   Compiling gdkx11 v0.18.2
   Compiling http-body-util v0.1.2
   Compiling async-lock v3.4.0
   Compiling async-channel v2.3.1
   Compiling tauri-plugin v2.0.3
   Compiling gdkwayland-sys v0.18.2
   Compiling instant v0.1.13
   Compiling rustls-pki-types v1.10.1
   Compiling tauri-runtime-wry v2.2.0
   Compiling lazy_static v1.5.0
   Compiling static_assertions v1.1.0
   Compiling unicode-segmentation v1.12.0
   Compiling base64 v0.22.1
   Compiling endi v1.1.0
   Compiling zvariant v4.0.0
   Compiling tauri-codegen v2.0.3
   Compiling keyboard-types v0.7.0
   Compiling tao v0.30.8
   Compiling rustls-pemfile v2.2.0
   Compiling tauri-plugin-opener v2.2.2
   Compiling blocking v1.6.1
   Compiling hyper-tls v0.6.0
   Compiling polling v3.7.4
   Compiling tokio-util v0.7.13
   Compiling serde_urlencoded v0.7.1
   Compiling sync_wrapper v1.0.2
   Compiling is-docker v0.2.0
   Compiling serialize-to-javascript-impl v0.1.1
   Compiling serde_repr v0.1.19
   Compiling mime v0.3.17
   Compiling ipnet v2.10.1
   Compiling reqwest v0.12.9
   Compiling sha1 v0.10.6
   Compiling serialize-to-javascript v0.1.1
   Compiling is-wsl v0.4.0
   Compiling async-io v2.4.0
   Compiling async-fs v2.1.2
   Compiling muda v0.15.3
   Compiling tauri-macros v2.0.3
   Compiling zbus_names v3.0.0
   Compiling async-executor v1.13.1
   Compiling zbus_macros v4.0.1
   Compiling async-broadcast v0.7.1
   Compiling nix v0.27.1
   Compiling ordered-stream v0.2.0
   Compiling derivative v2.2.0
   Compiling async-trait v0.1.83
   Compiling xdg-home v1.3.0
   Compiling hex v0.4.3
   Compiling pathdiff v0.2.3
   Compiling open v5.3.1
   Compiling zbus v4.0.1
   Compiling tauri-app v0.1.0 (/home/user/Downloads/tauri-app/src-tauri)
    Finished `release` profile [optimized] target(s) in 2m 50s
    Built application at: /home/user/Downloads/tauri-app/src-tauri/target/release/tauri-app
    Bundling tauri-app_0.1.0_amd64.deb (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/deb/tauri-app_0.1.0_amd64.deb)
    Bundling tauri-app-0.1.0-1.x86_64.rpm (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/rpm/tauri-app-0.1.0-1.x86_64.rpm)
    Bundling tauri-app_0.1.0_amd64.AppImage (/home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/tauri-app_0.1.0_amd64.AppImage)
failed to bundle project: error running build_appimage.sh: `failed to run /home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/build_appimage.sh`
    Error failed to bundle project: error running build_appimage.sh: `failed to run /home/user/Downloads/tauri-app/src-tauri/target/release/bundle/appimage/build_appimage.sh`
npm verbose cwd /home/user/Downloads/tauri-app
npm verbose os Linux 6.12.4-200.fc41.x86_64
npm verbose node v22.11.0
npm verbose npm  v10.9.0
npm verbose exit 1
npm verbose code 1

Log file:

0 verbose cli /usr/bin/node-22 /usr/bin/npm
1 info using npm@10.9.0
2 info using node@v22.11.0
3 silly config load:file:/usr/lib/node_modules_22/npm/npmrc
4 silly config load:file:/home/user/Downloads/tauri-app/.npmrc
5 silly config load:file:/home/user/.npmrc
6 silly config load:file:/etc/npmrc
7 verbose title npm run build
8 verbose argv "run" "build"
9 verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2024-12-18T22_01_26_000Z-
10 verbose logfile /home/user/.npm/_logs/2024-12-18T22_01_26_000Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 verbose cwd /home/user/Downloads/tauri-app
14 verbose os Linux 6.12.4-200.fc41.x86_64
15 verbose node v22.11.0
16 verbose npm  v10.9.0
17 verbose exit 0
18 info ok

If you use npm it needs an extra -- like this npm run tauri build -- --verbose for npm to forward the argument to tauri.

If you use npm it needs an extra -- like this npm run tauri build -- --verbose for npm to forward the argument to tauri.

Sorry for the late reply here:
log.txt

Ah that one. On rolling release distros (and similar) you currently have to run it with the NO_STRIP=true env var set because of an upstream issue in linuxdeploy

@FabianLars still issues:
log.txt

Well, that's still the same error (unless the GH app is trolling me again) so you didn't apply the env var correctly. Try this if you haven't already

NO_STRIP=true npm run tauri build -- --verbose

This is odd indeed, the AppImage compiled properly when I applied NO_STRIP through the Terminal and not lib.rs

pub fn run() {
    std::env::set_var("NO_STRIP", "true");
    std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); // alternatively `WEBKIT_DISABLE_COMPOSITING_MODE` if this one is not enough

    tauri::Builder::default()
        .plugin(tauri_plugin_opener::init())
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

The explanation is actually quite simple. lib.rs only contains env vars that you'll need when the compiled app is actually running, it does not affect the build environment.
NO_STRIP is an env var for linuxdeploy, a part of the appimage bundler, though so it needs to be set in the terminal session where you run npm run tauri build but does not need to be set in lib.rs for the runtime environment.

@FabianLars Is there a method of setting this variable inside the app itself without needing to append it before the build command every time?

no, you could only try to add it to the tauri script in package.json or permanently in .bashrc (or whatever file). Everything else "in the app" means that it's only applied at app runtime not build time.