Skip to content

bug: Blank window from 'webkitgtk2-4.1' bug (with temporary fix)  #31

Description

@scurty-labs

Hello! Been using this module and it's wonderful!
I've encountered a very odd bug, and after some digging I've found a temporary workaround.
After an update to Manjaro install, building and running a ttytm.webview example project, I encountered the following error:

src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 800x600: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 800x600: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 800x600: Invalid argument
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.

Lots of Nvidia related things in here, and after some searching, I've found that this is also an issue with 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 module/an updated webkit lib.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions