Bug 426119 - Latte-Dock 0.9.86 on kubuntu 20.04 qml loading error
Summary: Latte-Dock 0.9.86 on kubuntu 20.04 qml loading error
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 20:04 UTC by SlothDS
Modified: 2020-09-10 15:37 UTC (History)
1 user (show)

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


Attachments
system info (86.08 KB, image/png)
2020-09-03 00:30 UTC, SlothDS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SlothDS 2020-09-02 20:04:10 UTC
SUMMARY
Latest latte-dock loaded with loading QML file error on Kubuntu 20.04 LTS.

STEPS TO REPRODUCE
1. get latte-dock latest git version
2. build
3. run with latte-dock --cc

OBSERVED RESULT
Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:1350:13: Type Background.MultiLayered unavailable
file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/background/MultiLayered.qml:295:5: Type Colorizer.CustomBackground unavailable
file:///usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/colorizer/CustomBackground.qml:116:26: Type KirigamiShadowedRectangle unavailable

EXPECTED RESULT
Latte-Dock has no QML errors

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04 LTS
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Latte-Dock Version: 0.9.86
Comment 1 Michail Vourlakos 2020-09-02 21:51:27 UTC
1. Are you sure that kde frameworks is 5.68? That codepath is executed only with 5.69 and above
2. Try to install kirigami2 library
Comment 2 SlothDS 2020-09-03 00:30:45 UTC
Created attachment 131374 [details]
system info
Comment 3 SlothDS 2020-09-03 00:33:39 UTC
(In reply to Michail Vourlakos from comment #1)
> 1. Are you sure that kde frameworks is 5.68? That codepath is executed only
> with 5.69 and above
> 2. Try to install kirigami2 library

1. yes, system info screenshot attached.
2. kirigami2 installed
$ dpkg -l | awk '/kirigami/{print $2 "_" $3}'
kirigami2-dev_5.68.0-0ubuntu2
libkf5kirigami2-5_5.68.0-0ubuntu2
libkf5kirigami2-doc_5.68.0-0ubuntu2
qml-module-org-kde-kirigami2_5.68.0-0ubuntu2
Comment 4 cliff.hults 2020-09-09 15:07:29 UTC
Having the same issue with the same software levels

dpkg -l | awk '/kirigami/{print $2 "_" $3}'
kirigami2-dev_5.68.0-0ubuntu2
libkf5kirigami2-5_5.68.0-0ubuntu2
libkf5kirigami2-doc_5.68.0-0ubuntu2
qml-module-org-kde-kirigami2_5.68.0-0ubuntu2
Comment 5 cliff.hults 2020-09-09 18:14:52 UTC
https://invent.kde.org/plasma/latte-dock/-/commit/b2f8f204828f8cbcef629ba351d3ec57adfcfcdb

This commit seems to break functionality for me.

Anything before https://invent.kde.org/plasma/latte-dock/-/commit/89e94fce3b635c7017527dce4b5c68aed5fdd1c0 works fine.

Working Steps:
git clone https://github.com/KDE/latte-dock.git
cd latte-dock
git checkout 89e94fce
./install.sh
latte-dock --layout Default -d

Broken steps:
git clone https://github.com/KDE/latte-dock.git
cd latte-dock
git checkout b2f8f204
./install.sh
latte-dock --layout Default -d
Comment 6 Michail Vourlakos 2020-09-10 15:24:11 UTC
no idea how to fix this... this is a loader that becomes active only for KF5>=5.69 . If anyone can provide a valid fix, feel free to do so.
Comment 7 Michail Vourlakos 2020-09-10 15:37:42 UTC
Git commit 00fca8cdb0c549a84a41428d5242a41fb0ca779f by Michail Vourlakos.
Committed on 10/09/2020 at 15:35.
Pushed by mvourlakos into branch 'master'.

fix qml break for kf5 <= 5.68

M  +3    -8    containment/package/contents/ui/colorizer/CustomBackground.qml
M  +7    -1    containment/package/contents/ui/colorizer/KirigamiShadowedRectangle.qml
C  +4    -7    containment/package/contents/ui/colorizer/NormalRectangle.qml [from: containment/package/contents/ui/colorizer/KirigamiShadowedRectangle.qml - 077% similarity]

https://invent.kde.org/plasma/latte-dock/commit/00fca8cdb0c549a84a41428d5242a41fb0ca779f