Bug 424814 - Group widget creates huge memory leak
Summary: Group widget creates huge memory leak
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-30 02:01 UTC by Andres
Modified: 2020-08-19 14:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
latte layout (28.54 KB, text/plain)
2020-07-30 02:04 UTC, Andres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres 2020-07-30 02:01:33 UTC
SUMMARY
latte dock is was causing my system to hang on startup. I quickly switched to a try upon startup and ran a htop to see if I can figure anything out and latte dock was using 17GB of ram. I uninstalled latte-dock and there are no more hangs


STEPS TO REPRODUCE
Im going to list the last thing I was doing in latte dock as this happened after I tried adding some widgets so it could be that

1.  found out grouping widget works in latte now
2. added grouping widget to side bar in the moe layout
3. added a few widgets to monitor temps, disk space, and netspeeds as well as a few systems controls like Bluetooth

OBSERVED RESULT
 latte uses 17GB of ram causing the system to hang

EXPECTED RESULT
Latte use a few hundred MB of ram 1GB at most

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.10-21-tkg-pds
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GTX 1080/PCIe/SSE2

ADDITIONAL INFORMATION
here are some logs and other system info
https://linux-hardware.org/?probe=5a9eaee02e
Comment 1 Andres 2020-07-30 02:04:14 UTC
Created attachment 130499 [details]
latte layout
Comment 2 Michail Vourlakos 2020-07-30 05:29:26 UTC
Can you reproduce with Latte default layout?
Comment 3 Michail Vourlakos 2020-07-30 05:34:46 UTC
I suppose you can also add your widgets one by one until you find out which widget is causing this. Latte can not take responsibility for widgets malfunctioning.
Comment 4 Andres 2020-07-30 13:29:20 UTC
(In reply to Michail Vourlakos from comment #3)
> I suppose you can also add your widgets one by one until you find out which
> widget is causing this. Latte can not take responsibility for widgets
> malfunctioning.

it should if the widget only malfunctions in latte-dock and not in a plasma panel like it is the case with the grouping widget.

is there a way to remove the side pannel from the config file? so that I can fix this problem without having to delete my whole config?
Comment 5 Michail Vourlakos 2020-07-30 14:00:03 UTC
Group widget is a strange situation because it is considered a containment, like the systray case... So in Multiple Layouts mode is not supported at all yet. In Single layout mode I have no idea what is its behavior. Personally I dont even care, it will be the last thing I will take a look after all the other v0.10 requirements have been implemented.

1. Are you sure the memory leak occurs because of Group widget?
2. Either you will remove the relevant containment in the layout file manually, or you will remove the entire dock/panel that creates the issue after Latte has been loaded through, right click Dock->Edit Dock->Remove
Comment 6 Andres 2020-07-30 14:11:44 UTC
Yeah I figured out how to remove it I just deleted all the containment sections that mentioned the widgets. And I tried adding them all again first without the group ing we widget and then with.... And no issues this time everything works. I'm using a single layout not multiple. So I guess either something didn't get written correctly to the layout the first time around or idk. Anyway everything works now and I'm using the grouping widget just fine

What should I mark the issue as ?
Comment 7 Michail Vourlakos 2020-07-30 14:29:36 UTC
leave it open and in case you find exact steps to reproduce please report back.

After 2-3 months if there are no more information it will be closed.
Comment 8 Michail Vourlakos 2020-08-19 14:03:30 UTC
the Group applet with latest commits is now supported also for Multiple Layouts mode... So this bug needs to be updated in case it is still valid...