Bug 440097 - KDE randomly slowly respond to key press
Summary: KDE randomly slowly respond to key press
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.76.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-21 04:33 UTC by linnets
Modified: 2021-08-06 11:20 UTC (History)
2 users (show)

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


Attachments
case1 (778.77 KB, video/mp4)
2021-07-21 04:33 UTC, linnets
Details
case2 (2.39 MB, video/x-matroska)
2021-07-21 04:34 UTC, linnets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description linnets 2021-07-21 04:33:52 UTC
Created attachment 140226 [details]
case1

SUMMARY
My previous system with KDE 5.12 or 5.15 do not have problem.

It randomly happens, when I press some keys, such as Alt+TAB to switch between Kwrite to Vivaldi browser, then instead of Vivaldi window is active, TAB is wrote down in KWrite.

It randomly happens so I can't exactly reproduce the bug but for particular situation the bug seems to appear frequently.

Case 1: Alt+TAB, it's random, but as you can see on video, where I use 'ScreenKey' to capture key press, Alt+TAB are pressed but no windows switching.


Case 2: I could reproduce the situation where KDE does not respond with key press.

Note1: It happens even with KDE+openbox instead of kwin.
Note2: It does not happens with KDE Plasma 5.12, so it's not TimeSlotTracker's problem (the program I used in this experiment below).
Download TimeSlotTracker here: https://sourceforge.net/projects/timeslottracker/

STEPS TO REPRODUCE
1. Open TimeSlotTracker
2. Create new task
3. F2 to edit task
4. Esc to close the edit window, then immediately press some key (Alt+TAB, Alt+F2,..., etc.). In the video I press Alt+F2.

OBSERVED RESULT
Both TimeSlotTracker edit window and Krunner appear.

EXPECTED RESULT
Only Krunner is activate.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 linnets 2021-07-21 04:34:23 UTC
Created attachment 140227 [details]
case2
Comment 2 linnets 2021-07-21 04:36:39 UTC
Other person has the same issue!
https://forum.kde.org/viewtopic.php?f=309&t=171976&p=447499&hilit=keyboard
Comment 3 Nate Graham 2021-08-04 19:02:37 UTC
Any chance you can upgrade to a new frameworks version and see if it still happens? YOu have Frameworks 5.76 which is 9 months old.
Comment 4 linnets 2021-08-04 20:55:33 UTC
I've tested with OpenSuse Live Tumbleweed 20210802, and it seems that there is NO problem with this version.

KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Comment 5 Nate Graham 2021-08-04 20:56:26 UTC
OK, great!
Comment 6 linnets 2021-08-06 00:49:49 UTC
I've installed Suse Leap 15.3 and then installs KDE Plasma 5.22.4, 
(Frameworks v5.84.0).
Unfortunately that there's still problem. But I figured out that it may relate to configurations (which worked without problem before with previous versions of KDE). Freshly created user does not have problem.

Now I tried to reset KDE configs and it's pain to figure which files are KDE configs.
Comment 7 linnets 2021-08-06 01:44:54 UTC
Before resetting KDE configs, I clean the ~/.config folder (in text mode), remove all backups and old applications' configs. I avoid to touch any k* files or anything relates to plasma, only kde config files I removed are kglobalshortcutsrc.XXXXXX.

To make sure everything is OK before the resetting, I login to KDE. Krunner history is gone and keyboard's responding returns to normal.
Comment 8 linnets 2021-08-06 11:20:10 UTC
My problem is likely caused by ibus. Sorry for taking your time!