Summary: | Repeatedly pressing shortcut for power profiles OSD stacks windows | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Nicolas Fella <nicolas.fella> |
Component: | general | Assignee: | Fabian Arndt <fabian.arndt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fabian.arndt, me, natalie_clarius, nate |
Priority: | NOR | ||
Version: | 6.0.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=141968 | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/e22a99c2b8c177cea5a52b7aeb564ebe60a5079a | Version Fixed In: | 6.1 |
Description
Nicolas Fella
2024-03-19 00:07:05 UTC
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 |