Bug 410701

Summary: kglobalaccel5 takes all CPU when plugging USB keyboard
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Malte <malte+kde>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED WAITINGFORINFO    
Severity: crash    
Priority: NOR    
Version First Reported In: 5.16.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Malte 2019-08-07 18:03:32 UTC
The desktop stops responding to all keyboard input after plugging in USB input devices. I can reproduce this using the Raspberry Pi Keyboard and a Sennheiser USB headset. I've been seeing this behavior for quite some time on multiple systems since KDE ~5.14 on Debian testing, unstable and also on Arch Linux.

STEPS TO REPRODUCE
1. Plug in USB headset or similar

OBSERVED RESULT
- Screen freezes for some seconds (kwin_x11's compositor?)
- Sometimes no keyboard input is possible for dozens of seconds
- Always global shortcuts stop working for dozens of seconds
- Checking with (h)top shows high cpu usage by kglobalaccel5 and Xorg
- Killing and restarting kglobalaccel5 restores functionality immediately

There is nothing suspicious in xsession-errors or Xorg.log.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (2019-08-07)
(available in About System)
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2022-09-23 02:22:47 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Malte 2022-09-26 12:34:13 UTC
This issue hasn't appeared for quite a while.