Bug 413829 - Discover does not start with Qt 5.12
Summary: Discover does not start with Qt 5.12
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.63.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-05 10:19 UTC by Fabian Vogt
Modified: 2019-11-06 23:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2019-11-05 10:19:01 UTC
Fails with:

QQmlApplicationEngine failed to load component
qrc:/qml/DiscoverWindow.qml:257 Type Kirigami.ContextDrawer unavailable
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/ContextDrawer.qml:170 Type ContextDrawerActionItem unavailable
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/ContextDrawerActionItem.qml:53 Type ActionsMenu unavailable
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/ActionsMenu.qml:31 Type ActionMenuItem unavailable
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/ActionMenuItem.qml:34 "Controls.MenuItem.icon" is not available due to component versioning.

org.kde.plasma.discover: Errors when loading the GUI

Probably because of:

discover/qml/ActionListItem.qml:    icon: action.iconName
discover/qml/SourcesPage.qml:                    icon: model.icon
Comment 1 Fabian Vogt 2019-11-05 10:34:09 UTC
Actually, more likely to be a bug in kirigami which got fixed(?) by just removing the offending line in 5.64: https://phabricator.kde.org/D24501
Comment 2 Aleix Pol 2019-11-06 02:21:45 UTC
It would be great if you could confirm that the patch fixes the issue so we can close the bug.
Comment 3 Fabian Vogt 2019-11-06 14:21:37 UTC
Debugged a bit further: It was actually qqc2-desktop-style.

qqc2-desktop-style was not rebuilt against the latest Qt version, so it used "import QtQuick.Templates 2.2" instead of 2.3 for its Components. That broke every import if QQC2 > 2.2...

I can't think of a way to avoid this packaging issue upstream other than an ugly hack in libqqc2desktopstyleplugin.so, so closing as INVALID.
Comment 4 Aleix Pol 2019-11-06 23:54:50 UTC
Brilliant, thanks for investigating.