dioxus
dioxus copied to clipboard
Desktop Build Opens Empty Window
Problem
- The tutorial hot_dog application builds successfully for the desktop platform but displays an empty window.
- The dx cli gives a
Failed to create GBM buffer of size 800x613: Invalid argumenterror. - Problem appears to be related to incompatibility between
nvidiadrivers andwebkitgtk - Tauri apps are similarly impacted, see Reddit post
Steps To Reproduce
- Follow Tutorial until bundle step
-
dx serve --platform desktop - App opens blank Desktop GUI window
Expected behavior
- App should build
- App should display in Desktop GUI window
- App should behave equivalently to web build
Workaround
-
WEBKIT_DISABLE_DMABUF_RENDERER=1 dx serve --platform desktop - App runs correctly
Screenshots
Environment:
- Dioxus version: v0.6.3, from crates.io
- Rust version: v1.85.0, stable
- OS info: Arch Linux
- App platform: Desktop
- Graphics card: Nvidia Geforce RTX 3050
- Graphics driver: nvidia
I'm also experiencing this on NixOS+NVIDIA.
Same here CachyOs + NVIDIA
The same issue with Fedora 43 + Nvidia proprietary drivers + KDE 6.5 + Wayland + Rust 1.91.1 with the latest at the moment dioxus version (0.7.1).