[systemsettings] [Bug 374740] Unplugging controller causes 100% usage of one CPU core

Nagy Tibor bugzilla_noreply at kde.org
Tue Oct 19 06:48:26 BST 2021


https://bugs.kde.org/show_bug.cgi?id=374740

Nagy Tibor <xnagytibor at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xnagytibor at gmail.com

--- Comment #4 from Nagy Tibor <xnagytibor at gmail.com> ---
I can also reproduce this with 5.23. I may be entirely wrong but this is what I
see happening:

1. You pull out the joystick cable.
2. Joystick's device file gets nuked.
3. This select call [1] starts always returning immediately without timeouts.
No errors thrown.
4. This read call [2] doesn't read anything anymore. No errors thrown.
5. Event loop goes hyperspeed because of the lack of timeouts.

[1]
https://invent.kde.org/plasma/plasma-desktop/-/blob/58f29efd5d2975129c07dcdc4a9eb78669c5eb67/kcms/joystick/joydevice.cpp#L292
[2]
https://invent.kde.org/plasma/plasma-desktop/-/blob/58f29efd5d2975129c07dcdc4a9eb78669c5eb67/kcms/joystick/joydevice.cpp#L298

No idea about how to properly fix it though.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list