GSK_RENDERER=ngl and gl, nvidia, xorg - random GSK errors after 6-7 apps open

Hi, any help with the following? bit specific, but really causing me issues.

Background - Looks like there is an issue with nvidia, gsk_renderer=gl / ngl and xorg. Running latest nvidia drivers (not the nouveu drivers which did actually work). Hardware wise, its a 1070 ti paired with AMD 7950x and 32gb ram, so shouldn’t be an issue. I have only just upgraded to this system from an old xeon 1241 v3 system with the same graphics card, and i had exactly the same issue there too on Fedora 40. Also, have to use xorg as some apps i use won’t work in wayland (seems to be ok in wayland though). Used to be ok in early fedora 39 with old system.

Issue - when i open say 6-7 applications e.g. pgadmin, dbeaver, files, vscode, calculator etc. when i try to open another application, e.g. default gnome apps like software or settings, I always get gsk type errors like shadow or color like gsk_rounded_rect_to_float()… Seems to get worse through the day as if there’s some memory leak or something with gl. I have to close windows so that i can open say gnome settings (to free up memory somewhere?). If i open an app with gsk set to cairo it works (GSK_RENDERER=cairo gnome-control-center) but need the gl/ngl renderer for other apps.


Module libnvidia-egl-xlib.so.1 from rpm egl-x11-1.0.0^20240916gitf13be94-1.fc41.x86_64
Module libnvidia-egl-xcb.so.1 from rpm egl-x11-1.0.0^20240916gitf13be94-1.fc41.x86_64
Module libnvidia-egl-gbm.so.1 from rpm egl-gbm-1.1.2^20240919gitb24587d-3.fc41.x86_64
Module libnvidia-egl-wayland.so.1 from rpm egl-wayland-1.1.17^20241016git0cd471d-3.fc41.x86_64
Module gnome-calculator from rpm gnome-calculator-47.0-1.fc41.x86_64
#33 0x0000556c12b0d8cd main (gnome-calculator + 0x58cd)
#36 0x0000556c12b0d985 _start (gnome-calculator + 0x5985)
░░ Subject: Process 27101 (gnome-calculato) dumped core
░░ Process 27101 (gnome-calculato) crashed and dumped core.
Nov 01 10:04:10 abrt-notification[27221]: Process 22406 (gnome-calculator) crashed in gsk_rounded_rect_to_float()
░░ Subject: ABRT has detected unexpected termination: gnome-calculator
░░ gnome-calculator killed by SIGSEGV

Are you using the nvidia driver or the newer open nvidia drivers?

It seems there may be issues with the new open drivers for nvidia with memory leaks (and possibly other issues). I noted a few posts showing this in the last couple days.

This is one of those but there are more.

Fresh install, so just used the latest from nvidia - 560.35.03 with (akmod-nvidia, xorg-x11-drv-nvidia-cuda). Hmm, it did work in F39, but might be a red herring, will try an older driver…

I used new open NVidia driver, packaged by negativo17 ( Nvidia driver, CUDA tools and libraries – negativo17.org ). I returned back to closed source NVidia driver as workaround for leak.

Not sure i get a choice anyway - using the Nvidia Proprietry driver as 1070ti is pascal and isn’t supported:


‘For older GPUs from the Maxwell, Pascal, or Volta architectures, the open-source GPU kernel modules are not compatible with your platform. Continue to use the NVIDIA proprietary driver.’

Everything else works absolutely fine including games, just seems to be related to GSK_RENDERER being opengl and mostly gnome applications.

With the older GPU the value of GSK_RENDERER may need to be ‘gl’ which can be explicitly set by adding GSK_RENDERER=gl to the /etc/environment file then logging out and back in or rebooting.

1 Like

Thanks for trying, think im just going to have to put up with it for now. None of this works and spent way too much time researching this. Will just put it down the hardware and upgrade to AMD graphics at some point…

I still have the same problem, even with propritary NVidia driver.

root@fedora:~# smem -wp
Area                           Used      Cache   Noncache 
firmware/hardware             0.00%      0.00%      0.00% 
kernel image                  0.00%      0.00%      0.00% 
kernel dynamic memory        70.98%     11.53%     59.45% 
userspace memory             23.90%      2.20%     21.70% 
free memory                   5.12%      5.12%      0.00% 

I tried to run Flux model in ComfyUI, then ran Aya model few times, now memory is gone.

How to detect kernel memory leaks in Fedora kernel?

I found this document only: Kernel Memory Leak Detector — The Linux Kernel 4.13.0-rc4+ documentation

Ok, so just noticed a new nvidia driver update (565.57.01), so thought what the hell. Updated it, and its only gone and fixed it!!

I have the same version of the NVidia driver (565.57.01 beta). Latest stable version of the driver at official site is 550.127.05 (see Driver Details | NVIDIA ).

ls /etc/yum.repos.d/ | grep nvidia
rpmfusion-nonfree-nvidia-driver.repo

Hmm interesting, looks like the nonfree repo pulls beta, that might explain things! For my specific setup, beta 565 is good and all working as it should so not touching it :slight_smile: It might have worked if i used the official recommended/certified though…