Bug 409167 - musl environment, running tasks and launchers do not appear on dock startup
Summary: musl environment, running tasks and launchers do not appear on dock startup
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: plasmoid (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Bart Ribbers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-25 10:25 UTC by Bart Ribbers
Modified: 2019-09-18 18:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
latte-dock -d --default-layout (23.96 KB, text/x-log)
2019-06-25 10:25 UTC, Bart Ribbers
Details
Desktop with Latte and systemsettings screenshot (1.38 MB, image/png)
2019-09-18 13:53 UTC, Bart Ribbers
Details
Screenshot of kcmshell5 qtquicksettings (49.77 KB, image/png)
2019-09-18 13:54 UTC, Bart Ribbers
Details
Screenshot of Latte settings with advanced mode enabled (2.22 MB, image/png)
2019-09-18 15:02 UTC, Bart Ribbers
Details
Screenshot of Latte with --default-layout (2.80 MB, image/png)
2019-09-18 17:24 UTC, Bart Ribbers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2019-06-25 10:25:33 UTC
Created attachment 121124 [details]
latte-dock -d --default-layout

SUMMARY
When launching latte-dock with some applications open, they do not show up. Only the default clock is shown. This happens on an Alpine Linux system, which uses musl rather than glibc.

STEPS TO REPRODUCE
1. Run latte-dock with a default config
2. Start any application

OBSERVED RESULT
No applications appear

EXPECTED RESULT
Running applications to appear so they can be pinned, closed, etc


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux
(available in About System)
KDE Plasma Version: 5.16.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2019-06-25 10:49:10 UTC
Running tasks and launchers are plasma libtaskmanager responsibility. Plasma panel and taskmanager works OK when you restart plasmashell?
Comment 2 Bart Ribbers 2019-06-25 10:52:25 UTC
After running "plasmashell --replace", yeah they work fine.
Comment 3 Michail Vourlakos 2019-06-25 11:03:48 UTC
no idea then, I am not a musl user
Comment 4 Bart Ribbers 2019-07-01 12:40:46 UTC
I think most people aren't, that doesn't mean this shouldn't be fixed. Is there anything I can do to debug this? The log doesn't show my anything useful really.

Tbh I doubt Musl is to blame here, I just though I should mention it to be sure.
Comment 5 Michail Vourlakos 2019-07-01 13:52:03 UTC
no problem for anyone to take up this task and provide patches for review
Comment 6 Michail Vourlakos 2019-08-15 10:15:40 UTC
1. Please check: https://bugs.kde.org/show_bug.cgi?id=410920
2. In musl enviroment do you work with software rendering for QML ?
3. To check that [2] is the issue you can disable Shadows from Effects page of Dock/Panel Settings
Comment 7 Michail Vourlakos 2019-08-17 08:07:00 UTC
waiting....
Comment 8 Bart Ribbers 2019-08-17 20:47:50 UTC
No need to bump it like that. It's holiday time and even then, I don't always have time to immediately respond to everything.

Anyways, yes QML runs with hardware acceleration and yes I tested it by disabling shadows in Latte. The launchers and running tasks did not appear.
Comment 9 Michail Vourlakos 2019-08-17 21:16:19 UTC
(In reply to Bart Ribbers from comment #8)
> No need to bump it like that. It's holiday time and even then, I don't
> always have time to immediately respond to everything.
> 

Don't worry, needs info state just needs a comment, does not accept empty commenting

> Anyways, yes QML runs with hardware acceleration and yes I tested it by
> disabling shadows in Latte. The launchers and running tasks did not appear.

OK, my guess is that for some reason visibility for tasks/launchers is not enabled after creation, by default is false until everything is ready to be drawn. For some reason that codepath breaks undel musl.
Comment 10 Michail Vourlakos 2019-08-17 21:17:20 UTC
reopening...
Comment 11 Michail Vourlakos 2019-08-18 13:32:09 UTC
Please also test latest master to confirm that this is still valid
Comment 12 Bart Ribbers 2019-08-18 17:55:47 UTC
Just built the latest master (from https://github.com/kde/latte-dock), the issue is still present.
Comment 13 Michail Vourlakos 2019-08-18 18:24:30 UTC
Ok, I would like the following screenshots please:

1. The entire screen including how Latte looks with the issue
2. Your Plasma systemsettings->Screen->Compositor screenshot
3. Run, kcmshell5 qtquicksettings, show me a screenshot of the window please
Comment 14 Michail Vourlakos 2019-09-18 12:41:58 UTC
info...
Comment 15 Bart Ribbers 2019-09-18 13:53:50 UTC
Created attachment 122701 [details]
Desktop with Latte and systemsettings screenshot

Sorry, I completely missed your previous comment.

My systemsettings with the Compositor window. In the bottom you can see a small dark bit, that's the only thing that appears of Latte Dock.
Comment 16 Bart Ribbers 2019-09-18 13:54:32 UTC
Created attachment 122702 [details]
Screenshot of kcmshell5 qtquicksettings

A screenshot of "kcmshell5 qtquicksettings".
Comment 17 Michail Vourlakos 2019-09-18 14:38:06 UTC
Can you please right click that dark rectangle on the bottom, Dock settings, advanced

and make a screenshot of dock settings please?
Comment 18 Bart Ribbers 2019-09-18 14:52:52 UTC
That's hard to do as the settings window closes the moment I press the screenshot button of Spectacle.
Comment 19 Michail Vourlakos 2019-09-18 14:57:35 UTC
(In reply to Bart Ribbers from comment #18)
> That's hard to do as the settings window closes the moment I press the
> screenshot button of Spectacle.

At the top right corner of the settings window there is a sticker button in order to not close when losing focus
Comment 20 Bart Ribbers 2019-09-18 15:02:08 UTC
Created attachment 122705 [details]
Screenshot of Latte settings with advanced mode enabled
Comment 21 Michail Vourlakos 2019-09-18 16:13:02 UTC
(In reply to Bart Ribbers from comment #20)
> Created attachment 122705 [details]
> Screenshot of Latte settings with advanced mode enabled

please run in cmd: latte-dock -v , what version does it appear?
Comment 22 Bart Ribbers 2019-09-18 16:30:26 UTC
I was using 0.8.9. I just updated it to 0.9.2 but the issue is still there.
Comment 23 Michail Vourlakos 2019-09-18 16:31:44 UTC
(In reply to Bart Ribbers from comment #22)
> I was using 0.8.9. I just updated it to 0.9.2 but the issue is still there.

one step at a time:
1. Close Latte
2. Run from cmd: latte-dock --default-layout

what is happening?
Comment 24 Bart Ribbers 2019-09-18 16:34:34 UTC
Latte dock appears with just the analog clock and not the running applications.
Comment 25 Michail Vourlakos 2019-09-18 17:21:06 UTC
(In reply to Bart Ribbers from comment #24)
> Latte dock appears with just the analog clock and not the running
> applications.

show me a screenshot of that state please
Comment 26 Bart Ribbers 2019-09-18 17:24:09 UTC
Created attachment 122710 [details]
Screenshot of Latte with --default-layout

Not sure what you were expecting, it's literally just the analog clock :p
Comment 27 Michail Vourlakos 2019-09-18 17:37:39 UTC
(In reply to Bart Ribbers from comment #26)
> Created attachment 122710 [details]
> Screenshot of Latte with --default-layout
> 
> Not sure what you were expecting, it's literally just the analog clock :p

1. Disable animations from Effects->Animations
2. restart Latte

same issue?
Comment 28 Bart Ribbers 2019-09-18 17:42:53 UTC
Yup, same issue.
Comment 29 Michail Vourlakos 2019-09-18 17:46:25 UTC
if you disable compositing for kwin, is it fixed?
Comment 30 Michail Vourlakos 2019-09-18 17:47:20 UTC
if you disable compositing for kwin and restart Latte afterwards is it fixed?
Comment 31 Bart Ribbers 2019-09-18 17:51:04 UTC
It is not. I'm not sure how this issue is related to animations or compositing?
Comment 32 Michail Vourlakos 2019-09-18 17:52:30 UTC
(In reply to Bart Ribbers from comment #31)
> It is not. I'm not sure how this issue is related to animations or
> compositing?

I am trying to understand what part of Latte Tasks plasmoid breaks under musl environment
Comment 33 Michail Vourlakos 2019-09-18 17:53:36 UTC
Would you like to have a live chat with me and help me to find out what breaks?
Comment 34 Michail Vourlakos 2019-09-18 17:59:26 UTC
more things to report back:

1. Close Latte and start it from cmd with: latte-dock -d 
and send please the output again to check for qml errors

2. Drag n' Drop from Plasma Widgets Explorer the Latte Tasks plasmoid on the desktop, same issue with launchers and tasks?
Comment 35 Bart Ribbers 2019-09-18 18:14:51 UTC
Actually, dragging Latte Tasks onto the desktop gave me a clue. '"org.kde.activities" not installed'. Installing kactivities and restarting Latte fixed it, now the launchers all appear! Interesting that this didn't appear in the log (with "-d"), I should've probably seen this sooner.

This took me way to long to figure out, thank you very much for your help!
Comment 36 Michail Vourlakos 2019-09-18 18:24:44 UTC
(In reply to Bart Ribbers from comment #35)
> Actually, dragging Latte Tasks onto the desktop gave me a clue.
> '"org.kde.activities" not installed'. Installing kactivities and restarting
> Latte fixed it, now the launchers all appear! Interesting that this didn't
> appear in the log (with "-d"), I should've probably seen this sooner.
> 
> This took me way to long to figure out, thank you very much for your help!


nice! Good to know, that it was just a missing library... Strange thing is that kactivities is also a requirement for plasma... there is a chance that this will fix you more issues
Comment 37 Bart Ribbers 2019-09-18 18:27:02 UTC
So far I have not encountered any issues like these. I expected stuff like the task manager applet to not work either but it did and I used that till I just now got Latte working. Will investigate!