Bug 421461

Summary: plasmashell memory spike and lag when removing wallpapers from Desktop-Settings menu
Product: [Plasma] plasmashell Reporter: kp <pilkie01>
Component: Image & Slideshow wallpaper pluginsAssignee: Marco Martin <notmart>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.18.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kp 2020-05-13 13:16:23 UTC
SUMMARY
When removing a large number of wallpapers from the Desktop-settings menu (right click on desktop > Configure desktop) the RAM usage for plasmashell jumps to over a gigabyte and the plasma shell slows down until *something* is done loading into RAM.

STEPS TO REPRODUCE
1. Add a folder full of wallpapers (My folder has 120 wallpapers in it)
2. Remove said wallpapers all at once. (click the red trashbin icon)
3. Click [OK]

OBSERVED RESULT
When having KSysGuard open you can see plasmashell accumulating RAM (in my case until about 2,5 GB) and the shell slows down/gets leggy until this is done. The RAM stays filled like this until the computer is rebooted.

EXPECTED RESULT
Barely, if any increased RAM usage, and no slowdowns.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04 / Plasma 5.18.4
(available in About System)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Tried this on 2 different computers, same software, different hardware, happens on both.
Comment 1 Nate Graham 2020-11-19 20:25:22 UTC
How are you removing all wallpapers at once? You can remove a folder in the sidebar for the slideshow plugin, and you can remove individual wallpapers from the image plugin one at a time, but I'm not aware of a way to remove many at once. Can you clarify?
Comment 2 Bug Janitor Service 2020-12-04 04:34:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-12-19 04:35:48 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!