GTK-ngl (new default backend) rendering issues with the nvidia 470 driver

Bug #2061079 reported by Didier Roche-Tolomelli
46
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GTK+
New
Unknown
gtk4 (Ubuntu)
Triaged
Medium
Daniel van Vugt
nvidia-graphics-drivers-470 (Ubuntu)
In Progress
High
Daniel van Vugt
nvidia-graphics-drivers-535 (Ubuntu)
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-545 (Ubuntu)
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-550 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

When the Nvidia 470 driver is used GTK 4 fails to render most text labels.

[ Workaround ]

Install a newer Nvidia driver using the 'Additional Drivers' app if you can. Otherwise add GSK_RENDERER=gl (or GSK_RENDERER=vulkan) to /etc/environment and reboot.

[ Test Plan ]

1. Install the Nvidia 470 driver on a system that supports it, being careful to ensure that Nvidia is the PRIMARY GPU of the system. So usually a desktop.

2. Open the Settings app and verify that all the icons in the side menu are visible.

3. Open Nautilus and verify that no file icons are missing their text labels.

[ Where problems could occur ]

Anywhere else in the rendering of GTK 4 apps.

[ Additional information ]

With nvidia driver, all GTK4 applications have label rendering issues.

They are not refresh until passing the cursor over them, giving blank windows. The corner are white and not themed. Passing from one app scren to another one reproduces the issue.

gnome-control-center or files, for instance, are blank by default.

As suggested by seb128, exporting GSK_RENDERER=gl fixes the issue.

Related upstream bugs and discussions are:
- https://blog.gtk.org/2024/01/28/new-renderers-for-gtk/
- https://gitlab.gnome.org/GNOME/gtk/-/issues/6574
- https://gitlab.gnome.org/GNOME/gtk/-/issues/6411
- https://gitlab.gnome.org/GNOME/gtk/-/issues/6542

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libgtk-4-1 4.14.1+ds-0ubuntu2
ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 12 09:47:05 2024
InstallationDate: Installed on 2020-04-24 (1449 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
 LANG=fr_FR.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gtk4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
Changed in gtk4 (Ubuntu):
importance: Undecided → High
summary: - Rendering issues on text with nvidia driver
+ GTK-ngl (new default backend) rendering issues with the nvidia driver
Changed in gtk4 (Ubuntu):
status: New → Triaged
Changed in gtk:
status: Unknown → New
Changed in gtk4 (Ubuntu Noble):
milestone: none → ubuntu-24.04
Changed in gtk4 (Ubuntu Noble):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in gtk4 (Ubuntu Noble):
status: Triaged → In Progress
no longer affects: gtk4 (Ubuntu Noble)
no longer affects: nvidia-graphics-drivers-545 (Ubuntu Noble)
Changed in nvidia-graphics-drivers-545 (Ubuntu):
status: New → Invalid
Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: GTK-ngl (new default backend) rendering issues with the nvidia driver

Confirmed on Nvidia 470. The newer drivers 535 and 545 however do not have the bug. I couldn't test 550 due to bug 2061738.

Please also be aware of bug 2059847.

summary: - GTK-ngl (new default backend) rendering issues with the nvidia driver
+ GTK-ngl (new default backend) rendering issues with the nvidia 470
+ driver
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Confirming that it’s fixed on the same machine with 550.

Changed in nvidia-graphics-drivers-550 (Ubuntu):
status: New → Fix Released
Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: Invalid → Fix Released
Changed in nvidia-graphics-drivers-545 (Ubuntu):
status: Invalid → Fix Released
Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: Confirmed → Won't Fix
Changed in gtk4 (Ubuntu):
importance: High → Medium
Changed in nvidia-graphics-drivers-470 (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Won't Fix → In Progress
importance: Undecided → High
milestone: none → ubuntu-24.04
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Here's a workaround/fix.

Changed in gtk4 (Ubuntu):
status: In Progress → Triaged
milestone: ubuntu-24.04 → none
description: updated
Changed in nvidia-graphics-drivers-470 (Ubuntu):
milestone: ubuntu-24.04 → noble-updates
description: updated
description: updated
description: updated
description: updated
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.