Bug 426792 - ksysguard leaking some memory
Summary: ksysguard leaking some memory
Status: RESOLVED DUPLICATE of bug 428048
Alias: None
Product: ksysguard
Classification: Applications
Component: libksysguard (show other bugs)
Version: 5.19.90
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 05:33 UTC by Ömer Fadıl USTA
Modified: 2020-11-19 22:58 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Valgrind log (1.20 MB, text/plain)
2020-09-21 05:34 UTC, Ömer Fadıl USTA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ömer Fadıl USTA 2020-09-21 05:33:05 UTC
SUMMARY
When ksysguard launched it is about 20mb ram usage but after a while ( within half hour) it became 400mb usage


STEPS TO REPRODUCE
1. run ksysguard
2. wait about half hour
3. (if you want to see faster result just open some cpu intensive applications or do some travel around hard drive with dolphin )
 

OBSERVED RESULT
It reaches ~ 400 mb ram usage

EXPECTED RESULT
It must be around 20 - 30 mb usage


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Latest git version 
KDE Plasma Version: Latest git version ( 5.19.90 )
KDE Frameworks Version: Latest git version ( 5.75 )
Qt Version: Qt 5.15 branch compiled from git ( 5.15.1 )

ADDITIONAL INFORMATION
valgrind logs added
Comment 1 Ömer Fadıl USTA 2020-09-21 05:34:41 UTC
Created attachment 131820 [details]
Valgrind log
Comment 2 Andrew M 2020-10-22 04:05:10 UTC
Still a problem in 5.20.0
Also a problem for the systemmonitor (System Activity) spawned from Ctrl+Esc

Leaving them both open overnight can lead to over 1 GiB of usage.
Current usage after leaving it on overnight:
ksysguard: 1.9 G
systemmonitor: 1.4 G
Comment 3 Umbertho dellarojadecanariaportedelacruzkarrrrrdinalll 2020-10-23 01:56:27 UTC
Same story for me:


Plasma 5.20.1
Frameworks 5.75.0
Qt 5.15.1

Memory used by KSysGuard will steadily increase and can reach 2GiB overnight.

Also note https://bugs.kde.org/show_bug.cgi?id=428048 as a possible duplicate of this bug.
Comment 4 Umbertho dellarojadecanariaportedelacruzkarrrrrdinalll 2020-10-24 04:58:43 UTC
https://github.com/KDE/libksysguard/commit/23852597c642a5c5303bb994d4d28e20d9c863cb will not compile for me with "error: ‘Updates’ in ‘class KSysGuard::Process’ does not name a type" - like errors



https://github.com/KDE/libksysguard/commit/40cb8d6acbb12e516c1d327a9b2574560adcb4ec is Ok for me,later commits have KSysGuard run away with my memory
Comment 5 Patrick Silva 2020-11-19 22:58:24 UTC

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