https://bugs.kde.org/show_bug.cgi?id=441551

            Bug ID: 441551
           Summary: plasmashell leaks memory over time
           Product: plasmashell
           Version: 5.20.5
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: generic-performance
          Assignee: plasma-b...@kde.org
          Reporter: nurupo.contributi...@gmail.com
  Target Milestone: 1.0

SUMMARY
Using Plasma for 7 days, I see plasmashell process RSS memory usage raise to
around 2.5GiB.
Using Plasma for 30 days, I see plasmashell process RSS memory usage raise to
around 6-8GiB.

STEPS TO REPRODUCE
1. Keep using your PC as usual, without powering it off for long time (e.g. a
month)

OBSERVED RESULT
plasmashell memory usage keeps growing over time, totaling over 6GiB in RSS
memory usage by the end of the month.

EXPECTED RESULT
plasmashell memory usage doesn't keep growing over time. Furthermore, it stays
below 1GiB at all times.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 11 (Bullseye), Linux debian 5.10.0-8-amd64 #1 SMP
Debian 5.10.46-3 (2021-07-28) x86_64 GNU/Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Heaptrack of 7 days run (423MiB): https://pixeldrain.com/u/D8bPUCYW
SHA256: 10e9c9017bca95eaf4f3367a8ff95435d2895b8ed74136d6bf6e967066e29b67

I had to use the master branch of Heaptrack, commit
2a1e0710f489c2f7cceeceb671366eb9156958e0, because unlike the latest release
v1.2.0, the master branch is able to find the detached debug symbols on Debian
that are provided by the the *-dbgsym packages.

I suspect that the memory leak is due to my interaction with the Task Manager,
as plasmashell's memory usage growth seems to be correlated with the times I
actively use the Task Manager. I have 110 windows of one application open which
are grouped under a single task and I access them rather often. I have noticed
that plasmashell's memory usage grows when clicking on the grouped task in the
Task Manager to pop-up the list of tasks and then mouse-overing the task list.
One time I kept doing that over and over to confirm my suspicion, with each
time plasmashell memory usage increasing by about 4MiB, stopping with my test
when plasmashell's memory usage increase by 200MiB in total. Not sure if it
matters, but some of those 110 windows have longer titles than others, taking
up 2 lines in the task manager list pop-up, wile other are 1-line. I also
replace maybe 70 out of 110 those windows each day: close 70 of them and open
70 new ones with new window titles.

Task Manager settings: Appearance: https://i.imgur.com/Gah5d5k.png
Task Manager settings: Behavior: https://i.imgur.com/R68WEAX.png

X11
Plasma Style: Opaquity https://www.opendesktop.org/p/998880/
Global Theme: Oxygen
Application Style: Oxygen
Window Decorations: Oxygen

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to