Bug 342637

Summary: Memory leak in KDE Keyboard Layout Indicator
Product: kxkb Reporter: Marc-André Laverdière <marcandre.laverdiere>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nate, rdieter
Priority: NOR    
Version: 3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marc-André Laverdière 2015-01-08 19:59:55 UTC
This bug is happening with Platform Version 4.14.3
[Copied verbatim from Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=1180288]

Description of problem:
When the KDE Keyboard Layout is enabled and the key sequence to change layouts is pressed repeatedly, plasma-desktop takes up to 20% CPU and the memory usage increases gradually (in chunks of ~4mb).

Version-Release number of selected component (if applicable):
kde-workspace-4.11.14-2.fc20.x86_64

How reproducible:
Constantly

Steps to Reproduce:
1. Open the keyboard layouts settings (System Settings > Input Devices > 
Keyboard > Layouts)
2. Set the following layouts: 
3. Enable Show layout indicator
4. Click apply
5. Open ksysguard and observe plasma-desktop's memory and CPU usage
6. Press Ctrl-Alt-K repeatedly
7. Observe plasma-desktop's memory and CPU usage
8. Disable the keyboard layout indicator (uncheck System Settings > Input Devices > Keyboard > Layouts > Show layout indicator)
9. Click apply
10. Press Ctrl-Alt-K repeatedly
11. Observe plasma-desktop's memory and CPU usage

Actual results:
At step 7, the CPU usage will shoot up (up to 20% in my case) and the memory usage will increase rapidly.

At step 11, the CPU and memory usage is not affected.

Expected results:
At both steps 7 and 11, the CPU and memory usage should not affected.

Additional info:
The keyboard layouts I have set up are US English and French (Canada) / Canadian Multilingual
Comment 1 Justin Zobel 2021-03-10 00:12:36 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 Nate Graham 2021-03-20 03:08:24 UTC
Bugs reported against Plasma 4 can generally be unconditionally closed as RESOLVED UNMAINTAINED unless you have solid evidence that it's still happening today.