Bug 405724 - multi-screen to single screen slideshow memory leak
Summary: multi-screen to single screen slideshow memory leak
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: 5.15.4
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 15:26 UTC by rtvernam
Modified: 2019-05-29 17:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
output: QSG_INFO=1 plasmashell --replace (12.34 KB, text/plain)
2019-03-21 17:55 UTC, rtvernam
Details
5.15.3: output: QSG_INFO=1 plasmashell --replace (11.71 KB, text/x-log)
2019-04-01 13:54 UTC, rtvernam
Details
plasmashell using 4.7gb ram! (19.72 KB, image/png)
2019-05-06 13:39 UTC, rtvernam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rtvernam 2019-03-21 15:26:00 UTC
SUMMARY
This is on a laptop hooked up to multiple monitors via docking station (laptop is closed & screen is off).
After the last slideshow memory leak, I didn't start using slideshow again until recently.  I had a running session for nearly two weeks with reasonable plasmashell memory usage - it started at about 90mb after a fresh boot, gradually rose to around 200mb, then hovered +/- from there.
I then used the laptop disconnected from the docking station, using the laptop's screen.  plasmashell memory usage rapidly rose to around 1.4gb during the roughly 8 hours that the laptop was on; though I was not at the laptop, it was mostly sitting on a desk idle.
I then docked the laptop again (lid closed, laptop screen off), and memory usage has continued to rise in the roughly 1 hour that I've been using it back on the dock to a little over 1.5gb.

STEPS TO REPRODUCE
1. configure slideshow, rapid shuffle time to exacerbate memory leak.
2. start new session with a screen turned off, but some other screens on. (ie, laptop screen off, desktop monitors on).
3. watch memory usage level off at reasonable usage.
4. swap screens (ie, turn on the ones that were off at #2 above, and turn off the ones that were on)
5. watch memory usage rise dramatically.


OBSERVED RESULT
plasmashell eats too much memory.

EXPECTED RESULT
plasmashell maintains balanced diet.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo. kernel 4.20.x & 5.0.3
(available in About System)
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.56
Qt Version: 5.11.3

ADDITIONAL INFORMATION
Comment 1 rtvernam 2019-03-21 15:30:51 UTC
I'm rushing to get this bug report in before a meeting, and I missed something describing the steps I follow...though I am not sure if these are required in order to reproduce the leak:
Step 3.5: sleep or hibernate
Step 4: (switch screens when laptop is sleep or hibernate)
Step 4.5: turn power back on with new monitor configuration.
Comment 2 David Edmundson 2019-03-21 17:29:59 UTC
please attach output of 

QSG_INFO=1 plasmashell --replace

and attach the log for the first few seconds
Comment 3 rtvernam 2019-03-21 17:55:08 UTC
Created attachment 118966 [details]
output: QSG_INFO=1 plasmashell --replace
Comment 4 rtvernam 2019-04-01 13:54:41 UTC
Created attachment 119195 [details]
5.15.3: output: QSG_INFO=1 plasmashell --replace

I have updated to Plasma 5.15.3.  The problem persists.
This is the output as requested, running on 5.15.3.
Comment 5 rtvernam 2019-04-03 22:14:57 UTC
Is there anything additional I can be doing to see a resolution to this memory leak?
Comment 6 rtvernam 2019-04-09 01:54:43 UTC
Well, plasmashell --replace works reliably, so I've been doing that at the end of the day...so at least I can work around this.  Thanks for that tip.
Comment 7 Christoph Feck 2019-04-19 10:39:32 UTC
New information was added with comment #4; changing status for inspection.
Comment 8 rtvernam 2019-04-29 14:03:55 UTC
updated to Plasma 5.15.4, Frameworks 5.57 & Apps 19.04 ... still experiencing this memory leak.
Comment 9 rtvernam 2019-05-06 13:39:39 UTC
Created attachment 119870 [details]
plasmashell using 4.7gb ram!
Comment 10 rtvernam 2019-05-29 17:55:27 UTC
I am now on Qt 5.12.3 and plasmashell is no longer over-indulging in memory, so likely this was in Qt.