Bug 413939

Summary: Memory leak on file managers
Product: [Applications] dolphin Reporter: goliash
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: elvis.angelaccio, kfm-devel, knut.hildebrandt
Priority: NOR    
Version: 19.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Heaptrack screenshots

Description goliash 2019-11-08 10:02:04 UTC
Created attachment 123790 [details]
Heaptrack screenshots

SUMMARY
Dolphin's heap grows in time even if it runs on background and no actions are done. The same occurs on Krusader. The memory usage grows to gigabytes after several hours.

STEPS TO REPRODUCE
1. Run Dolphin
2. Wait
3. Mark memory usage
4. Wait more
5. Notice the memory usage is higher
6. Repeat steps 3-5

OBSERVED RESULT
Memory usage grows in time and it doesn't stop at any time

EXPECTED RESULT
Memory usage should remain stable if nothing is happening with application

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.0.0-32
(available in About System)
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
This has been appearing for months now. The application (Dolphin/Krusader) gets laggy in time and it has to be restarted to be able to be used.

I am running KDE Neon User Ed. with HWE.

--------------------------------
Process 23931 - dolphin
Summary
The process dolphin (with pid 23931) is using approximately 360.5 MB of memory.
It is using 350.6 MB privately, and a further 74.7 MB that is, or could be, shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we get a reduced shared memory usage of 9.8 MB. Adding that to the private usage, we get the above mentioned total memory footprint of 360.5 MB.
Library Usage
The memory usage of a process is found by adding up the memory usage of each of its libraries, plus the process's own heap, stack and any other mappings, plus the stack of its 6 threads. 
Private
more
348808 KB	[heap]
1068 KB	/usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5.0.0
888 KB	/usr/lib/x86_64-linux-gnu/dri/i965_dri.so
852 KB	/usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
848 KB	/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.13.1
Shared
more
13812 KB	/dev/shm/#153 (deleted)
4980 KB	/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.13.1
4644 KB	/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.13.1
4168 KB	/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.13.1
2392 KB	/usr/lib/x86_64-linux-gnu/dri/i965_dri.so
Comment 1 Elvis Angelaccio 2019-11-09 14:32:16 UTC

*** This bug has been marked as a duplicate of bug 398908 ***