Bug 460470 - After hitting apply, sometimes the KCM just shows a gray area
Summary: After hitting apply, sometimes the KCM just shows a gray area
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_regionandlang (show other bugs)
Version: 5.26.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-15 10:40 UTC by postix
Modified: 2022-10-15 17:26 UTC (History)
2 users (show)

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


Attachments
Screenshot (52.89 KB, image/png)
2022-10-15 10:40 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-10-15 10:40:17 UTC
Created attachment 152833 [details]
Screenshot

STEPS TO REPRODUCE
1. Open System Settings, Region & Language KCM
2. Click on Modify for language
3. Move your second language to the top
4. Hit apply

OBSERVED RESULT
In some circumstances the page only shows a gray area, until you navigate to the KCM again.

Journalctl log:

```
12:35:54 systemsettings[3027]: <Unknown File>: QML QQuickAnchors: Binding loop detected for property "right"
12:35:54 systemsettings[3027]: qml: Don't override the leftPadding or rightPadding on a SwipeListItem!
                                               This makes it impossible for me to adjust my layout as I need to for various usecases.
                                               I'll try to fix the mistake for you, but you should remove your overrides from your app's code entirely.
                                               If I can't fix the paddings, I'll fall back to a default layout, but it'll be slightly incorrect and lacks
                                               adaptations needed for touch screens and right-to-left languages, among other things.

12:35:57 systemsettings[3027]: qml: The item AdvancedLanguageSelectPage_QMLTYPE_3365(0x558a42da1ff0) is already in the PageRow

12:35:58 systemsettings[3027]: file:///usr/share/kpackage/kcms/kcm_regionandlang/contents/ui/AdvancedLanguageSelectPage.qml:27:13: QML ColumnLayout: Cannot anchor to an item that isn't a parent or sibling.
12:35:58 systemsettings[3027]: <Unknown File>: QML QQuickAnchors: Binding loop detected for property "right"
12:35:58 systemsettings[3027]: qml: Don't override the leftPadding or rightPadding on a SwipeListItem!
                                               This makes it impossible for me to adjust my layout as I need to for various usecases.
                                               I'll try to fix the mistake for you, but you should remove your overrides from your app's code entirely.
                                               If I can't fix the paddings, I'll fall back to a default layout, but it'll be slightly incorrect and lacks
                                               adaptations needed for touch screens and right-to-left languages, among other things.
12:35:58 systemsettings[3027]: <Unknown File>: QML QQuickAnchors: Binding loop detected for property "right"
12:35:58 systemsettings[3027]: qml: Don't override the leftPadding or rightPadding on a SwipeListItem!
                                               This makes it impossible for me to adjust my layout as I need to for various usecases.
                                               I'll try to fix the mistake for you, but you should remove your overrides from your app's code entirely.
                                               If I can't fix the paddings, I'll fall back to a default layout, but it'll be slightly incorrect and lacks
                                               adaptations needed for touch screens and right-to-left languages, among other things.
12:35:58 systemsettings[3027]: file:///usr/share/kpackage/kcms/kcm_regionandlang/contents/ui/main.qml:19:13: QML ColumnLayout: Cannot anchor to an item that isn't a parent or sibling.

```

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221012
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.0-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 hanyoung 2022-10-15 10:45:29 UTC
can reproduce
Comment 2 hanyoung 2022-10-15 12:49:22 UTC
The 100% way to reproduce is to:
1. open Number setting
2. Click "back arrow" on top navigation bar
3. Go to Language setting and modify anything
4. Click save

I guess it's something to do with KCMUtil's container navigation stack messes with the pageStack depth.
Comment 3 Nate Graham 2022-10-15 17:26:41 UTC
Fixed by Han Young with https://invent.kde.org/plasma/plasma-workspace/-/commit/e84a0659d7e5648ab6352e63dabd55c650f95224 in Plasma 5.26.1