liferea icon indicating copy to clipboard operation
liferea copied to clipboard

liferea crashes on Wayland

Open bruce-awareit opened this issue 1 year ago • 7 comments

bash> liferea --debug-gui

Gdk-Message: 22:41:41.607: Error 71 (Protocol error) dispatching to Wayland display.

bruce-awareit avatar Aug 28 '24 14:08 bruce-awareit

I cannot reproduce this. Running for a long time on Wayland. Which Liferea version and Linux distro are you using?

Can you please rerun with

WAYLAND_DEBUG=1 liferea

this might give more info on why Wayland refuses starting.

lwindolf avatar Aug 30 '24 10:08 lwindolf

https://discussion.fedoraproject.org/t/gdk-message-error-71-protocol-error-dispatching-to-wayland-display/127927/5 hints on this being an NVidia driver issue. This can be tested by launching with

GSK_RENDERER=gl liferea

lwindolf avatar Aug 30 '24 10:08 lwindolf

$ uname -r 6.10.6-arch1-1

$ LANG=C GSK_RENDERER=gl liferea Gdk-Message: 21:10:24.089: Error 71 (Protocol error) dispatching to Wayland display.

$ LANG=C WAYLAND_DEBUG=1 liferea ....... .......[1210922.613] {Default Queue} wl_surface#25.enter(wl_output#6) [1210922.655] {Default Queue} -> wl_shm#5.create_pool(new id wl_shm_pool#49, fd 63, 9216) [1210922.852] {Default Queue} -> wl_shm_pool#49.resize(27648) [1210923.025] {Default Queue} -> wl_shm_pool#49.resize(64512) [1210923.343] {Default Queue} -> wl_shm_pool#49.resize(138240) [1210923.938] {Default Queue} -> wl_shm_pool#49.resize(285696) [1210925.069] {Default Queue} -> wl_shm_pool#49.resize(580608) [1210929.039] {Default Queue} -> wl_shm_pool#49.resize(1170432) [1210934.193] {Default Queue} -> wl_shm_pool#49.resize(2350080) [1210952.445] {Default Queue} -> wl_shm_pool#49.create_buffer(new id wl_buffer#50, 1594368, 48, 48, 192, 0) [1210952.458] {Default Queue} -> wl_pointer#10.set_cursor(449, wl_surface#25, 3, 0) [1210952.464] {Default Queue} -> wl_surface#25.attach(wl_buffer#50, 0, 0) [1210952.469] {Default Queue} -> wl_surface#25.set_buffer_scale(2) [1210952.472] {Default Queue} -> wl_surface#25.damage(0, 0, 24, 24) [1210952.478] {Default Queue} -> wl_surface#25.commit() [1210958.728] {Display Queue} wl_display#1.delete_id(47) [1210958.738] {Display Queue} wl_display#1.error(wp_linux_drm_syncobj_surface_v1#30, 2, "Explicit Sync only supported on dmabuf buffers") Gdk-Message: 21:08:05.789: Error 71 (Protocol error) dispatching to Wayland display.

bruce-awareit avatar Aug 30 '24 13:08 bruce-awareit

@bruce-awareit Thanks for the trace and test with GSK_RENDERER. This is definitively a Wayland issue. A Google search turns up multiple other apps that are affected too. The Liferea code has no such low level stuff anyway, we just use GDK/GTK.

To workaround you could start Liferea with X11 backend like this

GDK_BACKEND=X11 liferea

I consider this bug report as wont-fix, but will leave it open for some time, so other affected users can easily find it.

lwindolf avatar Aug 30 '24 21:08 lwindolf

__NV_DISABLE_EXPLICIT_SYNC=1 fixed the issue for me as well without falling back to X11

hanikesn avatar Sep 04 '24 11:09 hanikesn

__NV_DISABLE_EXPLICIT_SYNC=1

@hanikesn Thanks. It works for me, too.

bruce-awareit avatar Sep 06 '24 01:09 bruce-awareit

WEBKIT_DISABLE_DMABUF_RENDERER=1 fixed the issue for me as well in Wayland on Archlinux.

bruce-awareit avatar Sep 13 '24 03:09 bruce-awareit