Bug 394962 - Wallpaper slideshow fills memory
Summary: Wallpaper slideshow fills memory
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: 5.12.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-02 16:18 UTC by DeMus
Modified: 2018-06-11 07:59 UTC (History)
3 users (show)

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


Attachments
Desktop with Conky and Kinfo-screen (1.13 MB, image/png)
2018-06-02 16:18 UTC, DeMus
Details
System monitor (17.24 KB, image/png)
2018-06-03 06:59 UTC, DeMus
Details
Massif file (182.67 KB, text/plain)
2018-06-03 08:03 UTC, DeMus
Details
2nd test with valgrind --tool=massif plasmashell (74.49 KB, text/plain)
2018-06-03 08:35 UTC, DeMus
Details
Start of 5 minute test with interval of 5 sec. (272.51 KB, image/png)
2018-06-09 07:40 UTC, DeMus
Details
End of 5 minutes test (279.33 KB, image/png)
2018-06-09 07:41 UTC, DeMus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DeMus 2018-06-02 16:18:55 UTC
Created attachment 113017 [details]
Desktop with Conky and Kinfo-screen

Hi,
Just tried the slidewhow again, now with KDE Plasma 5.12.5, Frameworks 5.46 and Qt5.11. Eventhough, as was said, the memoryleak would have been taken care off, I'm sorry to say but it's still there.
When my laptop starts it consumes around 800MB of memory. With a slideshow changing time of 5 sec. it was not long when I had used 2GB already. No other programs started, except which was running all the time: Conky to show me the increase in memory.
Comment 1 David Edmundson 2018-06-02 18:24:48 UTC
Please confirm that Qt version number in kinfocenter.

If you still  have an issue I want to see a trace in massif.
Comment 2 DeMus 2018-06-03 06:59:26 UTC
Created attachment 113027 [details]
System monitor

I added a screenshot of the Kinfo center in my first post, you can see it there.

What does this mean: 
If you still  have an issue I want to see a trace in massif. 

I add another screenshot, now from system-monitor, on which you can see that the blue memory line is not changing much anymore (I have 4GB) but the red Swap line is constantly getting higher.
Comment 3 David Edmundson 2018-06-03 07:28:00 UTC
run

kquitapp5 plasmashell
valgrind --tool=massif plasmashell

(it will be a bit slow, but try to keep it running and reproduce the leak)

then send me a log
Comment 4 DeMus 2018-06-03 08:02:24 UTC
1) I installed valgrind and massif-visualizer
2) I then typed both commands in a terminal
3) Changed wallpaper to slideshow, refresh time 1 sec to speed things up
4) In the Conky on my screen I see NO increase in memory use
5) With ctrl-C I stopped the valgrind command
6) I then typed plasmashell to get my desktop, slideshow is still active
7) NO memory inscrease
8) Stopped the plasmashell command
9) Rebooted
10) Memory is filling rapidly, slideshow is still active, refreshtime is 1 sec.

Found the massive fie, attach it.
Comment 5 DeMus 2018-06-03 08:03:14 UTC
Created attachment 113028 [details]
Massif file

Massif file
Comment 6 DeMus 2018-06-03 08:35:28 UTC
Created attachment 113031 [details]
2nd test with valgrind --tool=massif plasmashell

I've done the test again, now a bit longer but when plasmashell is started from a terminal, with or without valgrind, there is no memory increase at all.
When I reboot and plasmashell is started the normal way, memory fills up.
Comment 7 DeMus 2018-06-09 07:40:14 UTC
Created attachment 113160 [details]
Start of 5 minute test with interval of 5 sec.

I did a 5 minute test with the slideshow active. In the two pictures you can see the memory use at the bottom left of the pictures. As you can see the second one is almost double ofthe first one. Nothing was done with the machine, no programs were started or whatever, I just sat in front of the screen for 5 minutes watching the memory use go up with every change of the pictures.
Comment 8 DeMus 2018-06-09 07:41:23 UTC
Created attachment 113161 [details]
End of 5 minutes test

This is the 2nd picture, taken 5 minutes after the first one.
I also show Kinfocenter to show I do use Qt5.11
Memory use is almost double of that in the first picture.
Comment 9 DeMus 2018-06-10 20:53:54 UTC
I did a complete re-install of the OS and now the error with the wallpaper slideshow is gone. No idea what is different now.
This bug can be closed now. Thanks.
Comment 10 David Edmundson 2018-06-11 07:59:07 UTC
:/

Ok, let me know if it happens again.