liferea icon indicating copy to clipboard operation
liferea copied to clipboard

item view is blank and "DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed"

Open mozai opened this issue 2 years ago • 5 comments
trafficstars

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.

mozai avatar Oct 08 '23 16:10 mozai

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

bbhtt avatar Oct 08 '23 16:10 bbhtt

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.

paulgevers avatar Oct 11 '23 18:10 paulgevers

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

sjehuda avatar May 26 '24 06:05 sjehuda

I recently hit a blank window bug in Liferea in Ubuntu: the RSS items themselves displayed as blank, 'open in tab' also displayed as blank, and there were what looked like a bunch of related errors in ~/.xsession-errors about AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer.

Rebooting & upgrading for a week or so didn't fix it, so I went searching, and WEBKIT_DISABLE_DMABUF_RENDERER=1 liferea thus far resolves the problem.

gwern avatar Jul 02 '24 01:07 gwern

Hitting the same bug now after the Linux Mint upgrade from 21.3 to 22, with nvidia gpu. The current workaround by disabled the renderer also works here. Though liferea is not the only application where i do notice some gui bugs, after the upgrade :/

OS: Linux Mint 22 (Based on Ubuntu 24.04) Kernel: 6.8.0-39 GPU Driver: nvidia-driver-535.183.01-0ubuntu0.24.04.1 Liferea: 1.15.4-1ubuntu2

mytlogos avatar Aug 04 '24 16:08 mytlogos