Bug 454402

Summary: gdm->KDE X11 login->plasma shell crashes in PlasmaQuick::AppletQuickItemPrivate::createFullRepresentationItem()
Product: [Frameworks and Libraries] libplasma Reporter: zpataki
Component: libplasmaAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: crash CC: dallasjohnson, kde, nate, notmart
Priority: NOR Keywords: drkonqi
Version: 5.94.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description zpataki 2022-05-25 18:04:40 UTC
Application: plasmashell (5.24.5)

Qt Version: 5.15.2
Frameworks Version: 5.94.0
Operating System: Linux 5.17.9-1145.native x86_64
Windowing System: X11
Distribution: Clear Linux OS
DrKonqi: 5.24.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
gdm->KDE X11 login->plasma shell crash 
Clearlinux update 36330 (KDE 5.24.4, good KDE system) to 36400 (plasma crash)
nvidia driver 510.68.02

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: {_M_t = {<std::__uniq_ptr_impl<char, std::default_delete<char []> >> = {_M_t = {<std::_Tuple_impl<0, char*, std::default_delete<char []> >> = {<std::_Tuple_impl<1, std::default_delete<char []> >> = {<std::_Head_base<1, std::default_delete<char []>, true>> = {_M_head_impl = {<No data fields>}}, <No data fields>}, <std::_Head_base<0, char*, false>> = {_M_head_impl = <optimized out>}, <No data fields>}, <No data fields>}}, <No data fields>}}
[KCrash Handler]
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0xffffffff) at /usr/include/c++/11/bits/atomic_base.h:479
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:239
#8  QBasicAtomicInteger<int>::loadRelaxed (this=0xffffffff) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#9  QtPrivate::RefCount::deref (this=0xffffffff) at /usr/include/qt5/QtCore/qrefcount.h:66
#10 QList<QQuickTextEditPrivate::Node>::~QList (this=0x5650b42c3628, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:873
#11 QQuickTextEditPrivate::~QQuickTextEditPrivate (this=0x5650b42c3440, __in_chrg=<optimized out>) at /usr/include/qt5/QtQuick/5.15.2/QtQuick/private/qquicktextedit_p_p.h:71
#12 QQuickTextAreaPrivate::~QQuickTextAreaPrivate (this=0x5650b42c3440, __in_chrg=<optimized out>) at qquicktextarea.cpp:165
#13 0x00007f8d72ff5749 in non-virtual thunk to QQuickTextAreaPrivate::~QQuickTextAreaPrivate() () at qquicktextarea.cpp:165
#14 0x00007f8d7a7ef355 in QQuickItemPrivate::implicitWidthChanged (this=<optimized out>) at items/qquickitem.cpp:6748
#15 0x00007f8d7a34d2ff in QQmlPropertyData::writeProperty (flags=..., value=0x7fff938d40b8, target=<optimized out>, this=<optimized out>) at ../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:375
#16 GenericBinding<6>::doStore<double> (flags=..., pd=<optimized out>, value=<optimized out>, this=<optimized out>) at qml/qqmlbinding.cpp:342
#17 GenericBinding<6>::write (this=<optimized out>, result=..., isUndefined=<optimized out>, flags=...) at qml/qqmlbinding.cpp:315
#18 0x00007f8d7a34e04e in QQmlNonbindingBinding::doUpdate (this=0x5650b442dae0, watcher=..., flags=..., scope=...) at qml/qqmlbinding.cpp:258
#19 0x00007f8d7a34bf23 in QQmlBinding::update (this=0x5650b442dae0, flags=...) at qml/qqmlbinding.cpp:194
#20 0x00007f8d7a358813 in QQmlObjectCreator::finalize (this=0x5650b442c420, interrupt=...) at qml/qqmlobjectcreator.cpp:1393
#21 0x00007f8d7a2e66f2 in QQmlComponentPrivate::complete (state=0x5650b442c400, enginePriv=0x5650b1daad00) at /usr/include/qt5/QtCore/qscopedpointer.h:116
#22 QQmlComponentPrivate::complete (enginePriv=0x5650b1daad00, state=0x5650b442c400) at qml/qqmlcomponent.cpp:983
#23 0x00007f8d7a2e67a7 in QQmlComponentPrivate::completeDeferred (enginePriv=0x5650b1daad00, deferredState=deferredState@entry=0x5650b442c380) at qml/qqmlcomponent.cpp:980
#24 0x00007f8d72f98ec7 in QtQuickPrivate::completeDeferred (object=0x5650b42e3f10, property=...) at qquickdeferredexecute.cpp:152
#25 0x00007f8d72ffafb2 in quickCompleteDeferred<QQuickItem> (delegate=..., property=..., object=0x5650b42e3f10) at qquickdeferredexecute_p_p.h:84
#26 QQuickTextFieldPrivate::executeBackground (this=this@entry=0x5650b42c33c0, complete=complete@entry=true) at qquicktextfield.cpp:391
#27 0x00007f8d72ffc3ac in QQuickTextField::componentComplete (this=0x5650b42e3f10) at qquicktextfield.cpp:863
#28 0x00007f8d7a358a20 in QQmlObjectCreator::finalize (this=0x5650b2805f00, interrupt=...) at qml/qqmlobjectcreator.cpp:1413
#29 0x00007f8d7a2ec83a in QQmlIncubatorPrivate::incubate (this=0x5650b39a6170, i=...) at /usr/include/qt5/QtCore/qscopedpointer.h:116
#30 0x00007f8d7a2ecc95 in QQmlEnginePrivate::incubate (this=0x5650b1daad00, i=..., forContext=<optimized out>) at qml/qqmlincubator.cpp:89
#31 0x00007f8d7a2e6a7e in QQmlComponent::create (this=<optimized out>, incubator=..., context=<optimized out>, forContext=<optimized out>) at qml/qqmlcomponent.cpp:1178
#32 0x00007f8d7ad119a5 in KDeclarative::QmlObject::createObjectFromComponent (this=this@entry=0x5650b20dfed0, component=0x5650b399b550, context=<optimized out>, initialProperties=...) at /usr/src/debug/kdeclarative-5.94.0-47.x86_64/src/kdeclarative/qmlobject.cpp:337
#33 0x00007f8d7b2f5442 in PlasmaQuick::AppletQuickItemPrivate::createFullRepresentationItem (this=this@entry=0x5650b209e300) at /usr/src/debug/plasma-framework-5.94.0-53.x86_64/src/plasmaquick/appletquickitem.cpp:251
#34 0x00007f8d7b2f5a5a in PlasmaQuick::AppletQuickItemPrivate::preloadForExpansion (this=0x5650b209e300) at /usr/src/debug/plasma-framework-5.94.0-53.x86_64/src/plasmaquick/appletquickitem.cpp:317
#35 0x00007f8d78b7cc82 in QObject::event (this=0x5650b20e0010, e=0x5650b3ee4d10) at kernel/qobject.cpp:1314
#36 0x00007f8d79952563 in QApplicationPrivate::notify_helper (this=0x5650b1cdd6e0, receiver=0x5650b20e0010, e=0x5650b3ee4d10) at kernel/qapplication.cpp:3637
#37 0x00007f8d78b52158 in QCoreApplication::notifyInternal2 (receiver=0x5650b20e0010, event=0x5650b3ee4d10) at kernel/qcoreapplication.cpp:1064
#38 0x00007f8d78b523d7 in QCoreApplication::sendEvent (event=0x5650b3ee4d10, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1462
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5650b1cd23c0) at kernel/qcoreapplication.cpp:1821
#40 0x00007f8d78ba9e60 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1680
#41 postEventSourceDispatch (s=s@entry=0x5650b1d4b280) at kernel/qeventdispatcher_glib.cpp:277
#42 0x00007f8d76ca7ac9 in g_main_dispatch (context=0x7f8d6c005010) at ../glib/gmain.c:3417
#43 g_main_context_dispatch (context=0x7f8d6c005010) at ../glib/gmain.c:4135
#44 0x00007f8d76d2f936 in g_main_context_iterate.constprop.0 (context=0x7f8d6c005010, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at ../glib/gmain.c:4211
#45 0x00007f8d76ca5b51 in g_main_context_iteration (context=0x7f8d6c005010, may_block=1) at ../glib/gthread.c:1051
#46 0x00007f8d78ba8d1e in QEventDispatcherGlib::processEvents (this=0x5650b1d50870, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#47 0x00007f8d78b4f826 in QEventLoop::processEvents (flags=..., this=0x7fff938d4c40) at kernel/qeventloop.cpp:139
#48 QEventLoop::exec (this=0x7fff938d4c40, flags=...) at kernel/qeventloop.cpp:232
#49 0x00007f8d78b52943 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#50 0x00005650b0fa585e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-5.24.5-84.x86_64/shell/main.cpp:238
[Inferior 1 (process 1313) detached]

