[bug] Empty window, Failed to create GBM device for render device: /dev/dri/renderD128 #8254
Description
Describe the bug
I was trying to compile and run mdSilo-app, but kept giving me this error. I though it might be mdSilo-specific so I created a new tauri project using create-tauri-app
, but it still gives me this same error:
Building [=======================> ] 358/359: tauri-app(bin)
Finished dev [unoptimized + debuginfo] target(s) in 1m 22s
Gtk-Message: 15:21:25.493: Failed to load module "appmenu-gtk-module"
Could not determine the accessibility bus address
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
Failed to create GBM device for render device: /dev/dri/renderD128: No such file or directory
Gtk-Message: 15:21:27.416: Failed to load module "appmenu-gtk-module"
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.9')
failed to bind extensions
Failed to create GBM device for render device: /dev/dri/renderD128: No such file or directory
Failed to get GBM device
It doens't crash, just stays there and will continue to print "Failed to get GBM device" whenever I interact (resize) the window:
Reproduction
Repro repo: https://github.com/zyansheep/tauri-app-render-bug
Instructions (on NixOS w/ nix flakes)
nix develop
yarn
yarn tauri dev
Expected behavior
Expected the app to show the default Hello World window.
Platform and versions
yarn run v1.22.19
$ tauri info
[⚠] Environment
- OS: NixOS 23.5.0 X64
✔ webkit2gtk-4.0: 2.42.2
✔ rsvg2: 2.56.3
✔ rustc: 1.76.0-nightly (dd430bc8c 2023-11-14)
✔ cargo: 1.76.0-nightly (6790a5127 2023-11-10)
⚠ rustup: not installed!
If you have rust installed some other way, we recommend uninstalling it
then use rustup instead. Visit https://rustup.rs/
⚠ Rust toolchain: couldn't be detected!
Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
- node: 18.18.2
- yarn: 1.22.19
- npm: 9.8.1
[-] Packages
- tauri [RUST]: 1.5.2
- tauri-build [RUST]: 1.5.0
- wry [RUST]: 0.24.4
- tao [RUST]: 0.16.5
- tauri-cli [RUST]: 1.5.3
- @tauri-apps/api [NPM]: 1.5.1
- @tauri-apps/cli [NPM]: 1.5.6
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1420/
- framework: React
- bundler: Vite
Done in 7.78s.
Stack trace
No response
Additional context
> doas inxi -GS
System: Kernel: 6.1.62 x86_64 bits: 64 Desktop: KDE Plasma 5.27.9 Distro: NixOS 23.05 (Stoat)
Graphics: Device-1: Intel UHD Graphics 620 driver: i915 v: kernel
Device-2: Sunplus Innovation USB Camera type: USB driver: uvcvideo
Display: wayland server: X.org 1.21.1.9 driver: loaded: modesetting resolution: <missing: xdpyinfo>
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 23.0.3
Edit: I figured I should probably test some tauri apps already in nixpkgs, so I installed pot and it seems to work perfectly, despite receiving nearly the same driver and render device messages as mdSilo and the blank tauri app.
Edit 2: I cloned the pot repository and build it from scratch and I'm getting the same error, so I'm wondering if it has something to do with the way it was packaged in nixpkgs 🤔
Edit: This was solved for me, but seems to still be an issue for other people. I have reopened the issue.