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

            Bug ID: 422755
           Summary: Memory leak in plasmashell on opening activity manager
                    sidebar repeatedly
           Product: plasmashell
           Version: 5.19.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: kishor...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

SUMMARY
If we repeatedly open the activity manager sidebar (the one that shows a list
of activities and allows you to suspend or resume them) Plasma's memory usage
increases without bound. The consumed memory does not seem to be freed even 30
minutes later. This is also reproducible by repeatedly opening and closing
popups in the system tray.

STEPS TO REPRODUCE
1. Open a Konsole window (to run the script) and a Ksysguard window (to monitor
Plasma's memory usage)
2. Note the initial memory usage of the plasmashell process.
3. Run the following script in bash:
```
while true
do
        sleep 0.1
        qdbus org.kde.plasmashell /PlasmaShell toggleActivityManager
done
```

OBSERVED RESULT
Note that the memory keeps on increasing without bound. After perhaps 10
minutes, the memory usage is a few 100 MB greater than the initial value (I
have observed it easily crossing 500 MB). If you kill the script, wait, and
look at Plasma's memory usage after some time, you will still see that it is >=
the value it had when you killed the script.

EXPECTED RESULT
Memory usage should not increase without bound. Even if it increases, it should
at least be freed after some time.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.15-arch1-1
Display server: X
Compositor rendering backend: Opengl 2.0
Graphics driver: amdgpu

HARDWARE INFORMATION
OS Type: 64-bit
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 13.6 GiB of RAM
Graphics Processor: AMD RAVEN 

ADDITIONAL INFORMATION
I often observe that after a week or so of uptime, plasmashell's memory usage
can be close to a GB, which may be due to the same underlying cause. You can
also reproduce this same issue by repeatedly clicking on system tray applets
for many minutes, but I have reported for the activities manager as is was the
first thing I was able to figure out how to activate from a script. I was also
able to reproduce this in a different user account with the default theme,
window decorations, etc.

POSSIBLE DUPLICATES
bug 412865
bug 393929

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

Reply via email to