GTK4 apps hang on nVidia or corrupted rendering on AMD and Intel

Vortex Acherontic 375 words 2 minutes linux gtk4 nvidia gnome intel amd
GTK Logo

Note: This issue has been fixed with the nVidia driver 580.82.07 please update to this or a newer version.

With GTK4 the GTK-Developers added a new render backend which can either use OpenGL or Vulkan to draw windows on to the screen. However with the nvidia 580 driver series the default (vulkan) can cause GTK4 / libadwaita application to hang upon closing. (Force quit)

Also on AMD and Intel GPUs using the open source driver stack there can be rendering artifacts too due to this.

Some older Intel iGPUS do have limitted Vulkan support which might cause the GUI toolkit to think it can use Vulkan on that devices while it can't. As an result there are blank windows or apps straig out crashing.

To fix these issues create a new file at: ~/.config/environment.d/envvars.conf with GSK_RENDERER=ngl as it's content.

Flatpak: If most applications run via flatpak this file will have no effect and thus this environment variable needs to be set as a flatpak override: flatpak override --user --env=GSK_RENDERER=ngl.

Flatseal: Some can also use Flatseal to set this override. Navigate to All Applications / Global scroll down until you read Variables and enter GSK_RENDERER=ngl

For KDE users this override must be set either by using Flatseal or the command line. Plasmas own application permission screen does not allow for global overrides.

To revert this setting to it's default either remove these overrides / envvars.conf file or set it to GSK_RENDERER=vulkan before launching an GTK4 application to test if the issue has been fixed.

Sources:

Change log

  • 2025-12-03
    • Added Intel and AMD
    • Changed title and descritpion
    • Changed tags
    • Added openSUSE Forums as source