dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Desktop Build Opens Empty Window

Open nickspurry opened this issue 1 year ago • 3 comments

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

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 Image Image

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

nickspurry avatar Mar 08 '25 08:03 nickspurry

I'm also experiencing this on NixOS+NVIDIA.

poly2it avatar Apr 17 '25 22:04 poly2it

Same here CachyOs + NVIDIA

LDprg avatar Nov 02 '25 22:11 LDprg

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

zamazan4ik avatar Nov 12 '25 00:11 zamazan4ik