Graphical corruption after suspend/resume with NVIDIA Xid 13 (595.71.05)

After resuming from S3 suspend on Fedora 44 KDE Plasma 6.6.4 Wayland, the desktop starts showing severe graphical corruption

nvidia-bug-report:

Apr 30 17:47:20 fedorapc systemd[1]: Starting nvidia-suspend.service - NVIDIA system suspend actions...
Apr 30 17:47:20 fedorapc suspend[11245]: nvidia-suspend.service
Apr 30 17:47:20 fedorapc logger[11245]: <13>Apr 30 17:47:20 suspend: nvidia-suspend.service
Apr 30 17:47:21 fedorapc systemd[1]: nvidia-suspend.service: Deactivated successfully.
Apr 30 17:47:21 fedorapc systemd[1]: Finished nvidia-suspend.service - NVIDIA system suspend actions.
Apr 30 17:47:21 fedorapc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 30 17:47:21 fedorapc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 30 18:08:58 fedorapc systemd[1]: Starting nvidia-resume.service - NVIDIA system resume actions...
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405848=0x80000000
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=8021, name=plasmashell, Graphics Exception: channel 0x00000002, Class 0000ce97, Offset 00000000, Data 00000000
Apr 30 18:08:58 fedorapc suspend[11472]: nvidia-resume.service
Apr 30 18:08:58 fedorapc logger[11472]: <13>Apr 30 18:08:58 suspend: nvidia-resume.service
Apr 30 18:08:58 fedorapc systemd[1]: nvidia-resume.service: Deactivated successfully.
Apr 30 18:08:58 fedorapc systemd[1]: Finished nvidia-resume.service - NVIDIA system resume actions.
Apr 30 18:08:58 fedorapc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-resume comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 30 18:08:58 fedorapc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-resume comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405848=0x80000000
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception: channel 0x00000009, Class 0000ce97, Offset 00000000, Data 00000000
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception: Shader Program Header 11 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception: Shader Program Header 18 Error
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception: ESR 0x405840=0xa2040800
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception: ESR 0x405848=0x80000000
Apr 30 18:08:58 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=10976, name=kscreenlocker_g, Graphics Exception: channel 0x0000000d, Class 0000ce97, Offset 00000000, Data 00000000
Apr 30 18:09:11 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
Apr 30 18:09:11 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
Apr 30 18:09:11 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Apr 30 18:09:11 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405848=0x80000000
Apr 30 18:09:11 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=10435, name=chrome, Graphics Exception: channel 0x0000000b, Class 0000ce97, Offset 00000000, Data 00000000
Apr 30 18:09:50 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
Apr 30 18:09:50 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
Apr 30 18:09:50 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
Apr 30 18:09:50 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405848=0x80000000
Apr 30 18:09:50 fedorapc kernel: NVRM: Xid (PCI:0000:01:00): 13, pid=2746, name=plasma-keyboard, Graphics Exception: channel 0x0000000e, Class 0000ce97, Offset 00000000, Data 00000000

System:

  • Fedora 44 KDE Plasma
  • KDE Plasma 6.6.4
  • Wayland session
  • NVIDIA GPU: RTX 5080
  • NVIDIA driver: 595.71.05
  • Kernel: 6.19.14-300.fc44.x86_64
  • Suspend mode: S3 (Automatic susped after ~ 15 minutes inactivity)

Relevant journalctl log excerpt:

NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
NVRM: Xid (PCI:0000:01:00): 13, pid=8021, name=plasmashell, Graphics Exception
NVRM: Xid (PCI:0000:01:00): 13, pid=2669, name=kwin_wayland, Graphics Exception
plasmashell: QRhiGles2: Context is lost.
plasmashell: Graphics device lost, cleaning up scenegraph and releasing RHIs
kwin_wayland: A graphics reset attributable to the current GL context occurred.
google-chrome-stable: SharedContextState context lost via EXT_robustness. Reset status = GL_GUILTY_CONTEXT_RESET_KHR

This looks like a GPU context loss / driver reset during resume, which then causes KWin, Plasma Shell and applications to lose their rendering context.

The problem did not exist in the previous version (595.58.03).

Same issue. The rendering of many windows is broken after resuming from the suspend.

niri wayland compositor:

Hyprland:

Issue did not exist in the previous version (595.58.03).

Nvidia 595.80 - same issue.