Skip to content

bug: Blank window until disabling the use of DMA-BUF renderer in WebKitGTK. #3

@visnkmr

Description

@visnkmr

I've encountered a very odd bug, and after some digging I've found a temporary workaround.
My System Specs:

  • Nvidia 3000 series GPU.
  • Ryzen 5000 series CPU.

After an update to Manjaro install, building and running the project, I encountered the following error:

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 350x40: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 350x40: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 350x40: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

A window did show, but it was not rendering anything within.

After some searching, I've found that this is already reported on Tauri:
tauri-apps/tauri#7910
Seemed to also be discussed here on a GTK4 webkit bug post:
https://bugs.webkit.org/show_bug.cgi?id=228268
And here I found a work around posted by somebody:
wailsapp/wails#2977 (comment)

Solution:

The temporary workaround is running the following in a terminal session before running/building an app with :
export WEBKIT_DISABLE_DMABUF_RENDERER=1

Posting this incase anyone else has this issue when using this app/an updated webkit lib using project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions