Hello, I've been building a tauri app on my workstation running linux & gnome, and have noticed that after adding more elements to the frontend, the app freezes after a few seconds. Often I can click on buttons after a freeze, and in the backend things still happen, but the UI is frozen. Notably, I have another machine; a far less powerful laptop on which the same code runs perfectly fine and snappy. My workstation has a nvidia GPU, and I think there's something weird going on with gnome webkit.
So far I've tried:
- Running with: GDK_BACKEND=x11 WEBIT_UNIX_BACKEND=x11 WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1
- Software only rendering
- Checking the journal after the freeze, which had no info.
- Running the tauri app as the only thing open right after a reboot
The freeze persists through all of these. Any suggestions would be greatly appreciated!
My tauri info:
[✔] Environment
- OS: Arch Linux Rolling Release x86_64 (X64) (gnome on wayland)
✔ webkit2gtk-4.1: 2.50.4
✔ rsvg2: 2.61.3
✔ rustc: 1.90.0 (1159e78c4 2025-09-14)
✔ cargo: 1.90.0 (840b83a10 2025-07-30)
✔ rustup: 1.28.2 (2025-12-16)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (overridden by environment variable RUSTUP_TOOLCHAIN)
- node: 25.3.0
- pnpm: 10.28.0
- npm: 11.7.0
- bun: 1.3.5
- deno: deno 2.6.4
[-] Packages
- tauri 🦀: 2.9.2
- tauri-build 🦀: 2.5.1
- wry 🦀: 0.53.5
- tao 🦀: 0.34.5
- tauri-cli 🦀: 2.2.5
- @tauri-apps/api : 2.9.0 (outdated, latest: 2.9.1)
- @tauri-apps/cli : 2.2.5 (outdated, latest: 2.9.6)
[-] Plugins
- tauri-plugin-shell 🦀: 2.3.3
- @tauri-apps/plugin-shell : not installed!
- tauri-plugin-opener 🦀: 2.5.2
- @tauri-apps/plugin-opener : 2.5.2 (outdated, latest: 2.5.3)
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite