Bug 455923 - Changing the display orientation setting crashes kcm_tablet module when it was visitted before chainging the display setting.
Summary: Changing the display orientation setting crashes kcm_tablet module when it wa...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_tablet (show other bugs)
Version: 5.25.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-25 16:03 UTC by jakubby
Modified: 2022-07-27 04:36 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jakubby 2022-06-25 16:03:29 UTC
SUMMARY
I own a Wacom One M, I noticed that chainging the display orientation setting causes a crash 100% of the time.

STEPS TO REPRODUCE
1. Go to input > drawing tablet; 
2. Go to display change screen orientation.
3. Go back to input > drawing tablet;

OBSERVED RESULT
Well on the flipside the tablet automatically changes orientation according to the display orientation, so in theory I didn't had to visit the setting module in a first place(and the option to change orientation is grayed out anyway).

The system settings app crashed.

EXPECTED RESULT
It doesn't crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.18.5-zen  
(available in About System)
KDE Plasma Version: 5.25.1
KDE Frameworks Version:  5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
```
Application: Ustawienia systemowe (systemsettings), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f48d8646d94 in ?? () from /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_tablet.so
#5  0x00007f48d8647583 in ?? () from /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_tablet.so
#6  0x00007f490af48028 in ?? () from /usr/lib/libQt5QmlModels.so.5
#7  0x00007f490af4b82c in ?? () from /usr/lib/libQt5QmlModels.so.5
#8  0x00007f490af4bad2 in QQmlDelegateModel::variantValue(int, QString const&) () from /usr/lib/libQt5QmlModels.so.5
#9  0x00007f4909bb0323 in ?? () from /usr/lib/libQt5QuickTemplates2.so.5
#10 0x00007f4909bade2b in QQuickComboBox::textAt(int) const () from /usr/lib/libQt5QuickTemplates2.so.5
#11 0x00007f4909c32b60 in ?? () from /usr/lib/libQt5QuickTemplates2.so.5
#12 0x00007f4909c34d73 in QQuickComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQt5QuickTemplates2.so.5
#13 0x00007f490d876994 in ?? () from /usr/lib/libQt5Qml.so.5
#14 0x00007f490d77a96c in ?? () from /usr/lib/libQt5Qml.so.5
#15 0x00007f490d77bdd0 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /usr/lib/libQt5Qml.so.5
#16 0x00007f490d79de7e in QV4::Runtime::CallPropertyLookup::call(QV4::ExecutionEngine*, QV4::Value const&, unsigned int, QV4::Value*, int) () from /usr/lib/libQt5Qml.so.5
#17 0x00007f48d8ead224 in ?? ()
#18 0x00007ffe268ff910 in ?? ()
#19 0x0000000000000000 in ?? ()
[Inferior 1 (process 4269) detached]
```
Comment 1 Nate Graham 2022-06-27 18:57:30 UTC
Thank you for the bug report! Unfortunately the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #4  0x00007f48d8646d94 in ?? () from /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_tablet.so
> #5  0x00007f48d8647583 in ?? () from /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_tablet.so

Could you please install debug symbols for plasma-desktop, reproduce the crash, and attach a new symbolicated backtrace? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Thanks again!
Comment 2 jakubby 2022-06-27 19:05:22 UTC
This also only happens without kcm-wacomtablet on wayland;
Tried this out on my other device with x.org with both kcm-wacomtablet and xf86-input-wacom package;

I will install debuginfod in a sec and replicate
Comment 3 jakubby 2022-06-27 19:12:17 UTC
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QLayout::removeWidget: Cannot remove a null widget.
kf.coreaddons: "Could not load plugin from kcm_kscreen: Biblioteka współdzielona niedostępna." // Shared library unavailable
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qml: The item SubCategoryPage_QMLTYPE_83(0x560a25c92200) is already in the PageRow
kf.coreaddons: "Could not load plugin from kcm_kscreen: Biblioteka współdzielona niedostępna." // Shared library unvailable
file:///usr/lib/qt/qml/org/kde/kirigami.2/PlaceholderMessage.qml:235:5: QML Heading: Binding loop detected for property "verticalAlignment"
kf.configwidgets: A widget named ' "kcfg_osdKbdLayoutChangedEnabled" ' was found but there is no setting named ' "osdKbdLayoutChangedEnabled" '
kf.configwidgets: A widget named ' "kcfg_repeatRate" ' was found but there is no setting named ' "repeatRate" '
kf.configwidgets: A widget named ' "kcfg_repeatDelay" ' was found but there is no setting named ' "repeatDelay" '
kf.configwidgets: A widget named ' "kcfg_resetOldXkbOptions" ' was found but there is no setting named ' "resetOldXkbOptions" '
kf.configwidgets: A widget named ' "kcfg_configureLayouts" ' was found but there is no setting named ' "configureLayouts" '
kf.configwidgets: A widget named ' "kcfg_repeatRate" ' was found but there is no setting named ' "repeatRate" '
kf.configwidgets: A widget named ' "kcfg_repeatDelay" ' was found but there is no setting named ' "repeatDelay" '
qml: The item SubCategoryPage_QMLTYPE_83(0x560a25c92200) is already in the PageRow
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qml: The item SubCategoryPage_QMLTYPE_83(0x560a25c92200) is already in the PageRow
kf.coreaddons: "Could not load plugin from kcm_kscreen: Biblioteka współdzielona niedostępna." // Shared library unavailable
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qml: The item SubCategoryPage_QMLTYPE_83(0x560a25c92200) is already in the PageRow
kf.coreaddons: "Could not load plugin from kcm_kscreen: Biblioteka współdzielona niedostępna." // Shared library unavailable
kf.configwidgets: A widget named ' "kcfg_osdKbdLayoutChangedEnabled" ' was found but there is no setting named ' "osdKbdLayoutChangedEnabled" '
kf.configwidgets: A widget named ' "kcfg_repeatRate" ' was found but there is no setting named ' "repeatRate" '
kf.configwidgets: A widget named ' "kcfg_repeatDelay" ' was found but there is no setting named ' "repeatDelay" '
kf.configwidgets: A widget named ' "kcfg_resetOldXkbOptions" ' was found but there is no setting named ' "resetOldXkbOptions" '
kf.configwidgets: A widget named ' "kcfg_configureLayouts" ' was found but there is no setting named ' "configureLayouts" '
kf.configwidgets: A widget named ' "kcfg_repeatRate" ' was found but there is no setting named ' "repeatRate" '
kf.configwidgets: A widget named ' "kcfg_repeatDelay" ' was found but there is no setting named ' "repeatDelay" '
qml: The item SubCategoryPage_QMLTYPE_83(0x560a25c92200) is already in the PageRow
QQmlEngine::setContextForObject(): Object already has a QQmlContext
28 -- exe=/usr/bin/systemsettings
17 -- platform=wayland
23 -- appname=systemsettings
17 -- apppath=/usr/bin
10 -- signal=11
9 -- pid=9087
18 -- appversion=5.25.1
33 -- programname=Ustawienia systemowe
31 -- bugaddress=submit@bugs.kde.org
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = systemsettings path = /usr/bin pid = 9087
KCrash: Arguments: /usr/bin/systemsettings 
The Wayland connection experienced a fatal error: Błędny deskryptor pliku // Invalid file descriptor
Comment 4 jakubby 2022-06-27 20:21:00 UTC
Turns out I had debuginfod and the package also adds relevant /etc/profile.d entries + /etc/debuginfod.d files that get loaded into the env var
Comment 5 Bug Janitor Service 2022-07-12 04:36:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2022-07-27 04:36:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!