GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

Bug #1965563 reported by Gunnar Hjalmarsson
128
This bug affects 27 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Unknown
NVIDIA / egl-wayland
Fix Released
Unknown
egl-wayland (Ubuntu)
Fix Released
High
Unassigned
Jammy
Triaged
High
Unassigned

Bug Description

$ dpkg-query -W gnome-shell-extension-prefs
gnome-shell-extension-prefs 42~beta-1ubuntu3
$ gnome-extensions-app
Gdk-Message: 17:54:19.697: Error reading events from display: Protocol error

Caveat: I currently have a mix of packages from jammy-release and jammy-proposed.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I couldn't reproduce this in a more clean jammy installation in a VM, so it may be "just me". Please feel free to close it if you can't easily reproduce.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Seems to be working in both Wayland and Xorg sessions here.

Although I must say it wasn't working for me for a couple of days last week, around the time this bug was created.

Changed in gnome-shell (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I am seeing this bug again when I build gnome-shell manually.

Changed in gnome-shell (Ubuntu):
status: Invalid → Confirmed
summary: - Can't open extensions app
+ gnome-extensions-app fails to start (Protocol error)
tags: added: wayland wayland-session
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote : Re: gnome-extensions-app fails to start (Protocol error)

FWIW: On the installation where have the issue, this is what it looks like in a Xorg session:

$ gnome-extensions-app
Segmentation fault (core dumped)

Same as bug #1966221 in other words. (The command shown in the bug description was run in a Wayland session.)

Timo Aaltonen (tjaalton)
affects: gnome-shell (Ubuntu) → mesa (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Timo, was it bug 1966221 that you meant to assign to mesa?

Regardless, I think we should keep a gnome-shell task here just to make the bug easier to find, and avoid duplicates.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I installed version 42.0-1ubuntu1 of the mutter and gnome-shell packages. Didn't help, neither on Wayland nor Xorg.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

We should probably only discuss Wayland here. Xorg has bug 1966221.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I see a similar error message when trying to start yelp:

$ yelp
Gdk-Message: 01:23:31.232: Error flushing display: Protocol error
$ gnome-extensions-app
Gdk-Message: 01:23:48.075: Error reading events from display: Protocol error

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

So this is GTK only? GTK4 only?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
summary: - gnome-extensions-app fails to start (Protocol error)
+ gnome-extensions-app fails to start [Error reading events from display:
+ Protocol error]
Revision history for this message
hackel (hackel) wrote : Re: gnome-extensions-app fails to start [Error reading events from display: Protocol error]

I don't know if this is helpful, but I had the org.gnome.Extensions flatpak installed, and it starts just fine under Wayland/nvidia. Only when I tried to switch to the deb did I get this error.

Revision history for this message
ManOnTheMoon (manonthemoon) wrote (last edit ):

Having the same error message"error reading events from display: Protocol error" when running wayland. However, extension manager having no issue opening in x11. Ubuntu 22.04 with Nividia driver 510

Revision history for this message
Islam (islam) wrote :

This is also happening for me When I launch extension-manager or cheese apps:

[3254489.563] wl_display@1.delete_id([3254489.568] wl_display@1.error(nil, 7, "failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a ")
42)
Gdk-Message: 12:22:58.093: Error flushing display: Protocol error

Revision history for this message
DuckDuckWhale (duckduckwhale) wrote (last edit ):

Also affected (bug 1975647). Notably, this happened after I attempted to dual boot Debian 11 (stable, then testing). The workspace indicator extension worked before then, but disappeared after I switched back.

user@host:~$ gnome-extensions-app
Gdk-Message: 20:03:19.701: Error flushing display: Protocol error
user@host:~$ cheese

(cheese:32950): Gdk-WARNING **: 20:04:45.134: Native Windows taller than 65535 pixels are not supported
Gdk-Message: 20:04:46.246: Error 71 (Protocol error) dispatching to Wayland display.
user@host:~$

In syslog:

gnome-shell[2051]: WL: error in client communication (pid 32877)
cheese[32877]: Error reading events from display: Protocol error

Revision history for this message
pakaoraki (pakaoraki) wrote :

I report also this bug, which seams to be related to nvidia on Wayland.

I made few test on my hybrid graphic laptop (Dell xps with GTX1050 Ti ):

- Fresh Ubuntu install on Wayland (no nvidia driver): OK.
- With Nvidia 510 driver, on-demand profile set, login Xorg: OK.
- With Nvidia 510 driver, on-demand profile set, login with Wayland: FAILED. I got this error:

Gdk-Message: 12:20:26.270: Error 71 (Protocol error) dispatching to Wayland display.
I got similar result also with Nvidia profile set instead of on-demand.

- With Nvidia 510 driver, INTEL profile set, login with Wayland: OK.

With Flatpak app (NVIDIA/Wayland):
- Install gnome-extensions with flatpak run org.gnome.Extensions:

The app start BUT you I can’t access to the extensions settings. The sub-windows can’t open, I got this in logs when I press “setting” button of an listed extension:

Sender gnome-shell, WL: error in client communication (pid 16887)
Sender: gjs ,Error reading events from display: Protocol error
Sender gnome-shell, Window manager warning: Ping serial 2322697 was reused for window W118, previous use was for window W111.

-I also test another similar app on flatpak call com.mattjakeman.ExtensionManager:
The app start but when trying to open extensions settings, the sub-windows does not open and I got this logs too:

Sender: gjs, Error flushing display: Protocol error
Sender gnome-shell, WL: error in client communication (pid 17125)

Revision history for this message
DuckDuckWhale (duckduckwhale) wrote :

OBS is also affected. Log:

$ obs
...
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
...
info: [pipewire] screencast session created
The Wayland connection experienced a fatal error: Protocol error
Aborted (core dumped)
$

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If the OBS issue is related to this then it will be in some common component like a library or the shell. We don't need to add a task for each app. This problem is too low level for apps to have any control over it.

no longer affects: obs-studio (Ubuntu)
Revision history for this message
Benjamin Birchman (bbirchman) wrote :

Yes same issue. Can confirm pakaoraki's findings.
Razerblade 15 with rtx2060, nivida 510 drivers.

no longer affects: mesa (Ubuntu)
Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
tags: added: protocol-error
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like Nvidia's egl-wayland is the main suspect:
https://github.com/NVIDIA/egl-wayland/issues/41

Changed in egl-wayland (Ubuntu):
status: New → Confirmed
Changed in egl-wayland:
status: Unknown → New
Changed in gtk:
status: Unknown → Fix Released
Revision history for this message
DuckDuckWhale (duckduckwhale) wrote :

Prepending __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json gnome-extensions to affected commands is a workaround (as mentioned in the issue).

tags: added: nvidia-wayland
tags: added: nvidia
Revision history for this message
DuckDuckWhale (duckduckwhale) wrote :

Looks like the bug is fixed in 1.1.10 and what's needed is just an update.

no longer affects: gnome-shell (Ubuntu)
summary: - gnome-extensions-app fails to start [Error reading events from display:
- Protocol error]
+ GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions
no longer affects: gtk+3.0 (Ubuntu)
Changed in egl-wayland (Ubuntu):
status: Confirmed → Fix Released
tags: added: fixed-in-1.1.10 fixed-upstream
Changed in egl-wayland (Ubuntu):
importance: Undecided → High
tags: added: rls-jj-incoming
tags: added: fixed-in-egl-wayland-1.1.10
removed: fixed-in-1.1.10
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Added a jammy task because most people will understand that better than rls-jj-incoming. This is something I'd like to do in bugs more often, but if it's wrong (@vorlon?) then let me know.

Changed in egl-wayland (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → High
Changed in egl-wayland:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.