openwork icon indicating copy to clipboard operation
openwork copied to clipboard

bug: Crash on startup with NVIDIA GPU on X11: `Failed to create GBM buffer`

Open pedrohx26 opened this issue 8 months ago • 3 comments

Summary

OpenWork crashes immediately on startup on systems with an NVIDIA GPU under X11. The crash is caused by WebKitGTK's hardware compositing, which fails to create a GBM buffer. The Tauri app does not set WEBKIT_DISABLE_COMPOSITING_MODE=1 by default.

To Reproduce

  1. System with NVIDIA GPU + proprietary driver + X11 (not Wayland)
  2. Launch OpenWork
  3. Immediate crash with error:
    Failed to create GBM buffer of size 2297x1368: Invalid argument
    

Expected behavior

OpenWork should either:

  • Detect NVIDIA + X11 and disable compositing automatically
  • Set WEBKIT_DISABLE_COMPOSITING_MODE=1 as a safe default for Linux builds
  • Gracefully fall back to software rendering instead of crashing

Actual behavior

The application crashes immediately with a GBM buffer allocation error. No fallback rendering is attempted.

OW version & Desktop info

  • OpenWork: 0.11.194-1 (AUR)
  • OS: Arch Linux x86_64
  • GPU: NVIDIA (proprietary driver)
  • Display server: X11 / KDE KWin

Additional context

Workaround:

export WEBKIT_DISABLE_COMPOSITING_MODE=1
openwork

This is a known issue with WebKitGTK + NVIDIA + X11 that affects many Tauri/WebKitGTK apps. Setting the env var has no negative side effects — it simply uses software compositing.

pedrohx26 avatar Mar 30 '26 17:03 pedrohx26

would be happy to have a PR for this if it can fit into the build pipeline correctly

src-opn avatar Apr 09 '26 22:04 src-opn

would be happy to have a PR for this if it can fit into the build pipeline correctly

Hi! I'd like to work on this. I have an NVIDIA GPU on X11/Linux Mint so I can reproduce it locally. Planning to set WEBKIT_DISABLE_COMPOSITING_MODE=1 in the Linux startup path in src-tauri. Let me know if this approach looks good or if there's a preferred direction!

notHim0 avatar Apr 23 '26 05:04 notHim0

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam