Bug 385970 - Plasmashell high memory usage when using slideshow for desktop backgrounds
Summary: Plasmashell high memory usage when using slideshow for desktop backgrounds
Status: RESOLVED DUPLICATE of bug 381000
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image Wallpaper (show other bugs)
Version: 5.11.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
: 388609 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-20 01:58 UTC by Richard
Modified: 2018-01-06 12:57 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Plasmashell Memory Usage (37.25 KB, image/png)
2017-10-20 01:58 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2017-10-20 01:58:40 UTC
Created attachment 108463 [details]
Plasmashell Memory Usage

I have noticed that the memory usage of plasmashell continues to grow over time when slideshow is set as the desktop background setting. Killing plasmashell and restarting, or rebooting, temporarily corrects the issue. Using other settings for desktop background does not cause high memory usage.

I did find a previous bug that is for plasmashell high CPU usage that also talks about memory, but not an actual bug that tracks this issue.

My system:
Kubuntu 17.10
KDE Plasma: 5.10.5
KDE Framework: 5.38.0
QT Version: 5.9.1
Kernel: 4.13.0-16

Previous to upgrading to 17.10, I was running Kubuntu 17.04 with KDE backports and did not have this issue.
Comment 1 dale 2017-10-28 22:54:20 UTC
I'm having the same issue when the slideshow is used.  Usually I kill plasmashell when I'm not going to be around the computer for a while but once I forgot.  It kept increasing until the OOM-killer killed it.  I have 16GBs of memory so it got real hungry.  Some info on what I have, using OP as a guide on what to provide. 

Gentoo
plasma-5.39.0
plasma-desktop-5.11.2
plasma-workspace
dev-qt/qtcore-5.9.2 <read somewhere that could be important> 

If a dev needs more info, let me know.
Comment 2 dale 2017-10-29 03:14:44 UTC
To add a little more info.  Someone posted elsewhere that maybe it was loading the wallpaper images into memory for some reason.  To test that, I used a directory that was large enough to see the difference but small enough to also know if that is what it is doing.  I used one that is about 1.6GBs.  After a few hours, it was well past what would be needed to load the wallpapers in memory plus what plasmashell usually uses by almost 1GB.  If it is loading the wallpapers into memory, it is also doing something else with memory as well.  I'm not sure what.  

Also, while on this slideshow topic.  Is there a way to tell it not to randomize the images?  I have a lot of images that are designed to be shown as a slideshow but not in random order.  They are made to be shown in sequence.  

If I can provide any more info, let me know.
Comment 3 Richard 2017-11-01 13:34:05 UTC
Since submitting this I have upgraded KDE on Kubuntu with the Backports so can confirm like Dale below that this is still an issue.

New info:

Kubuntu 17.10 w/ KDE Backports PPA
KDE Plasma: 5.11.2
KDE Framework: 5.39.0
QT Version: 5.9.1
Kernel: 4.13.0-16

Also, for me memory starts off as normal, ~300mb at boot time, and slowly grows over time. I normally leave my system running since it's a desktop and it grows about 4GB/day minimum. Killing plasmashell or rebooting clears this usage but will continue to grow afterwards.
Comment 4 David Edmundson 2017-11-01 14:29:48 UTC
Known issue with Qt5.9.1, 5.9.2 fixes it. 

See attached bug, (which has morphed into talking about some other bug for some reason)

*** This bug has been marked as a duplicate of bug 381000 ***
Comment 5 Vova Mshanetskiy 2017-11-01 14:38:04 UTC
(In reply to David Edmundson from comment #4)
> Known issue with Qt5.9.1, 5.9.2 fixes it. 
> 
> See attached bug, (which has morphed into talking about some other bug for
> some reason)
> 
> *** This bug has been marked as a duplicate of bug 381000 ***

I would say that actually bug 381000 morphed into talking about this bug. The original report was about high CPU usage, but now both high CPU usage and high memory usage are discussed there.
Comment 6 Paul 2017-11-01 15:10:32 UTC
(In reply to David Edmundson from comment #4)
> Known issue with Qt5.9.1, 5.9.2 fixes it. 
> 
> See attached bug, (which has morphed into talking about some other bug for
> some reason)

Not quite correct. Bug #381000 started life as "[Regression] High CPU when background is set to slideshow" - then morphed into "High Memory Usage" - before returning to it's original subject.

> *** This bug has been marked as a duplicate of bug 381000 ***
Comment 7 dale 2017-11-01 18:52:49 UTC
(In reply to David Edmundson from comment #4)
> Known issue with Qt5.9.1, 5.9.2 fixes it. 
> 
> See attached bug, (which has morphed into talking about some other bug for
> some reason)
> 
> *** This bug has been marked as a duplicate of bug 381000 ***


I have 5.9.2 installed here and still have this problem.  QTcore-5.9.2 has been installed here since the first part of October.  This is the 5.9.2 versions I have installed.

dev-qt/qtconcurrent-5.9.2
dev-qt/qtcore-5.9.2
dev-qt/qtdbus-5.9.2
dev-qt/qtdeclarative-5.9.2
dev-qt/qtgraphicaleffects-5.9.2
dev-qt/qtgui-5.9.2
dev-qt/qtimageformats-5.9.2
dev-qt/qtmultimedia-5.9.2
dev-qt/qtnetwork-5.9.2
dev-qt/qtopengl-5.9.2
dev-qt/qtpaths-5.9.2
dev-qt/qtpositioning-5.9.2
dev-qt/qtprintsupport-5.9.2
dev-qt/qtquickcontrols-5.9.2
dev-qt/qtquickcontrols2-5.9.2
dev-qt/qtscript-5.9.2
dev-qt/qtsql-5.9.2
dev-qt/qtsvg-5.9.2
dev-qt/qttest-5.9.2
dev-qt/qtvirtualkeyboard-5.9.2
dev-qt/qtwayland-5.9.2
dev-qt/qtwebchannel-5.9.2
dev-qt/qtwebengine-5.9.2
dev-qt/qtwidgets-5.9.2
dev-qt/qtx11extras-5.9.2
dev-qt/qtxml-5.9.2
dev-qt/qtxmlpatterns-5.9.2

Is one of those supposed to have the fix?  If so, it still does the same thing here.
Comment 8 David Edmundson 2018-01-06 12:57:14 UTC
*** Bug 388609 has been marked as a duplicate of this bug. ***