Possible duplicates by query: bug 452660, bug 450900, bug 449981, bug 445417, bug 443352.

Reported using DrKonqi
Comment 1 Nate Graham 2022-05-26 17:02:59 UTC
#32 0x00007f8d7ad119a5 in KDeclarative::QmlObject::createObjectFromComponent (this=this@entry=0x5650b20dfed0, component=0x5650b399b550, context=<optimized out>, initialProperties=...) at /usr/src/debug/kdeclarative-5.94.0-47.x86_64/src/kdeclarative/qmlobject.cpp:337
#33 0x00007f8d7b2f5442 in PlasmaQuick::AppletQuickItemPrivate::createFullRepresentationItem (this=this@entry=0x5650b209e300) at /usr/src/debug/plasma-framework-5.94.0-53.x86_64/src/plasmaquick/appletquickitem.cpp:251
#34 0x00007f8d7b2f5a5a in PlasmaQuick::AppletQuickItemPrivate::preloadForExpansion (this=0x5650b209e300) at /usr/src/debug/plasma-framework-5.94.0-53.x86_64/src/plasmaquick/appletquickitem.cpp:317

Does it work with SDDM instead of GDM? Based on the backtrace, I wouldn't expect it to, but it would be good to check anyway.
Comment 2 Nate Graham 2022-06-02 15:05:17 UTC
*** Bug 454666 has been marked as a duplicate of this bug. ***