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

Bug #2061079 reported by Didier Roche-Tolomelli
66
This bug affects 10 people
Affects Status Importance Assigned to Milestone
GTK+
New
Unknown
gtk4 (Ubuntu)
Won't Fix
Medium
Daniel van Vugt
Noble
Won't Fix
Medium
Daniel van Vugt
Oracular
Won't Fix
Medium
Daniel van Vugt
nvidia-graphics-drivers-470 (Ubuntu)
Status tracked in Oracular
Noble
Fix Released
High
Daniel van Vugt
Oracular
Fix Released
High
Daniel van Vugt
nvidia-graphics-drivers-535 (Ubuntu)
Status tracked in Oracular
Noble
Fix Released
Undecided
Unassigned
Oracular
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-545 (Ubuntu)
Status tracked in Oracular
Noble
Fix Released
Undecided
Unassigned
Oracular
Fix Released
Undecided
Unassigned
nvidia-graphics-drivers-550 (Ubuntu)
Status tracked in Oracular
Noble
Fix Released
Undecided
Unassigned
Oracular
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
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Oracular didn't exist when I proposed the Noble patch here. So it will be added in the coming weeks when I have access to the hardware again.

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

Here's the patch for Oracular. Since the package version actually never changed since my last patch proposal I didn't really need to defer this, only update the changelog entry...

Changed in gtk4 (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-470 - 470.239.06-0ubuntu3

---------------
nvidia-graphics-drivers-470 (470.239.06-0ubuntu3) oracular; urgency=medium

  [ Timo Aaltonen ]
  * control: Update Vcs links.
  * control: Drop Alberto from uploaders.

  [ Daniel van Vugt]
  * Add /etc/environment.d/nvidia-gtk-workaround.conf to work around
    undiagnosed rendering issues in older Nvidia drivers that seem to be
    fixed in 5xx drivers. (LP: #2061079)

 -- Timo Aaltonen <email address hidden> Tue, 04 Jun 2024 15:27:07 +0300

Changed in nvidia-graphics-drivers-470 (Ubuntu Oracular):
status: In Progress → Fix Released
Revision history for this message
caio tor (synaxis) wrote :

I have a nvidia gt 730 ( ddr5 ) i can only install nvidia-graphics-driver-470

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

In that case as a workaround, please add GSK_RENDERER=gl (or GSK_RENDERER=vulkan) to /etc/environment and reboot.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in nvidia-graphics-drivers-470 (Ubuntu Noble):
status: Triaged → In Progress
status: In Progress → Fix Committed
Revision history for this message
caio tor (synaxis) wrote :

Thank you!

Revision history for this message
Steve Simmons (stephenmsimmons) wrote :

Does not work on:
Graphics: NVIDIA GeForce GT 710
Graphics 1: NVIDIA GeForce GT 710

Posted on 'Ask Ubuntu': After upgrading to 24.04 label from buttons on the settings menu (wifi, wired, etc) disappeared

Fresh install yesterday.

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

Please continue to use the workaround mentioned in the Bug Description above.

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

Looks like the fix was released to Noble updates on 19 June as part of 470.256.02-0ubuntu0.24.04.1, just not mentioned in the changelog.

Changed in nvidia-graphics-drivers-470 (Ubuntu Noble):
status: Fix Committed → 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.