STEPS TO REPRODUCE 1. Press Meta+B shortcut to activate power profiles OSD many times OBSERVED RESULT Each time a OSD window gets created. This isn't super visible since they are all on top of each other, but it's noticeable because the shadow gets thicker EXPECTED RESULT If the OSD is already open no second window is openend SOFTWARE/OS VERSIONS KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0 Qt Version: 6.7
Hah oops! Does not look like it affects the KScreen OSD, just the Powerdevil OSD.
This also adds threads and reserves RAM, according to btop. If you keep the shortcut pressed, the RAM is consumed very quickly. Per iteration ~8MB and 8 threads. The timer in osdmanager.c doesn't work (it does in KScreen) and the OSD doesn't close / the program doesn't quit. PS: The program consumes ~170MB with just one window, is that normal for such a small QT thing?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/364
Git commit e22a99c2b8c177cea5a52b7aeb564ebe60a5079a by Nate Graham, on behalf of Fabian Arndt. Committed on 23/05/2024 at 15:06. Pushed by ngraham into branch 'master'. Show power profiles OSD only once / fix mem leak - Currently the OSD window can be spawned multiple times - If you hold the shortcut, you can currently consume all your RAM FIXED-IN: 6.1 M +9 -3 osd/osdmanager.cpp M +1 -0 osd/osdmanager.h https://invent.kde.org/plasma/powerdevil/-/commit/e22a99c2b8c177cea5a52b7aeb564ebe60a5079a