Bug 452467

Summary: System Settigns crash when opening Application Style from left panel
Product: [Applications] systemsettings Reporter: Evren <evren320>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: REOPENED ---    
Severity: crash CC: kde, nate
Priority: NOR Keywords: drkonqi
Version: 5.24.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Evren 2022-04-10 11:53:45 UTC
Application: systemsettings (5.24.3)

Qt Version: 5.15.3
Frameworks Version: 5.91.0
Operating System: Linux 5.15.28-1-MANJARO x86_64
Windowing System: X11
Distribution: Manjaro Linux
DrKonqi: 5.24.3 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
System Settigns crash when opening Application Style from left panel.

I use breeze style and breeze themes.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Aborted

[KCrash Handler]
#4  0x00007fc22617234c in __pthread_kill_implementation () at /usr/lib/libc.so.6
#5  0x00007fc2261254b8 in raise () at /usr/lib/libc.so.6
#6  0x00007fc22610f534 in abort () at /usr/lib/libc.so.6
#7  0x00007fc2265b4ee4 in qt_assert(char const*, char const*, int) () at /usr/lib/libQt5Core.so.5
#8  0x00007fc2265d2c55 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007fc163b518df in  () at /usr/lib/qt/plugins/styles/libqgtk2style.so
#10 0x00007fc163b40170 in  () at /usr/lib/qt/plugins/styles/libqgtk2style.so
#11 0x00007fc163b54042 in  () at /usr/lib/qt/plugins/styles/libqgtk2style.so
#12 0x00007fc22738b0ce in QStyleFactory::create(QString const&) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007fc1808464d0 in  () at /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_style.so
#14 0x00007fc22538210c in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (this=0x5610e9aa16e0, interrupt=...) at /usr/src/debug/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1414
#15 0x00007fc2253258d0 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) (this=0x5610e6d9bca0, i=<optimized out>) at /usr/include/qt/QtCore/qscopedpointer.h:116
#16 0x00007fc22532632e in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlContextData*) (this=0x5610ed3310b0, i=<optimized out>, forContext=<optimized out>) at /usr/src/debug/qtdeclarative/src/qml/qml/qqmlincubator.cpp:89
#17 0x00007fc223bcecd6 in QQmlDelegateModelPrivate::object(QQmlListCompositor::Group, int, QQmlIncubator::IncubationMode) (this=0x5610e788fdf0, group=<optimized out>, index=6, incubationMode=<optimized out>) at /usr/src/debug/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1311
#18 0x00007fc2257ea2e6 in QQuickItemViewPrivate::createItem(int, QQmlIncubator::IncubationMode) (this=0x5610e68d4560, modelIndex=6, incubationMode=QQmlIncubator::AsynchronousIfNested) at /usr/src/debug/qtdeclarative/src/quick/items/qquickitemview.cpp:2349
#19 0x00007fc2257d0ecb in QQuickGridViewPrivate::addVisibleItems(double, double, double, double, bool) (this=0x5610e68d4560, fillFrom=-0, fillTo=1270, bufferFrom=<optimized out>, bufferTo=<optimized out>, doBuffer=false) at /usr/src/debug/qtdeclarative/src/quick/items/qquickgridview.cpp:520
#20 0x00007fc2257e01cc in QQuickItemViewPrivate::refill(double, double) (this=0x5610e68d4560, from=-0, to=1270) at /usr/src/debug/qtdeclarative/src/quick/items/qquickitemview.cpp:1801
#21 0x00007fc2257e8c62 in QQuickItemViewPrivate::regenerate(bool) (this=0x5610e68d4560, orientationChanged=<optimized out>) at /usr/src/debug/qtdeclarative/src/quick/items/qquickitemview.cpp:1848
#22 0x00007fc2257dfc1a in QQuickItemViewPrivate::regenerate(bool) (orientationChanged=false, this=0x5610e68d4560) at ../../include/QtQmlModels/5.15.3/QtQmlModels/private/../../../../../../qtdeclarative/src/qmlmodels/qqmlchangeset_p.h:127
#23 QQuickItemView::modelUpdated(QQmlChangeSet const&, bool) (this=0x5610e6785f50, changeSet=<optimized out>, reset=<optimized out>) at /usr/src/debug/qtdeclarative/src/quick/items/qquickitemview.cpp:1247
#24 0x00007fc2267d2faf in  () at /usr/lib/libQt5Core.so.5
#25 0x00007fc223ba5c0b in QQmlInstanceModel::modelUpdated(QQmlChangeSet const&, bool) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/moc_qqmlobjectmodel_p.cpp:263
#26 0x00007fc223bca73d in non-virtual thunk to QQmlDelegateModelPrivate::emitModelUpdated(QQmlChangeSet const&, bool) () at /usr/src/debug/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1825
#27 0x00007fc223bd0ba4 in QQmlDelegateModelGroupPrivate::emitModelUpdated(bool) (reset=<optimized out>, this=0x5610e6c83000) at /usr/src/debug/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:2745
#28 QQmlDelegateModelPrivate::emitChanges() (this=this@entry=0x5610e788fdf0) at /usr/src/debug/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1868
#29 0x00007fc223bd3e78 in QQmlDelegateModel::_q_modelReset() (this=0x5610e8552310) at /usr/src/debug/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1918
#30 0x00007fc223bdafd3 in QQmlDelegateModel::qt_metacall(QMetaObject::Call, int, void**) (this=0x5610e8552310, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7ffec1d77210) at .moc/moc_qqmldelegatemodel_p.cpp:371
#31 0x00007fc2267d2d24 in  () at /usr/lib/libQt5Core.so.5
#32 0x00007fc22675eb62 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
#33 0x00007fc180842a1a in  () at /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_style.so
#34 0x00007fc18084472e in  () at /usr/lib/qt/plugins/plasma/kcms/systemsettings/kcm_style.so
#35 0x00007fc2260a95e8 in  () at /usr/lib/libKF5KCMUtils.so.5
#36 0x00007fc2267c62d6 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#37 0x00007fc22731c1c6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007fc2267a20aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#39 0x00007fc2267a2ba9 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#40 0x00007fc2267ea188 in  () at /usr/lib/libQt5Core.so.5
#41 0x00007fc224468ee3 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#42 0x00007fc2244bf0f9 in  () at /usr/lib/libglib-2.0.so.0
#43 0x00007fc224466455 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#44 0x00007fc2267ee08a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#45 0x00007fc22679a39b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#46 0x00007fc2267a5ad7 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#47 0x00005610e34b7be8 in  ()
#48 0x00007fc226110310 in __libc_start_call_main () at /usr/lib/libc.so.6
#49 0x00007fc2261103c1 in __libc_start_main_impl () at /usr/lib/libc.so.6
#50 0x00005610e34b8545 in  ()
[Inferior 1 (process 3476) detached]

The reporter indicates this bug may be a duplicate of or related to bug 451008.

Possible duplicates by query: bug 451008, bug 449849, bug 448798, bug 446901, bug 446598.

Reported using DrKonqi
Comment 1 Evren 2022-04-10 13:03:54 UTC
i just noticed an error message in systemsettings app terminal output after crash:
Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)

I guess problem is easy to solve now.
This problem begin after the moment i did a 'pacman -Syu' several days ago, but doing update doesn't fix it for now, perhaps manjaro or arch issue.
Comment 2 Antonio Rojas 2022-04-10 13:53:47 UTC
The crash is in a third party Qt style
Comment 3 Evren 2022-05-23 16:17:47 UTC
can you tell me how can i delete third party styles so it may not crash then?
Comment 4 Evren 2022-05-25 11:00:16 UTC
I found the reason of the crash:
I have installed qt5-styleplugins from AUR, then after i have updated qt versions, AUR did not auto update, so it crashed kcm_style.
Recompiling qt5-styleplugins AUR package fixed the problem, removing it also fixed the problem.
But i believe the expected behaviour of systemsettings kcm_style is not "crash", instead it should show a warning message on that broken plugin only, and should work normally for normal style changes on the list, so i have reopened the bug for this reason.

Perhaps a fix could be an exception handler on plugin loading part, i am not expert on kde development so i just guess a solution would be easy.
Comment 5 Quang Thang 2023-05-21 04:29:03 UTC
(In reply to Evren from comment #4)
> I found the reason of the crash:
> I have installed qt5-styleplugins from AUR, then after i have updated qt
> versions, AUR did not auto update, so it crashed kcm_style.
> Recompiling qt5-styleplugins AUR package fixed the problem, removing it also
> fixed the problem.
> But i believe the expected behaviour of systemsettings kcm_style is not
> "crash", instead it should show a warning message on that broken plugin
> only, and should work normally for normal style changes on the list, so i
> have reopened the bug for this reason.
> 
> Perhaps a fix could be an exception handler on plugin loading part, i am not
> expert on kde development so i just guess a solution would be easy.

Just ran into this issues and above suggestion fixed it. Thanks