DioxusLabs / DioxusLabs/dioxus
Desktop Build Opens Empty Window
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**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 argument``` error.
- Problem appears to be related to incompatibility between `nvidia` drivers and `webkitgtk`
- Tauri apps are similarly impacted, see [Reddit post](https://www.reddit.com/r/tauri/comments/16tzsi8/tauri_desktop_app_not_rendering_but_web_does/)
**Steps To Reproduce**
- Follow [Tutorial](https://dioxuslabs.com/learn/0.6/guide/bundle/) 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](https://archlinux.org/packages/?name=nvidia)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.