[Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

Robie Basak 1965563 at bugs.launchpad.net
Wed Sep 18 14:21:35 UTC 2024


Hello Gunnar, or anyone else affected,

Accepted egl-wayland into jammy-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/egl-
wayland/1:1.1.9-1.1ubuntu0.1 in a few hours, and then in the -proposed
repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: egl-wayland (Ubuntu Jammy)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1965563

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

Status in NVIDIA / egl-wayland:
  Fix Released
Status in GTK+:
  Fix Released
Status in egl-wayland package in Ubuntu:
  Fix Released
Status in egl-wayland source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ]

   * GTK applications fail to start on a hybrid graphics machine with an
  NVIDIA discrete GPU.

   * The NVIDIA egl-wayland extension 1.1.9 only supports rendering to
  the NVIDIA GPU if it is the primary GPU. On a hybrid system the
  primary GPU would be the integrated graphics, while the NVIDIA GPU
  should only be used for offloading of specific applications. On such a
  setup, the egl-wayland extension still incorrectly advertised the
  driver as compatible and attempted to use the NVIDIA GPU for all EGL
  applications.

   * To fix the issue, backport a commit from a newer version of the
  NVIDIA egl-wayland extension that reports the driver as incompatible
  when the NVIDIA GPU is not the primary GPU. This effectively ensures
  that all EGL applications run on integrated graphics by default.

  [ Test Plan ]

   * Set up a hybrid graphics machine with Jammy 22.04 LTS and the
  proprietary NVIDIA drivers version 535 or 550.

   * Install `libnvidia-egl-wayland1` from the update.

   * Log-in to a Wayland desktop session.

   * Verify that you can start `gnome-text-editor`.

  [ Test Plan - Regression ]

   * Set up a Desktop with a single NVIDIA GPU with Jammy 22.04 LTS and
  the proprietary NVIDIA drivers version 470, 535 or 550.

   * Install `libnvidia-egl-wayland1` from the update.

   * Log-in to GNOME Wayland (in Ubuntu Desktop this implies changing
  the log-in session on the log-in screen)

   * Verify that `eglinfo | grep -A2 "Wayland platform"` reports "EGL
  vendor string: NVIDIA"

   * Also verify that GNOME applications run smoothly as GPU
  accelerated.

  [ Where problems could occur ]

   * The scope of the change is limited to the NVIDIA proprietary
  drivers.

   * A possible regression would be that the driver starts reporting as
  incompatible on NVIDIA single-GPU systems too. One would notice by all
  wayland-native applications suddenly being very slow. Note that such
  systems would not default to Wayland in Jammy.

  [ Original Report ]

  $ 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/egl-wayland/+bug/1965563/+subscriptions




More information about the Ubuntu-sponsors mailing list