Gdk-Message: Error 71 (Protocol error) dispatching to Wayland display

I’ve been using Rawhide these last couple of weeks for an early look for GNOME 47, and while things have been working quite solid, from a couple of days back to today’s build I’ve been facing this issue while trying to open any non-Flatpak GNOME app (in my case, the only ones I have installed like this are Nautilus and Software). It also breaks opening the file portal on Firefox. I suspect it was due to the latest NVIDIA drivers, as it started as soon as the switch from the 555 to 560 drivers happened (and I have a GTX1050Ti).

Here are the complete logs trying to run Nautilus with WAYLAND_DEBUG=1, the main focus seem to be on this part, right at the end:

[2776872.095] {Display Queue} wl_display#1.error(wl_surface#41, 0, "DRM Syncobj surface object already created for surface 41")

Things are working fine on Rawhide.20240725.n.0 (2024-07-25T06:09:06Z) and aren’t on Rawhide.20240805.n.0 (2024-08-05T06:08:01Z).

I’d love some help on how to debug this and help find the issue.

1 Like

Adicionou f41 e removeu f39, flatpak

This seems to be related to libglvnd-opengl. Not sure though. I removed Nvidia drivers on whim and it solved it.

The root cause might have been nvidia_drm.modeset=1 missing from kernel cmdline.

Yup, for now I’m using my laptop without them just as a way to not have to revert back to F40, I’ll keep an eye out for any workaround or solution though.

bz: 2301725 – Error 71 (Protocol error) dispatching to Wayland display.

2 Likes

As for the workaround, I’m also on Fedora rawhide (also waiting for 41), I added:

GSK_RENDERER=gl

to ~/.config/environment.d/gsk.conf, and restarted.

1 Like

Out of curiosity, do you all happen to be using laptops with hybrid graphics? I’m trying Fedora 41 on an Nvidia only desktop and its not able to properly get to gdm, it’s stuck on showing a black screen with the cursor. I believe this issue could be the cause, although the problem happens as well under X11.

At least in my case, yes, laptop with hybrid Intel + NVIDIA graphics.

Same.

1 Like

Not on rawhide but on fedora 41 beta, getting this error when ever I try to launch gnome apps under wayland using my nvidia gpu.

Running fedora 41 beta on laptop with intel i5 8265u, intel/nvidia hybrid graphics.

1 Like

This worked, thanks!

1 Like

hybrid

1 Like

On a hybrid laptop and still experiencing this issue as well, cannot open gnome apps like nautilus and gnome-control-center, same errors and warnings. On F41 prerelease, mesa-git, mutter and gnome-shell 47 stable, not rc.

Posting mesa issue here for exposure, no activity in it yet, rhbz link already posted above: Error 71 (Protocol error) dispatching to Wayland display. (#11723) · Issues · Mesa / mesa · GitLab