Bug 421697

Summary: [Tasks] - disappear when scrolling is enabled in Fedora or Kubuntu
Product: [Unmaintained] lattedock Reporter: Tyler Brown <tyler>
Component: plasmoidAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Desktop with application open not showing in Tasks.
Layout File
Recording of tasks disappearing.
LatteScrollOff
Latte Scroll On
Reproduced from a clean layout.

Description Tyler Brown 2020-05-17 21:30:18 UTC
Created attachment 128557 [details]
Desktop with application open not showing in Tasks.

SUMMARY


STEPS TO REPRODUCE
1. Go into the Tasks Tab of Settings
2. Enable Scrolling
3. 

OBSERVED RESULT
Tasks disappear 

EXPECTED RESULT
Scrolling should be enabled

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 32 KDE / 5.6.11-300.fc32.x86_64
(available in About System)
KDE Plasma Version: Plasma 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.13.2
Latte Dock: Latest Git build as of 2020-05-17 16:29 CDT.

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2020-05-17 22:55:53 UTC
You need to find more information, it works just fine in my Latte git version
Comment 2 Michail Vourlakos 2020-05-17 22:57:04 UTC
Send also your Latte layout file in case something is broken in it.
Comment 3 Tyler Brown 2020-05-17 23:08:54 UTC
Created attachment 128558 [details]
Layout File

My current layout file as if this moment.
Comment 4 Tyler Brown 2020-05-17 23:19:24 UTC
I am able to reproduce this with a new default layout. I'm also not seeing anything weird when I toggle the setting when launching Latte Dock from the terminal with the debug flag.
Comment 5 Tyler Brown 2020-05-17 23:38:18 UTC
Created attachment 128559 [details]
Recording of tasks disappearing.
Comment 6 Michail Vourlakos 2020-05-18 07:11:14 UTC
your layout works fine in my system. How do you install Latte ?
Comment 7 Tyler Brown 2020-05-18 07:30:50 UTC
I clone it from here and run the install script: https://phabricator.kde.org/source/latte-dock/
Comment 8 Michail Vourlakos 2020-05-18 07:49:58 UTC
Try the following:

1. Close Latte
2. Remove everything in:
   - /usr/share/plasma/plasmoids/org.kde.latte.plasmoid
   - /usr/share/plasma/plasmoids/org.kde.latte.containment
3. Reinstall Latte
4. Run it

and checkout if you still have the same issue
Comment 9 Tyler Brown 2020-05-18 08:40:33 UTC
The issue still remains after removing those directories and reinstalling Latte Dock.
Comment 10 Michail Vourlakos 2020-05-18 08:46:08 UTC
so strange, I wonder what can be different in your system and that does not occur in mine.
Comment 11 Michail Vourlakos 2020-05-18 08:48:01 UTC
We can try the following:

1. Move your left panel at the bottom
2. Close Latte
3. Start Latte with: latte-dock -d --layouter
4. Metrics will appear for each applet, layout etc...
5. Can you make a screenshot? do you notice something in the metrics that it is strange?
Comment 12 Michail Vourlakos 2020-05-18 08:49:02 UTC
or maybe better run Latte with:

latte-dock -d --layouter --graphcs

it will provide also visual debugging for each applet
Comment 13 Michail Vourlakos 2020-05-18 08:49:14 UTC
latte-dock -d --layouter --graphics
Comment 14 Tyler Brown 2020-05-18 09:07:01 UTC
Created attachment 128568 [details]
LatteScrollOff
Comment 15 Tyler Brown 2020-05-18 09:07:22 UTC
Created attachment 128569 [details]
Latte Scroll On
Comment 16 Tyler Brown 2020-05-18 10:46:31 UTC
On my openSUSE Tumbleweed desktop where I'm running the latest git version from trmdi's OBS repo I'm not having this issue, in fact it's working perfectly. 

Information for package latte-dock:
-----------------------------------
Repository     : home:trmdi
Name           : latte-dock
Version        : 999.git.20200517.b264854a-465.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/home:trmdi
Installed Size : 3.4 MiB
Installed      : Yes
Status         : up-to-date
Source package : latte-dock-999.git.20200517.b264854a-465.1.src
Summary        : Task manager
 

