SUMMARY When notifications is being spammed, memory will leak. STEPS TO REPRODUCE Since notify-send is slow, I'll use notifications from Accessibility. 1. Enable notifications for modifiers and locking keys 2. Enable notification pop-ups for modifier keys when it's active and inactive 3. Play around with the keys 4. Check plasmashell memory usage OBSERVED RESULT Memory is being leaked, even when notifications being cleared, still cannot free the memory being used. I was able to get plasmashell to use up to a GB of RAM. EXPECTED RESULT Memory being freed as soon the notifications are cleared. SOFTWARE/OS VERSIONS Distro: Arch Linux Kernel: 4.19.78-1-lts KDE Plasma Version: 5.16.5 KDE Frameworks Version: 5.62.0 Qt Version: 5.13.1 ADDITIONAL INFORMATION None
Did you clear the notification from history (does it show up there?) or what did you mean by "as soon as it is cleared"?
On Wednesday, October 16, 2019 2:35:03 AM +07 you wrote: > https://bugs.kde.org/show_bug.cgi?id=412865 > > --- Comment #1 from Kai Uwe Broulik <kde@privat.broulik.de> --- > Did you clear the notification from history (does it show up there?) or what > did you mean by "as soon as it is cleared"? Yes, I cleared the notifications.
Confirmed. Even if I clear the history and the model is empty, the isn't free'd. :/
However, after spamming a bit, it does increase in memory, but not excessively. Valgrind suggests massive leaks in the graphics driver and OpenGL libraries, hardly any in notifications themselves. Possibly through the windows we create for each notification.
*** This bug has been marked as a duplicate of bug 442844 ***