DioxusLabs / DioxusLabs/dioxus

Desktop Build Opens Empty Window

Open
#3,845 4 comments 7 reactions 0 assignees View on GitHub
bug desktop linux
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**
![Image](https://github.com/user-attachments/assets/9c7b4e77-c944-4aef-aa66-15bf098e8a71)
![Image](https://github.com/user-attachments/assets/bd2b5a06-6f4b-442c-a367-9bdb4b3232a0)

**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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.