Nvidia drivers fail to install libnvidia-egl-wayland1, resulting in Zink being used

Bug #2062082 reported by Sam Bee
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-535 (Ubuntu)
Status tracked in Oracular
Noble
Fix Committed
Medium
Alessandro Astone
Oracular
Fix Committed
High
Alessandro Astone
nvidia-graphics-drivers-545 (Ubuntu)
Won't Fix
Undecided
Unassigned
nvidia-graphics-drivers-550 (Ubuntu)
Status tracked in Oracular
Noble
Fix Committed
Medium
Alessandro Astone
Oracular
Fix Committed
High
Alessandro Astone

Bug Description

[ Impact ]

In a Ubuntu 24.04 system with NVIDIA as the sole GPU, graphical programs in the GNOME Wayland session will use MESA's Zink as the OpenGL driver.

[ Test Plan ]

 * Log into the Wayland session from a machine with an NVIDIA GPU and no other GPU (such as integrated graphics, or iGPU).

 * In a terminal window run `eglinfo -B -p wayland`

 * Verify that there are no mentions of "zink" in the output

[ Where problems could occur ]

The fix is being included as part of a new nvidia driver release, so unrelated regressions from that version upgrade may show up.

[ Original description ]

Apologies if I have misfiled this bug - this is a report of an issue affecting Wayland in Ubuntu 24.04 beta.

Using 24.04 beta logging in with Wayland. Nautilus has very significant performance issues. Doesn't happen when logging in with Xorg instead of Wayland.

Opening Nautilus windows - including normal windows navigation, and the file download location dialogue in things like Chrome - extremely slow. Takes approx. 10 seconds to process user double clicking to open folder. Attempting to drag folder across screen usually doesn't work, or takes a very long time.

Not very skilled at debugging, but programmes like Gimp, which has its own built-in folder explorer for choosing a location to save an image, do not have this problem. Ubuntu 24.04 with X does not have this problem. No performance issues have been noticed with folder navigation, stat'ing files etc. over the command line. It is only nautilus and Wayland that give me this issue, so I suspect it is not an issue with my SSD.

The following output was observed when starting nautilus over the command line:

/home/me/ $ nautilus .
** Message: 23:43:50.560: Connecting to org.freedesktop.Tracker3.Miner.Files
libEGL warning: egl: failed to create dri2 screen

After approx. 10 seconds, the folder opened on screen. I double clicked on a sub directory, and it took about 9 seconds to open.

I have attempted to show that this is not an issue with my SSD here:

/home/me/ $ date; cd workspace/; touch foo.txt; ls foo*; cd ../; date;
Wed Apr 17 11:58:16 PM BST 2024
foo.txt
Wed Apr 17 11:58:16 PM BST 2024

As you can see, no unusual slowdown was observed.

Obtaining the following setting for my bug report, I note that the 'Settings' GUI utility is among the areas affect by my very significant system slowdown. I have copied some details about my system including its graphics card in case that helps.

# System Details Report
---

## Report details
- **Date generated:** 2024-04-17 23:59:54

## Hardware Information:
- **Hardware Model:** ASUS ROG STRIX B550-F GAMING
- **Memory:** 32.0 GiB
- **Processor:** AMD Ryzen™ 7 5800X × 16
- **Graphics:** zink Vulkan 1.3(NVIDIA GeForce GTX 1050 Ti (NVIDIA_PROPRIETARY))
- **Disk Capacity:** 2.0 TB

