Bug 400531 - Latte only shows an error and does not start properly
Summary: Latte only shows an error and does not start properly
Status: CLOSED DOWNSTREAM
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
: 400568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-31 22:00 UTC by Carl Draper
Modified: 2018-11-07 08:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (2.38 MB, image/png)
2018-10-31 22:00 UTC, Carl Draper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Draper 2018-10-31 22:00:38 UTC
Created attachment 116014 [details]
screenshot

SUMMARY


STEPS TO REPRODUCE
1. Run latte dock

OBSERVED RESULT

a blank panel appears with this error along it: 
Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:1830:26: ColorizerManager is not a type




EXPECTED RESULT
it should run...

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2018-11-01 05:23:47 UTC
How did you install Latte?
Comment 2 Michail Vourlakos 2018-11-01 05:23:55 UTC
How did you install Latte?
Comment 3 Michail Vourlakos 2018-11-01 06:11:37 UTC
I double checked in my system v0.8.2 and git version. I removed everything and reinstalled them. They both work properly.

You seem to have a broken installation, so how did you install Latte?
Comment 4 Carl Draper 2018-11-01 15:27:48 UTC
(In reply to Michail Vourlakos from comment #2)
> How did you install Latte?

originally i used a third party repo but i then reinstalled with the deb file, made no difference
Comment 5 Carl Draper 2018-11-01 15:33:06 UTC
(In reply to Michail Vourlakos from comment #3)
> I double checked in my system v0.8.2 and git version. I removed everything
> and reinstalled them. They both work properly.
> 
> You seem to have a broken installation, so how did you install Latte?

I seem to recall Latte stopped working for me after upgrading Neon from 16.04 to 18.04 base.
Comment 6 Michail Vourlakos 2018-11-01 16:12:49 UTC
(In reply to Carl Draper from comment #5)
> (In reply to Michail Vourlakos from comment #3)
> > I double checked in my system v0.8.2 and git version. I removed everything
> > and reinstalled them. They both work properly.
> > 
> > You seem to have a broken installation, so how did you install Latte?
> 
> I seem to recall Latte stopped working for me after upgrading Neon from
> 16.04 to 18.04 base.

this is probably a distro issue.
Please contact with them in order to guide you how to fix this...
Comment 7 Michail Vourlakos 2018-11-02 05:23:33 UTC
*** Bug 400568 has been marked as a duplicate of this bug. ***
Comment 8 Fernando 2018-11-02 11:51:35 UTC
Hello! I have the same issue, reinstalled latte-dock from old repo and new KDE repo. The issue persists! My distro is Kubuntu.
Comment 9 Michail Vourlakos 2018-11-02 12:11:38 UTC
(In reply to Fernando from comment #8)
> Hello! I have the same issue, reinstalled latte-dock from old repo and new
> KDE repo. The issue persists! My distro is Kubuntu.

https://bugs.launchpad.net/ubuntu/+source/latte-dock/+bug/1801290
Comment 10 Michail Vourlakos 2018-11-06 21:17:28 UTC
Kubuntu devs propose to clear the qmlcache:

https://bugs.launchpad.net/ubuntu/+source/latte-dock/+bug/1801290
Comment 11 Fernando 2018-11-06 21:26:56 UTC
(In reply to Michail Vourlakos from comment #10)
> Kubuntu devs propose to clear the qmlcache:
> 
> https://bugs.launchpad.net/ubuntu/+source/latte-dock/+bug/1801290

It worked, thanks a lot! I recommend the following command to reset the dock:
$ latte-dock --default-layout --replace
Comment 12 Rik Mills 2018-11-07 08:20:15 UTC
If the issue is that latte cannot run with a stale qml cache in ~/.cache/lattedock/qmlcache/ then this is an upstream KDE issue that cannot be addressed in distro packaging. We can't and shouldn't act on any file in a user home when doing a package upgrade via sudo/admin. This should be fixed by KDE by having latte detect that it is being run for the first time by a user after a version upgrade, and at that point removing or modifying the cache with that user's privileges.
Comment 13 Michail Vourlakos 2018-11-07 08:47:10 UTC
(In reply to Rik Mills from comment #12)
> If the issue is that latte cannot run with a stale qml cache in
> ~/.cache/lattedock/qmlcache/ then this is an upstream KDE issue that cannot
> be addressed in distro packaging. We can't and shouldn't act on any file in
> a user home when doing a package upgrade via sudo/admin. This should be
> fixed by KDE by having latte detect that it is being run for the first time
> by a user after a version upgrade, and at that point removing or modifying
> the cache with that user's privileges.

if you have any idea how to do that in Latte, feel free to send a patch,
my important question of course is why this is not needed from plasmashell
Comment 14 Rik Mills 2018-11-07 08:53:43 UTC
(In reply to Michail Vourlakos from comment #13)
> if you have any idea how to do that in Latte, feel free to send a patch,
> my important question of course is why this is not needed from plasmashell

I have no idea sadly. I don't know what is specific and different about the latte code that is causing this.