Bug 504354 - Kwin Wayland Primary 144hz freezes when left on idle for few minutes
Summary: Kwin Wayland Primary 144hz freezes when left on idle for few minutes
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-16 19:23 UTC by Adrian
Modified: 2025-05-19 16:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-796319-0.html (1.59 KB, text/html)
2025-05-19 16:17 UTC, Adrian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian 2025-05-16 19:23:03 UTC
***
16.05.2025 00:23	kernel	==================================================================
16.05.2025 00:23	kernel	BUG: KFENCE: use-after-free read in _nv000177kms+0x439/0x2a10 [nvidia_modeset]

16.05.2025 00:23	kernel	Use-after-free read at 0x00000000ba2ac502 (in kfence-#172):
16.05.2025 00:23	kernel	 _nv000177kms+0x439/0x2a10 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv002879kms+0x665/0x9c0 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv000392kms+0x1e1/0x400 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv002878kms+0xf1a/0x11e0 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv002988kms+0x79c/0xd30 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvKmsIoctl+0xf9/0x270 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvkms_ioctl_from_kapi_try_pmlock+0x57/0x90 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv000023kms+0x56b/0xbc0 [nvidia_modeset]
16.05.2025 00:23	kernel	 nv_drm_atomic_commit+0x6b7/0xb70 [nvidia_drm]
16.05.2025 00:23	kernel	 drm_mode_atomic_ioctl+0x639/0xc10
16.05.2025 00:23	kernel	 drm_ioctl_kernel+0xc3/0x120
16.05.2025 00:23	kernel	 drm_ioctl+0x374/0x4e0
16.05.2025 00:23	kernel	 __x64_sys_ioctl+0x76/0xd0
16.05.2025 00:23	kernel	 do_syscall_64+0x88/0x170
16.05.2025 00:23	kernel	 entry_SYSCALL_64_after_hwframe+0x76/0x7e
16.05.2025 00:23	kernel
16.05.2025 00:23	kernel	kfence-#172: 0x000000004d130e0d-0x00000000db077b89, size=328, cache=kmalloc-512

16.05.2025 00:23	kernel	allocated by task 2306 on cpu 9 at 23846.851667s (0.019339s ago):
16.05.2025 00:23	kernel	 nvkms_alloc+0x5b/0xa0 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv003020kms+0x22/0x40 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv002842kms+0x266/0x740 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv000719kms+0x40/0x60 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvKmsIoctl+0xf9/0x270 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvkms_ioctl_from_kapi+0x9c/0xd0 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv000096kms+0x19d/0x240 [nvidia_modeset]
16.05.2025 00:23	kernel	 nv_drm_internal_framebuffer_create+0x3c4/0x450 [nvidia_drm]
16.05.2025 00:23	kernel	 nv_drm_framebuffer_create+0x40/0x60 [nvidia_drm]
16.05.2025 00:23	kernel	 drm_internal_framebuffer_create+0x612/0x6a0
16.05.2025 00:23	kernel	 drm_mode_addfb2+0x32/0xf0
16.05.2025 00:23	kernel	 drm_ioctl_kernel+0xc3/0x120
16.05.2025 00:23	kernel	 drm_ioctl+0x374/0x4e0
16.05.2025 00:23	kernel	 __x64_sys_ioctl+0x76/0xd0
16.05.2025 00:23	kernel	 do_syscall_64+0x88/0x170
16.05.2025 00:23	kernel	 entry_SYSCALL_64_after_hwframe+0x76/0x7e
16.05.2025 00:23	kernel
16.05.2025 00:23	kernel	freed by task 2306 on cpu 9 at 23846.865449s (0.005761s ago):
16.05.2025 00:23	kernel	 _nv000801kms+0x49/0x60 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvKmsIoctl+0xf9/0x270 [nvidia_modeset]
16.05.2025 00:23	kernel	 nvkms_ioctl_from_kapi+0x9c/0xd0 [nvidia_modeset]
16.05.2025 00:23	kernel	 _nv000110kms+0x4b/0x60 [nvidia_modeset]
16.05.2025 00:23	kernel	 nv_drm_framebuffer_destroy+0x37/0x50 [nvidia_drm]
16.05.2025 00:23	kernel	 drm_mode_closefb_ioctl+0x10e/0x130
16.05.2025 00:23	kernel	 drm_ioctl_kernel+0xc3/0x120
16.05.2025 00:23	kernel	 drm_ioctl+0x374/0x4e0
16.05.2025 00:23	kernel	 __x64_sys_ioctl+0x76/0xd0
16.05.2025 00:23	kernel	 do_syscall_64+0x88/0x170
16.05.2025 00:23	kernel	 entry_SYSCALL_64_after_hwframe+0x76/0x7e
16.05.2025 00:23	kernel
16.05.2025 00:23	kernel	CPU: 11 UID: 1000 PID: 2356 Comm: DP-2 Tainted: P    B      OE      6.14.6-pikaos #101pika1 084673defa55a41e73574fb8719c93cb406d127b
16.05.2025 00:23	kernel	Tainted: [P]=PROPRIETARY_MODULE, [B]=BAD_PAGE, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
16.05.2025 00:23	kernel	Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450 Gaming K4, BIOS P3.90 12/12/2019
16.05.2025 00:23	kernel	==================================================================

16.05.2025 20:27	kernel	[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000a00] Flip event timeout on head 1

***

SUMMARY
My primary display tends to freeze when left unattended, weirdly it happens without lock/suspend which I've found to be existing problem in many of the bug reports since this is weird behavior i wanted to mention that.

I have lock suspend set to 10 minutes

Display is ASUS 24BQE 3D and I'm on Nvidia GTX 1060 with Nvidia proprietary Driver 570.133.07

STEPS TO REPRODUCE
1. Leave Device unattended for 3-6 minutes after some usage(usually at least an hour of usage or more)

OBSERVED RESULT
Kwin_Wayland freezes on primary display, in few cases when I've tried to move windows from the frozen display second display also would freeze

EXPECTED RESULT
It would be great if this could be avoided or kwin would be able to recover from this state automatically without applications being closed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: PikaOS 4
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Comment 1 Lenzoid 2025-05-19 11:43:47 UTC
Yeah there are a couple of bugs in Nvidia 570.133.07  that create issues with wayland.

16.05.2025 20:27	kernel	[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000a00] Flip event timeout on head 1

sounds like a driver issue to me. I also had issues with that driver version and screen freezes that were fixed by upgrading to the Nvidia beta drivers (575.51.02 currently). If you want you can try that, see if it helps.

PS: Does your frozen display recover when you power that screen off and on again?
Comment 2 Zamundaaa 2025-05-19 15:23:57 UTC
Yes, flip timeout is always a driver bug. You can report it at https://forums.developer.nvidia.com/c/gpu-graphics/linux
Comment 3 Lenzoid 2025-05-19 15:34:50 UTC
(In reply to Zamundaaa from comment #2)
> Yes, flip timeout is always a driver bug. You can report it at
> https://forums.developer.nvidia.com/c/gpu-graphics/linux

Ah thanks for reminding me. Yes this one is already reported and fixed in Nvidia beta

https://forums.developer.nvidia.com/t/kwin-wayland-drm-pageflip-timed-out/329529
Comment 4 Adrian 2025-05-19 16:17:19 UTC
Created attachment 181526 [details]
attachment-796319-0.html

well after changing some stuff, i was able to find that this was caused by
screen diming feature in power saving settings, ive diabled it and
everything works fine, although i see that nvidia error apears from time to
time anyways

pon., 19 maj 2025, 17:34 użytkownik Lenzoid <bugzilla_noreply@kde.org>
napisał:

> https://bugs.kde.org/show_bug.cgi?id=504354
>
> --- Comment #3 from Lenzoid <strong.drum0546@fastmail.com> ---
> (In reply to Zamundaaa from comment #2)
> > Yes, flip timeout is always a driver bug. You can report it at
> > https://forums.developer.nvidia.com/c/gpu-graphics/linux
>
> Ah thanks for reminding me. Yes this one is already reported and fixed in
> Nvidia beta
>
>
> https://forums.developer.nvidia.com/t/kwin-wayland-drm-pageflip-timed-out/329529
>
> --
> You are receiving this mail because:
> You reported the bug.