Bug 504593 - KWin Wayland DRM - Thread hangs when middle mouse button (scroll wheel) pressed.
Summary: KWin Wayland DRM - Thread hangs when middle mouse button (scroll wheel) pressed.
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-21 03:33 UTC by isaac17percy@gmail.com
Modified: 2025-05-22 20:56 UTC (History)
1 user (show)

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


Attachments
Compressed strace of kwin log (824.97 KB, application/gzip)
2025-05-21 03:36 UTC, isaac17percy@gmail.com
Details
journalctf of crash (1.39 KB, text/x-log)
2025-05-21 03:36 UTC, isaac17percy@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description isaac17percy@gmail.com 2025-05-21 03:33:22 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open a window
2. Press middle click on mouse
3. Move mouse up/down

OBSERVED RESULT
Entire OS hangs. I've found turning one monitor off and on again seems to somewhat resolve it, or it may just be a time thing.  

EXPECTED RESULT
Should scroll the window, not hang the whole system. 

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070


ADDITIONAL INFORMATION

I have a wireless Zowie Ec-1 mouse. It has worked fine before, but now the middle click causes a crash. I'm not sure why, but it's reproducible 9/10 times on my system. 

Also, my journalctf log reports: 
May 20 21:12:42 IsaacsArchPC kwin_wayland[845]: kwin_wayland_drm: The main thread was hanging temporarily!

Whenever the hang occurs. See the attached file for the strace of the kwin process.
Comment 1 isaac17percy@gmail.com 2025-05-21 03:36:08 UTC
Created attachment 181591 [details]
Compressed strace of kwin log
Comment 2 isaac17percy@gmail.com 2025-05-21 03:36:36 UTC
Created attachment 181592 [details]
journalctf of crash
Comment 3 Vlad Zahorodnii 2025-05-21 07:33:16 UTC
Anything in dmesg logs? It seems like a kernel or a libinput issue.
Comment 4 isaac17percy@gmail.com 2025-05-22 20:56:49 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Anything in dmesg logs? It seems like a kernel or a libinput issue.

I believe you are correct that it is likely a kernel or libinput issue, as after turning it on and off the issue was gone. Next time it shows up I will report it to the correct area. 

Thanks!!