## Software Information:
- **Firmware Version:** 2006
- **OS Name:** Ubuntu Noble Numbat (development branch)
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.8.0-22-generic

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.09.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 545.29.06 Thu Nov 16 01:59:08 UTC 2023
 GCC version:
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 17 23:44:47 2024
DistUpgraded: 2024-04-11 13:09:51,904 DEBUG migrateToDeb822Sources()
DistroCodename: noble
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82]
InstallationDate: Installed on 2024-04-11 (6 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
MachineType: ASUS System Product Name
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-22-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to noble on 2024-04-11 (6 days ago)
dmi.bios.date: 03/19/2021
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2006
dmi.board.asset.tag: Default string
dmi.board.name: ROG STRIX B550-F GAMING
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2006:bd03/19/2021:br5.17:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXB550-FGAMING:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: ASUS
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.120-2build1
version.libgl1-mesa-dri: libgl1-mesa-dri 24.0.5-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.11-2ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:22.0.0-1build1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Sam Bee (sam-bee) wrote :
tags: added: nvidia nvidia-wayland
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

Please try:

1. sudo rm /dev/dri/card0 # to work around bug 2060268, and then log in again. Did that solve it?

2. When the problem starts happening please open a Terminal and run:

   journalctl -b0 > journal.txt
   xlsclients > xclients.txt

   and attach the resulting text files here.

3. While the problem is happening run 'top' in a Terminal window and tell us which process (if any) is using high CPU.

affects: xorg (Ubuntu) → nautilus (Ubuntu)
Changed in nautilus (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

BTW Chrome probably still defaults to using X11 instead of Wayland, and so you likely would hit bug 1970389. That's why I mention xlsclients... It's also why we default to Xorg for Nvidia systems and recommend you use Xorg with the Nvidia proprietary driver.

P.S. Is "zink Vulkan 1.3" something you configured or was that the system default? Where did you get that information from?

Revision history for this message
Sam Bee (sam-bee) wrote :

1. I have deleted the card0 file and restarted my machine. I still experience the same slowdown using wayland, but not when logging in with x11. The effects are still evident when opening a folder with nautilus, when navigating the system settings, and when choosing a download location for a file in Chrome, for example.

2. I include the journal.txt file you requested

3. Neither gnome-shell nor any other process has been observed to use higher than 12% cpu while experiencing the issue

4. The information about my system drivers was obtained by going to the system Settings app, then System > About > System Details > Copy. The nvidia-utils-545 driver had to be installed when I reinstalled ubuntu and upgraded to 24.04 beta recently, to make the graphics work properly. I don't know what the zink Vulkan thing is - is that the name of the firmware for my graphics card?

Revision history for this message
Sam Bee (sam-bee) wrote :

2b - I also attach the xclients file requested

Changed in nautilus (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexandre Hen (atropine07) wrote :

I had a lot of performance issues with nvidia-driver-535 and nautilus too (installed by default with 24.04 and my RTX 2080 card), but on X11.
Loading /usr/share/ directory could take 10-15 seconds.

Updating manually my drivers to nvidia-driver-550, without using ubuntu-drivers, seems to have resolved this issue for me for the moment.

# Rapport d’informations du système
---

## Détails du compte rendu
- **Date de génération :** 2024-04-28 15:43:20

## Informations liées au matériel :
- **Modèle du matériel :** ASRock X570 Taichi
- **Mémoire :** 32,0 Gio
- **Processeur :** AMD Ryzen™ 7 5800X3D × 16
- **Carte graphique :** NVIDIA GeForce RTX™ 2080
- **Capacité du disque :** 8,5 To

## Informations liées au logiciel :
- **Version du micrologiciel :** P5.01
- **Nom du système d’exploitation :** Ubuntu 24.04 LTS
- **Construction du système d’exploitation :** (null)
- **Type de système d’exploitation :** 64 bits
- **Version de GNOME :** 46
- **Système de fenêtrage :** X11
- **Version du noyau :** Linux 6.8.0-31-generic

Revision history for this message
frenchy82 (cartes) wrote :

Same here, nvidia-driver-550 on wayland with a old NVIDIA GeForce GTX 970 was the solution

Revision history for this message
John Kizer (johnandmegh) wrote :

I experienced this on my desktop with Nvidia-only graphics - the "egl" message in the terminal was the tip-off that installing libnvidia-egl-wayland1, which had worked for me previously to solve some odd Wayland issues, might help here, and it did in fact help in 24.04 as well.

From my "I know next to nothing" perspective, I've read articles that imply that EGL won't be needed soon for Nvidia drivers - but for the time being, should the libnvidia-egl-wayland1 package be added as a dependency to some/all of the Nvidia driver packages / to a metapackage?

Thanks,

summary: - 24.04 Wayland vs Nautilus performance problem
+ Nvidia drivers fail to install libnvidia-egl-wayland1, resulting in Zink
+ being used
affects: nautilus (Ubuntu) → nvidia-graphics-drivers-545 (Ubuntu)
Changed in nvidia-graphics-drivers-545 (Ubuntu):
status: Confirmed → Won't Fix
Changed in nvidia-graphics-drivers-535 (Ubuntu):
assignee: nobody → Alessandro Astone (aleasto)
Changed in nvidia-graphics-drivers-550 (Ubuntu):
assignee: nobody → Alessandro Astone (aleasto)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
status: New → Confirmed
Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-545 (Ubuntu Noble):
status: New → Confirmed
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
status: New → Confirmed
Changed in nvidia-graphics-drivers-550 (Ubuntu):
status: New → Confirmed
no longer affects: nvidia-graphics-drivers-545 (Ubuntu Noble)
no longer affects: nvidia-graphics-drivers-545 (Ubuntu Oracular)
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This is also causing bug 2063827.

Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
assignee: nobody → Alessandro Astone (aleasto)
Changed in nvidia-graphics-drivers-550 (Ubuntu Oracular):
milestone: none → ubuntu-24.10
Changed in nvidia-graphics-drivers-535 (Ubuntu Oracular):
milestone: none → ubuntu-24.10
Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
milestone: none → ubuntu-24.04.1
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
milestone: none → ubuntu-24.04.1
Changed in nvidia-graphics-drivers-535 (Ubuntu Oracular):
importance: Undecided → High
Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
importance: Undecided → Medium
Changed in nvidia-graphics-drivers-550 (Ubuntu Oracular):
importance: Undecided → High
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
importance: Undecided → Medium
Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
status: Confirmed → Triaged
Changed in nvidia-graphics-drivers-535 (Ubuntu Oracular):
status: Confirmed → Triaged
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
status: Confirmed → Triaged
Changed in nvidia-graphics-drivers-550 (Ubuntu Oracular):
status: Confirmed → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in nvidia-graphics-drivers-535 (Ubuntu Oracular):
status: Triaged → In Progress
Changed in nvidia-graphics-drivers-550 (Ubuntu Oracular):
status: Triaged → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in nvidia-graphics-drivers-535 (Ubuntu Oracular):
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in nvidia-graphics-drivers-550 (Ubuntu Oracular):
status: In Progress → Fix Committed
Changed in nvidia-graphics-drivers-535 (Ubuntu Noble):
status: Triaged → Fix Committed
Changed in nvidia-graphics-drivers-550 (Ubuntu Noble):
status: Triaged → Fix Committed
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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