Bug 478811 - Qt 6.7 "Error loading QML file." System settings on Plasma 6.0 Beta 2
Summary: Qt 6.7 "Error loading QML file." System settings on Plasma 6.0 Beta 2
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcmshell (show other bugs)
Version: 5.91.0
Platform: Arch Linux Linux
: VHI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 478816 478867 478894 478962 478969 479031 479197 479318 479536 479681 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-21 01:11 UTC by Jai Mu
Modified: 2024-06-20 18:16 UTC (History)
21 users (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 Jai Mu 2023-12-21 01:11:26 UTC
SUMMARY

Hi All,

Apologies if this is in the wrong category (or even the wrong place to post this). I have just updated from Plasma Beta 1 to Beta 2, and after updating, some of my system settings are inaccessible, showing me the following error.

```
Error loading QML file.

qrc:/kcm/kcm_landingpage/main.qml:18 Type KCM.SimpleKCM unavailable
qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:33 Type Kirigami.ScrollablePage unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/ScrollablePage.qml:68 Type Kirigami.Page unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/Page.qml:237 Type Kirigami.PageRow unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:180 Type OverlayDrawer unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/OverlayDrawer.qml:22 Type KT.OverlayDrawer unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/templates/OverlayDrawer.qml:120 Cannot assign object of type "KTP.IconPropertiesGroup" to property of type "IconPropertiesGroup_QMLTYPE_53*" as the former is neither the same as the latter nor a sub-class of it.
```

I have tried reinstalling the plasma-desktop, plasma-meta and kirigami packages from the Arch repo. However, none of these packages seem to have any effect.

Some setting pages work; for example, under the "Language & Time" category "Spell Check" and "Date & Time" display correctly, but "Region & Language" does not.

STEPS TO REPRODUCE
1. (Arch Linux) run `pacman -Syu` with the `kde-unstable` repo active
2. ???
3. Break system settings.

OBSERVED RESULT
Broken system settings

EXPECTED RESULT
Working system settings

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.91.0 
KDE Frameworks Version: ??
Qt Version: ??

ADDITIONAL INFORMATION

Neofetch output:

jai@archlinux 
------------- 
OS: Arch Linux x86_64 
Host: X570 AORUS MASTER -CF 
Kernel: 6.6.7-arch1-1 
Uptime: 33 mins 
Packages: 1015 (pacman) 
Shell: bash 5.2.21 
Resolution: 1920x1080 
DE: Plasma 5.91.0 
WM: kwin 
Theme: [Plasma], Breeze-Dark [GTK2], Breeze [GTK3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
CPU: AMD Ryzen 9 5950X (32) @ 3.400GHz 
GPU: AMD ATI Radeon RX 7900 XT/7900 XTX 
Memory: 4690MiB / 128735MiB
Comment 1 Samantha 2023-12-21 02:36:45 UTC
Same problem here and same upgrade path (arch linux, just updated from b1 to b2 this evening)

I've got some additional debug output from just running systemsettings via konsole. This is all output just initializing the app and loading the default section

```
KQuickPadding is both anonymous and named
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
kf.kcmutils: Error loading QML file qrc:/kcm/kcm_landingpage/main.qml
kf.kcmutils: "    "qrc:/kcm/kcm_landingpage/main.qml:18:1: Type KCM.SimpleKCM unavailable
    KCM.SimpleKCM {
    ^
kf.kcmutils: "    "qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:33:1: Type Kirigami.ScrollablePage unavailable
    Kirigami.ScrollablePage {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/ScrollablePage.qml:68:1: Type Kirigami.Page unavailable
    Kirigami.Page {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/Page.qml:237:13: Type Kirigami.PageRow unavailable
                property Kirigami.PageRow row
                ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:180:5: Type OverlayDrawer unavailable
        property OverlayDrawer leftSidebar
        ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/OverlayDrawer.qml:22:1: Type KT.OverlayDrawer unavailable
    KT.OverlayDrawer {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/templates/OverlayDrawer.qml:120:56: Cannot assign object of type "KTP.IconPropertiesGroup" to property of type "IconPropertiesGroup_QMLTYPE_61*" as the former is neither the same as the latter nor a sub-class of it.
        property KTP.IconPropertiesGroup handleClosedIcon: KTP.IconPropertiesGroup {
```

Isolating just switching to the display section where things are broken (including random segfaults):

```
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
qt.svg.draw: The requested buffer size is too big, ignoring
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_111 to IconPropertiesGroup_QMLTYPE_111
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_111 to IconPropertiesGroup_QMLTYPE_111
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_111 to IconPropertiesGroup_QMLTYPE_111
qrc:/qt/qml/org/kde/systemsettings/CategoryItem.qml:33:13: Unable to assign IconPropertiesGroup_QMLTYPE_111 to IconPropertiesGroup_QMLTYPE_111
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/GlobalSonnetSettings.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/MobileTextActionsToolBar.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/private/CheckIndicator.qml"
kf.kcmutils: Error loading QML file qrc:/kcm/kcm_wallpaper/main.qml
kf.kcmutils: "    "qrc:/kcm/kcm_wallpaper/main.qml:23:1: Type KCM.SimpleKCM unavailable
    KCM.SimpleKCM {
    ^
kf.kcmutils: "    "qrc:/qt/qml/org/kde/kcmutils/SimpleKCM.qml:33:1: Type Kirigami.ScrollablePage unavailable
    Kirigami.ScrollablePage {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/ScrollablePage.qml:68:1: Type Kirigami.Page unavailable
    Kirigami.Page {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/Page.qml:237:13: Type Kirigami.PageRow unavailable
                property Kirigami.PageRow row
                ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:180:5: Type OverlayDrawer unavailable
        property OverlayDrawer leftSidebar
        ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/OverlayDrawer.qml:22:1: Type KT.OverlayDrawer unavailable
    KT.OverlayDrawer {
    ^
kf.kcmutils: "    "file:///usr/lib/qt6/qml/org/kde/kirigami/templates/OverlayDrawer.qml:120:56: Cannot assign object of type "KTP.IconPropertiesGroup" to property of type "IconPropertiesGroup_QMLTYPE_61*" as the former is neither the same as the latter nor a sub-class of it.
        property KTP.IconPropertiesGroup handleClosedIcon: KTP.IconPropertiesGroup {
                                                           ^
KCrash: Application 'systemsettings' crashing... crashRecursionCounter = 2
[1]    6821 segmentation fault (core dumped)  systemsettings
```

If I instead swap to one of the known "good" settings dialogs then instead, I get almost nothing:

```
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
kf.svg: The theme "lightly-plasma-git" uses the legacy metadata.desktop. Consider contacting the author and asking them update it to use the newer JSON format.
qt.svg.draw: The requested buffer size is too big, ignoring
```
Comment 2 fanzhuyifan 2023-12-21 04:08:30 UTC
This seems to be a packaging issue, and I think arch packaging of plasma 6 beta 2 in kde-unstable hasn't stabilized yet [0]. So I am going to mark this as resolved-downstream for now.

[0]: https://bbs.archlinux.org/viewtopic.php?id=289413&p=3
Comment 3 Antonio Rojas 2023-12-21 07:00:33 UTC
This is a known Qt 6.7 issue
https://bugreports.qt.io/browse/QTBUG-120189
Comment 4 Antonio Rojas 2023-12-22 07:41:09 UTC
*** Bug 478867 has been marked as a duplicate of this bug. ***
Comment 5 Antonio Rojas 2023-12-22 19:28:37 UTC
*** Bug 478894 has been marked as a duplicate of this bug. ***
Comment 6 Andrej Halveland 2023-12-23 16:21:04 UTC
Until this gets fixed you can workaround this issue by putting
>QML_DISABLE_DISK_CACHE=1
into your
>/etc/environment
file and then just reboot your system
Comment 7 David Edmundson 2023-12-23 22:12:04 UTC
https://invent.kde.org/plasma/systemsettings/-/merge_requests/280 also is a viable fix
Comment 8 Andrej Halveland 2023-12-23 22:36:17 UTC
>https://invent.kde.org/plasma/systemsettings/-/merge_requests/280 also is a viable fix

Yes, this does seem to work. But, the "Mouse" and "Touchpad" settings in "Mouse & Touchpad" still seem to be broken, and those pages only work with `QML_DISABLE_DISK_CACHE=1`.

And also stuff still goes under the header (like the one that shows the "Quick Settings"  text on the landing page when launching System Settings).
Comment 9 Andrej Halveland 2023-12-23 22:44:46 UTC
That MR also breaks the "Shortcuts" settings page.
That page now shows:
```
Error loading QML file.
qrc:/kcm/kcm_keys/main.qml:66 Type Kirigami.InlineMessage unavailable
file:///usr/lib/qt6/qml/org/kde/kirigami/InlineMessage.qml:63 Type KT.InlineMessage unavailable
qrc:/qt/qml/org/kde/kirigami/templates/InlineMessage.qml:102 Cannot assign object of type "TP.IconPropertiesGroup" to property of type "IconPropertiesGroup_QMLTYPE_117*" as the former is neither the same as the latter nor a sub-class of it.
```
Comment 10 Nicolas Fella 2023-12-24 10:57:57 UTC
*** Bug 478962 has been marked as a duplicate of this bug. ***
Comment 11 Nicolas Fella 2023-12-24 10:58:13 UTC
*** Bug 478816 has been marked as a duplicate of this bug. ***
Comment 12 Nicolas Fella 2023-12-24 15:50:58 UTC
*** Bug 478969 has been marked as a duplicate of this bug. ***
Comment 13 Antonio Rojas 2023-12-26 14:45:02 UTC
*** Bug 479031 has been marked as a duplicate of this bug. ***
Comment 14 Antonio Rojas 2023-12-30 20:30:15 UTC
*** Bug 479197 has been marked as a duplicate of this bug. ***
Comment 15 duha.bugs 2024-01-02 22:38:45 UTC
*** Bug 479318 has been marked as a duplicate of this bug. ***
Comment 16 Podagric 2024-01-06 13:31:10 UTC
related: https://bugs.kde.org/show_bug.cgi?id=479301
Comment 17 Nicolas Fella 2024-01-08 11:56:20 UTC
*** Bug 479536 has been marked as a duplicate of this bug. ***
Comment 18 Adam Fontenot 2024-01-11 18:12:45 UTC
Another workaround for this is to launch the KCM you want directly via the terminal, e.g. `kcmshell6 kcm_networkmanagement`. The issue isn't with the KCMs themselves, it's with embedding them into another window, i.e. System Settings.
Comment 19 Antonio Rojas 2024-01-12 07:23:03 UTC
*** Bug 479681 has been marked as a duplicate of this bug. ***
Comment 20 benmordecai 2024-06-20 17:49:50 UTC
This problem is still present on KDE 6.1 in the main Arch repos
Comment 21 Antonio Rojas 2024-06-20 18:02:39 UTC
(In reply to benmordecai from comment #20)
> This problem is still present on KDE 6.1 in the main Arch repos

No, it's a different issue. Tracked in https://bugs.kde.org/show_bug.cgi?id=488326
Comment 22 benmordecai 2024-06-20 18:16:05 UTC
(In reply to Antonio Rojas from comment #21)
> (In reply to benmordecai from comment #20)
> > This problem is still present on KDE 6.1 in the main Arch repos
> 
> No, it's a different issue. Tracked in
> https://bugs.kde.org/show_bug.cgi?id=488326

If so, the same solution of setting QML_DISABLE_DISK_CACHE=1 still solves the problem.