Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item view is blank and "DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed" #1308

Open
mozai opened this issue Oct 8, 2023 · 3 comments
Open

Comments

@mozai
Copy link

mozai commented Oct 8, 2023

Ran into this today, pretty weird because it was working hours ago and then stopped working without restarting liferea. Not a liferea problem it's a webkit+Nvidia problem, but leaving this here so others can find it.

Software versions:

  • liferea 1.14.6
  • Linux kernel 5.15.133
  • NVidia drivers 535.113.01
  • qt5-webkit 5.212.0alpha4-20

What I saw:

  • using liferea normally, select a new item and the item view frame is blank. Can still click on the places where I'd expect item title or item URL to be to provoke reactions.
  • when starting from commandline, see errors like this:
    Failed to create GBM buffer of size 469x230: 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 469x230: Invalid argument
    Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
    

Workaround:

  • quit liferea
  • in a terminal window export __NV_PRIME_RENDER_OFFLOAD=1 ; liferea
    new message on stderr:
    ** (liferea:28837): WARNING **: 12:39:13.303: Disabled hardware 
    acceleration because GTK failed to initialize GL: No available
    configurations for the given RGBA pixel format.
    

Would be nice if liferea had switches for webkit config, so I could turn off hw acceleration without using env vars, but this is someone else's mistakes, somewhere between qt5 devs and Nvidia. Hell, if this fixes the media encapsulation sometimes crashing so hard it takes liferea down with it, I'll keep the workaround.

@bbhtt
Copy link
Contributor

bbhtt commented Oct 8, 2023

This is a webkit2gtk bug https://bugs.webkit.org/show_bug.cgi?id=261874 for NVIDIA users, WEBKIT_DISABLE_DMABUF_RENDERER=1 liferea is a workaround I think

qt5-webkit 5.212.0alpha4-20

Liferea does not use Qt/qt webkit

@paulgevers
Copy link
Contributor

In Debian, I received bug 1053199 which seems very related. Several reporters acknowledged that using WEBKIT_DISABLE_DMABUF_RENDERER=1 liferea worked around their problems too.

@sjehuda
Copy link
Collaborator

sjehuda commented May 26, 2024

This problem was observed on Arch Linux and postmarketOS.

Rendering works, though nothing is displayed.

Please see more information at Arch Linux and postmarketOS

Arch Linux
https://bbs.archlinux.org/viewtopic.php?pid=2170335#p2170335

postmarketOS
https://gitlab.com/postmarketOS/pmaports/-/issues/2793

Source: https://bugs.webkit.org/show_bug.cgi?id=274465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants