Bug 434276 - systemsettings5 crashes after changing application style
Summary: systemsettings5 crashes after changing application style
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.21.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-03-11 10:19 UTC by ManuelBoe
Modified: 2022-06-13 10:14 UTC (History)
2 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 ManuelBoe 2021-03-11 10:19:50 UTC
Application: systemsettings5 (5.21.2)

Qt Version: 5.15.2
Frameworks Version: 5.79.0
Operating System: Linux 5.11.5-1-MANJARO x86_64
Windowing System: X11
Drkonqi Version: 5.21.2
Distribution: Manjaro Linux

-- Information about the crash:
- What I was doing when the application crashed:

1. open the app
2. click on Appearance
3. the app will crash

This works on Arch- as well as Debian-based distros

- Custom settings of the application:

The Application style was changed to Chameleon

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f9689ac242c in chameleon::ChameleonStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () at /usr/lib/qt/plugins/styles/libchameleon.so
#5  0x00007f9689ab973d in chameleon::ChameleonStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () at /usr/lib/qt/plugins/styles/libchameleon.so
#6  0x00007f966c421f90 in  () at /usr/lib/qt/qml/org/kde/qqc2desktopstyle/private/libqqc2desktopstyleplugin.so
#7  0x00007f966c422fc1 in  () at /usr/lib/qt/qml/org/kde/qqc2desktopstyle/private/libqqc2desktopstyleplugin.so
#8  0x00007f96877d8096 in QQuickWindowPrivate::polishItems() () at /usr/lib/libQt5Quick.so.5
#9  0x00007f9687860540 in QQuickRenderControl::polishItems() () at /usr/lib/libQt5Quick.so.5
#10 0x00007f9687b01e98 in  () at /usr/lib/libQt5QuickWidgets.so.5
#11 0x00007f9688eb759e in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f9688e75752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f96882b2a2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f9688eae810 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f9688eb32f4 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f9688eb664d in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007f9688eb3273 in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f9688eb3312 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#19 0x00007f9688eb664d in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007f96882df532 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007f9688e75752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f96882b2a2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#23 0x00007f96882b5523 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#24 0x00007f968830c054 in  () at /usr/lib/libQt5Core.so.5
#25 0x00007f9685f7fb84 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#26 0x00007f9685fd3c21 in  () at /usr/lib/libglib-2.0.so.0
#27 0x00007f9685f7e3b1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#28 0x00007f968830b691 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007f96882b13ac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#30 0x00007f96882b9844 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#31 0x0000557bb3015960 in  ()
#32 0x00007f9687b35b25 in __libc_start_main () at /usr/lib/libc.so.6
#33 0x0000557bb301647e in _start ()
[Inferior 1 (process 2752) detached]

Possible duplicates by query: bug 434216, bug 434135, bug 431791, bug 428696, bug 428294.

Reported using DrKonqi
Comment 1 Nate Graham 2021-03-11 20:48:53 UTC
The crash is happening in Chameleon: 

> #5  0x00007f9689ab973d in chameleon::ChameleonStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () at /usr/lib/qt/plugins/styles/libchameleon.so
You would need to report this to its developer. Thanks!
Comment 2 Lukas Sommer 2022-06-13 10:14:46 UTC
This bug with using the chameleon style has been solved now: https://github.com/linuxdeepin/qt5integration/issues/49

The problem was  apparently not in the chameleon style, but in the associated dde-qt5integration. I've tested it with dde-qt5integration 5.5.17, and it does not crash any more. Following the comments in the bug report, it has been solved since dde-qt5integration 5.1.0.13.