Bug 416724

Summary: Latte dock consumes all free memory available and wont open
Product: [Unmaintained] lattedock Reporter: Mohammad <mj19922007>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: mj19922007
Priority: NOR    
Version First Reported In: 0.9.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: System monitor
Dock

Description Mohammad 2020-01-25 05:36:27 UTC
Created attachment 125386 [details]
System monitor

SUMMARY
When I click to open latte dock it drain all free memory and it wont open. I have to kill the process to stop it

STEPS TO REPRODUCE
1. Launch latte-dock
2. Open System monitor to observe application behavior
3. See latte-dock drain all free memory
4. Kill the process.

OBSERVED RESULT
See latte-dock drain all free memory and wont open at all.

EXPECTED RESULT
The program open and run normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2020-01-25 07:29:58 UTC
How much memory?
Comment 2 Michail Vourlakos 2020-01-25 07:50:22 UTC
Waiting memory information
Comment 3 Mohammad 2020-01-25 11:40:14 UTC
(In reply to Michail Vourlakos from comment #1)
> How much memory?

It is shown in screenshot attached.
Till memory goes full.
Comment 4 Michail Vourlakos 2020-01-25 11:48:22 UTC
that is a memory leak and probably comes from one of your plasma applets, try the following:

1. Close Latte
2. Run from terminal: latte-dock --default-layout

Does it still occur for you?
Comment 5 Mohammad 2020-01-25 12:42:12 UTC
Created attachment 125394 [details]
Dock
Comment 6 Mohammad 2020-01-25 12:43:48 UTC
(In reply to Michail Vourlakos from comment #4)
> that is a memory leak and probably comes from one of your plasma applets,
> try the following:
> 
> 1. Close Latte
> 2. Run from terminal: latte-dock --default-layout
> 
> Does it still occur for you?

Dock launched this time in a strange way as you can see in my second screenshot.
And memory usage still goes up continuously but in a low pace.
Comment 7 Michail Vourlakos 2020-01-25 13:19:33 UTC
(In reply to Mohammad from comment #6)
> (In reply to Michail Vourlakos from comment #4)
> > that is a memory leak and probably comes from one of your plasma applets,
> > try the following:
> > 
> > 1. Close Latte
> > 2. Run from terminal: latte-dock --default-layout
> > 
> > Does it still occur for you?
> 
> Dock launched this time in a strange way as you can see in my second
> screenshot.

This is another issue... Open a different bug report

> And memory usage still goes up continuously but in a low pace.

Metrics please, going up means nothing without metrics, how much up?
Comment 8 Mohammad 2020-01-26 04:16:18 UTC
(In reply to Michail Vourlakos from comment #7)

> > Metrics please, going up means nothing without metrics, how much up?

After tring few times it is now like before, It goes up till my memory is full. ~ 12GB-14GB

> > 2. Run from terminal: latte-dock --default-layout

Something interesting, when I sudo this command the dock launch normally and without memory consumption.
Comment 9 Michail Vourlakos 2020-01-26 08:04:02 UTC
Things to try:

A. CLEAR CACHE

1. Close Latte
2. Run from terminal "latte-doc --cc"
3. Start Latte

B. REMOVE ALL LATTE CONFIGURATION

1. Close Latte
2. Remove file "~/.config/lattedockrc"
3. Remove directory "~/.config/latte
4. Start Latte

C. PROVIDE SYSTEM CONFIGURATION

1. Run in terminal command "env"
2. Provide here the output of [C1]

D. PROVIDE DEBUG WINDOW SCREENSHOT

1. Close Latte
2. Run from terminal "latte-dock -d --with-window"
3. Start Latte
4. If the issue still appears please provide a screenshot of your entire desktop including the new provided debug window
Comment 10 Mohammad 2020-01-26 09:31:52 UTC
(In reply to Michail Vourlakos from comment #9)
> Things to try:
> 
> A. CLEAR CACHE
> 
> 1. Close Latte
> 2. Run from terminal "latte-doc --cc"
> 3. Start Latte

Clear cache fixes the problem.
Thanks for the help.