Bug 413354 - Memory leak
Summary: Memory leak
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: 5.17.1
Platform: Manjaro Linux
: NOR minor
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 09:50 UTC by Andrius
Modified: 2019-10-25 18:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2019-10-23 09:50:05 UTC
SUMMARY
Huge memory leak when using wallpaper type: picture of the day, provider: astronomy picture of the day

STEPS TO REPRODUCE
1. Set wallpaper type to picture of the day
2. set provider to Astronomy Picture of the Day
3. click Apply

OBSERVED RESULT
plasmashell memory usage grows to ~3 GB in a few seconds


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
Memory usage drops to normal if wallpaper type is set back to Image
Comment 1 Andrius 2019-10-23 18:55:25 UTC
EDIT: Also happens in Plasma 5.17.1 with KDE Frameworks 5.63
Comment 2 Daniel Biagi 2019-10-24 13:33:15 UTC
I have also the same issue and tried removing all widgets and reverting the theme back to Breeze before coming to your bug report.
Changing the wallpaper to solid colors really did fix it for me also.

OBSERVED RESULT
plasmashell memory leak when using pic of the day: astronomy.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Tumbleweed KDE
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel: 5.3.6-1
Comment 3 Daniel Biagi 2019-10-24 14:27:49 UTC
I think that maybe under "KDE/kdeplasma-addons/blob/master/dataengines/potd/apodprovider.cpp" at pageRequestFinished there's a missing return statement at the end, but I could be wrong.
Comment 4 David Edmundson 2019-10-24 14:37:16 UTC
missing where?
Comment 5 Daniel Biagi 2019-10-25 01:55:24 UTC
Nevermind, at least for me it was fixed after today's update
Comment 6 Andrius 2019-10-25 18:04:04 UTC
Still the same for me
Comment 7 Andrius 2019-10-25 18:06:21 UTC
Strange: when I first set the wallpaper as "Astronomy Picture of the Day", RAM and CPU spikes for a minute or so, but then drops to normal.