Bug 441079

Summary: Plasmashell memory leak when using slideshow
Product: [Plasma] plasmashell Reporter: temporis56
Component: Image WallpaperAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: 8p9gce0j8, joseph, kde, nate, plasma-bugs, qydwhotmail
Priority: NOR Keywords: efficiency
Version: 5.20.4   
Target Milestone: 1.0   
Platform: Mageia RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=371455
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description temporis56 2021-08-17 11:10:37 UTC
SUMMARY
Description of problem:
- Memory leak of the plasmashell process when using a slideshow 

Version-Release number of selected component :
- KDE Plasma 5.20.4
- One desktop, 4 activities including a slideshow
- KDE Frameworks 5.76.0
- Qt 5.15.2
- Kernel 5.10.56-desktop-1.mga8
- OS 64-bit
- 16 Go RAM

STEPS TO REPRODUCE
1. create a folder containing two big pictures
2. create 4 activities with a slideshow (time 15s) pointing to the picture folder
3. log out then log in
4. visit all activities one time to start the leak
5. survey the memory consumption with the plasmoid

OBSERVED RESULT
Plasmashell's memory occupation increases continuously and finally crash

EXPECTED RESULT
Memory consumption must be stable

SOFTWARE/OS VERSIONS
- Linux Mageia8
- KDE Plasma 5.20.4
- One desktop, 4 activities including a slideshow
- KDE Frameworks 5.76.0
- Qt 5.15.2
- Kernel 5.10.56-desktop-1-1.mga8
- OS 64-bit
- 16 Go RAM

ADDITIONAL INFORMATION
Workarounds
- Selecting a static background image as a replacement for the slideshow fixes the problem
- I have launched kcmshell5 qtquicksettings 
set Render loop to "Basic"
and Rendering backend to "Software".
I noticed a degradation of the Plasma rendering : I can no longer see the text below my desktop icons, only the picture, but it stopped the leak. 
I can no longer reproduce the leak problem. Everything looks stable.

What is the explanation ?
Which software is the culprit ?
Which software updates should I inform the Mageia KDE maintainers to fix the issue?
Comment 1 Nate Graham 2021-08-29 23:42:50 UTC
If you use the default (threaded) render loop and hardware rendering, does it make a difference?
Comment 2 temporis56 2021-08-30 05:04:09 UTC
There are three modes in hardware rendering : automatic, open GL and software.
There are three modes in loop rendering : automatic, basic and thread.

The thread loop rendering causes a crash to my system. I cannot use it.
With the default mode (both automatic), there is a memory leak.
Comment 3 Nate Graham 2021-08-30 05:07:28 UTC
What crash? Have you filed a bug report for that?
Comment 4 temporis56 2021-08-30 05:20:47 UTC
When I use the thread loop rendering, about 10 seconds after the log in, my system entirely freezes. Even Ctrl+alt+Supp is not responding. I must reset to restart.
I have not filed a bug report since I never use the thread mode.
Comment 5 Nate Graham 2021-09-16 17:38:38 UTC
*** Bug 442432 has been marked as a duplicate of this bug. ***
Comment 6 Fushan Wen 2022-06-10 01:46:44 UTC
Can you still reproduce the bug on the latest version?
Comment 7 8p9gce0j8 2022-06-10 01:50:41 UTC
(In reply to Fushan Wen from comment #6)
> Can you still reproduce the bug on the latest version?

No it appears that my issue has gone away. I can't say definitively which version fixed it but it is no longer a problem/
Comment 8 Fushan Wen 2022-06-10 02:09:23 UTC
Thanks for the information