On both of my Fedora laptops I went through and made sure all the necessary devel packages were installed, and I'm not getting any warning that anything is missing when I'm running the install script.
Comment 17 Tyler Brown 2020-05-18 12:04:22 UTC
Another update: Tried building from the script on Kubuntu 20.04, all required dev packages installed, same issue occurs when enabling scrolling.
Comment 18 Michail Vourlakos 2020-05-18 12:11:17 UTC
try to remove everything in : /usr/lib64/qt5/qml/org/kde/latte/
and reinstall Latte, does it still occur?
Comment 19 Michail Vourlakos 2020-05-18 12:11:35 UTC
waiting feedback
Comment 20 Tyler Brown 2020-05-18 12:25:19 UTC
(In reply to Michail Vourlakos from comment #18)
> try to remove everything in : /usr/lib64/qt5/qml/org/kde/latte/
> and reinstall Latte, does it still occur?

Purged that directory and reinstalled using the install script, did not work, issue still occurring on both Fedora 32 and Kubuntu 20.04.
Comment 21 Michail Vourlakos 2020-05-18 13:24:50 UTC
(In reply to Tyler Brown from comment #17)
> Another update: Tried building from the script on Kubuntu 20.04, all
> required dev packages installed, same issue occurs when enabling scrolling.

I am out of ideas
Comment 22 Tyler Brown 2020-05-18 20:54:19 UTC
Some more testing around and I found that playing with the min/max length of the panel will impact whether or not the Latte Tasks disappears. 

1. If the min and max value match then it disappears. 
2. If I keep opening applications it will actually proceed to ignore the max and just keep growing the panel instead of shrinking. 
3. If the min is set to 100% or it's set to panel mode using justified then Latte Tasks disappears.
Comment 23 Michail Vourlakos 2020-05-18 22:29:15 UTC
(In reply to Tyler Brown from comment #22)
> Some more testing around and I found that playing with the min/max length of
> the panel will impact whether or not the Latte Tasks disappears. 
> 
> 1. If the min and max value match then it disappears. 
> 2. If I keep opening applications it will actually proceed to ignore the max
> and just keep growing the panel instead of shrinking. 
> 3. If the min is set to 100% or it's set to panel mode using justified then
> Latte Tasks disappears.

from all three I can not replicate any in my system. We need a concrete way to reproduce in my system:

1. Add a new Dock from Dock Settings
2. Send here in for new Dock step by step how you can replicate the issue
Comment 24 Tyler Brown 2020-05-19 03:17:34 UTC
Created attachment 128591 [details]
Reproduced from a clean layout.

Reproducing the issue from a clean layout.
Comment 25 Tyler Brown 2020-05-19 04:39:53 UTC
So far I run into this issue when I pull from git and run the install script on Kubuntu 20.04 and Fedora 32 KDE. For the hell of it I decided to do the same on my openSUSE Tumbleweed desktop and it works just fine.


Is there something out of date on Kubuntu 20.04 or Fedora 32 that would be causing any build issues? I've got all the dependencies listed on Phabricator so I it's not throwing any complaints that I'm missing anything that the documentation requires of me.
Comment 26 Michail Vourlakos 2020-05-19 06:44:34 UTC
(In reply to Tyler Brown from comment #25)
> So far I run into this issue when I pull from git and run the install script
> on Kubuntu 20.04 and Fedora 32 KDE. For the hell of it I decided to do the
> same on my openSUSE Tumbleweed desktop and it works just fine.
> 
> 
> Is there something out of date on Kubuntu 20.04 or Fedora 32 that would be
> causing any build issues? I've got all the dependencies listed on
> Phabricator so I it's not throwing any complaints that I'm missing anything
> that the documentation requires of me.

probably qt 5.13. but my system is Tumbleweed so I can not reproduce. Such issues are difficult to fix. Either I have to install the problematic distro and check out what is going on OR another developer that is using them will search the issue.
Comment 27 Michail Vourlakos 2021-03-06 16:49:37 UTC
these should be fixed with current latest git version.