Frequent crashes. NixOs 25.05 - Plasma 6

I’ve been having repeated crashes for a few weeks now on a NixOS unstable with Plasma 6 and Wayland.
Two monitors are connected. It usually starts with it flickering, often KWIN is listed as a crashed process in this small application. But other applications too… You can’t really use it anymore. And only a restart helps. Just logging out isn’t enough. If I select X11 when logging in, nothing like that has happened so far.
The crashes often happen after a long period of use with several windows open. I always sent the crash reports.

Is there anything I can do to narrow down the error further?

Thank you very much

Hello
Can you please post your system info (especially if you are using nvidia) and your config?
Also when did this start to happen? After an update or just random?

You mean this?

Operating System: NixOS 25.05
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.14 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Xeon® CPU E5-1620 v2 @ 3.70GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVD9
Manufacturer: Dell Inc.
Product Name: Precision T3610
System Version: 01

02:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 310] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)

Thats the configuration.nix
configuration.nix

yeah the issue is pretty clear. It is your old nvidia card. Nvidia is known for bad driver support on especially on wayland. This has gotten better in recent years but only for the newer drivers. Your graphic card is too old for these updates.

I really recommend you to use X11.
But first try setting up your nvidia config the right way:
https://nixos.wiki/wiki/Nvidia
You will need nvidiaPackages.legacy_340 package for your gpu.
Or you could try out nouveau drivers instead of NVIDIAs closed source.

I’ve played around with the nvidia driver, but that is commented out due to only one screen and only 1024x… res.
So i mean i’m already running nouveau.

So can you try this:

  hardware.graphics.enable = true;
  boot.blacklistedKernelModules = [
    "nvidia"
    "nvidiafb"
    "nvidia-drm"
    "nvidia-uvm"
    "nvidia-modeset"
  ];

OK, done that. Rebooting… :wink:

OK, seems that it is running so far… How to check what has changed now?

So you have blacklisted any nvidia kernel modules as mentioned in the wiki:
https://wiki.nixos.org/wiki/NVIDIA#Disabling
to see which modules are loaded simply run this command lsmod.
The hardware.graphics.enable = true; is for hardware acceleration, which is definitly needed for any graphics config.

Like this:

There is no nvidia, when grepping for it…

sudo lsmod | grep nou
nouveau 3686400 63
mxm_wmi 12288 1 nouveau
drm_gpuvm 45056 1 nouveau
drm_exec 12288 2 drm_gpuvm,nouveau
gpu_sched 65536 1 nouveau
drm_ttm_helper 16384 2 nouveau
ttm 110592 2 drm_ttm_helper,nouveau
drm_display_helper 274432 1 nouveau
i2c_algo_bit 24576 1 nouveau
video 81920 1 nouveau
led_class 20480 3 snd_hda_codec_generic,input_leds,nouveau
wmi 32768 6 video,dell_smm_hwmon,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau
button 28672 1 nouveau

That right. Normally you should not need to blacklist the nvidia modules, since the should be removed when you remove "nvidia" from services.xserver.videoDrivers option.
But to be safe that no nvidia module is causing the issue by interfering with noueveau it is good to have nvidia blacklisted.

OK, thanks. Will test some days and report if that was successful.

1 Like