Bug 456169

Summary: Memory leak in dolphin
Product: [Applications] dolphin Reporter: Crone123 <valentin>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 2GB of memory just to display an empty folder...

Description Crone123 2022-06-30 13:54:22 UTC
SUMMARY

If you use your computer for a long time, with dolphin opened, like, some days with sleeps everyday, dolphin will take a lot of memory, like multiple GB of ram/swap even with only one tab opened and very few files in it.
I do that for working, and I have to kill dolphin regularly, because it takes regularly a lot of RAM.

STEPS TO REPRODUCE
1. Open dolphin
2. Let it run for a long time, by working on the computer with or without using it
3. Open ksysguard a long time later, you will see that dolphin is taking a lot of ram, sometimes the whole memory (more than 15GB) for just one tab opened, with nothing in it...

OBSERVED RESULT
Dolphin takes more and more memory over the time, until consuming all the memory, my computer already crashed because of that after some weeks.

EXPECTED RESULT
Dolphin should use a stable amount of memory, and release what it didn't use.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version:  5.93.0
Qt Version: 5.15.3
KDE Neon: 5.24
Graphics: X11
Linux: 5.13.0-41

ADDITIONAL INFORMATION
Comment 1 Crone123 2022-08-09 12:19:17 UTC
Created attachment 151191 [details]
2GB of memory just to display an empty folder...

It seems this bug happen after generating a lot of thumbnails, and even by closing all the tabs, the memory is not freed.
Comment 2 Crone123 2022-08-29 09:46:56 UTC
Note: This also seems to affect kate, I suspect there is a bug with the widget that display the view of the filesystem. I think there is a memory leak in the system that detect if there is changes or not in the filesystem.