Bug 488792 - Clicking "Add Widgets..." button while in panel edit mode crashes Plasma
Summary: Clicking "Add Widgets..." button while in panel edit mode crashes Plasma
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.1.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-06-20 14:13 UTC by Michael Alexsander
Modified: 2024-06-28 13:18 UTC (History)
3 users (show)

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


Attachments
New crash information added by DrKonqi (66.22 KB, text/plain)
2024-06-20 14:13 UTC, Michael Alexsander
Details
The Button™ (12.97 KB, image/png)
2024-06-20 14:15 UTC, Michael Alexsander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Alexsander 2024-06-20 14:13:36 UTC
Application: plasmashell (6.1.0)

Qt Version: 6.7.1
Frameworks Version: 6.3.0
Operating System: Linux 6.9.4-200.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 40.20240620.0 (Kinoite)"
DrKonqi: 6.1.0 [CoredumpBackend]

-- Information about the crash:
When creating a new empty panel, the "Add Widgets..." buttons that comes with it looks vertically off-centered, shows the alternative widgets popup for some reason, and causes crashes when moving it.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#4  0x00007f25a3f21330 in ListElement::setQObjectProperty(ListLayout::Role const&, QV4::QObjectWrapper*) () at /lib64/libQt6QmlModels.so.6
#5  0x00007f25a3f28e8a in ListModel::set(int, QV4::Object*, QList<int>*) () at /lib64/libQt6QmlModels.so.6
#6  0x00007f25a3f2ee96 in QQmlListModel::set(int, QJSValue const&) () at /lib64/libQt6QmlModels.so.6
#7  0x00007f25a3f31ed4 in QQmlListModel::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libQt6QmlModels.so.6
#8  0x00007f25a63acc1a in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const () at /lib64/libQt6Qml.so.6


Reported using DrKonqi
Comment 1 Michael Alexsander 2024-06-20 14:13:41 UTC
Created attachment 170680 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Michael Alexsander 2024-06-20 14:15:18 UTC
Created attachment 170681 [details]
The Button™
Comment 3 cwo 2024-06-20 18:02:15 UTC
The visual error in the bug is already filed at #488789 and might not be related to the crash.

I can confirm the crashing, it is consistently reproducible on a fresh profile in current Neon. It doesn't seem like moving the applet is required, just clicking it while in Panel Configuration mode is enough. (Though moving also works, as it involves clicking the applet).

It does open the widget explorer though, not the alternative widgets popup. The label popup in Show Panel Configuration does show "Show Alternatives..."
Comment 4 Nate Graham 2024-06-25 23:40:24 UTC
Can also reproduce the crash; re-titling for clarity.

The visual issues aren't related to this.


Here's a fully symbolicated backtrace from today's git master:

Thread 1 (Thread 0x7fe5d4584b80 (LWP 947493)):
[KCrash Handler]
#5  QV4::Heap::Pointer<QV4::Heap::InternalClass*, 0ul>::get (this=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/memory/qv4heap_p.h:45
#6  QV4::Heap::Pointer<QV4::Heap::InternalClass*, 0ul>::operator QV4::Heap::InternalClass* (this=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/memory/qv4heap_p.h:37
#7  QV4::Managed::internalClass (this=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4managed_p.h:129
#8  QV4::Managed::engine (this=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4managed_p.h:131
#9  ListElement::setQObjectProperty (this=<optimized out>, role=..., o=o@entry=0x0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qmlmodels/qqmllistmodel.cpp:1084
#10 0x00007fe5dc241b8c in ListElement::clearProperty (this=this@entry=0x7039b50, role=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qmlmodels/qqmllistmodel.cpp:1274
#11 0x00007fe5dc242e8a in ListModel::set (this=<optimized out>, elementIndex=elementIndex@entry=0, object=<optimized out>, roles=roles@entry=0x7ffdf7fb1ee0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qmlmodels/qqmllistmodel.cpp:646
#12 0x00007fe5dc248e96 in QQmlListModel::set (this=0xbc9fbc0, index=0, value=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qmlmodels/qqmllistmodel.cpp:2746
#13 0x00007fe5dc24bed4 in QQmlListModel::qt_metacall (this=0xbc9fbc0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7ffdf7fb2268) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/redhat-linux-build/src/qmlmodels/QmlModels_autogen/include/moc_qqmllistmodel_p.cpp:261
#14 0x00007fe5db5acc1a in QQmlObjectOrGadget::metacall (this=this@entry=0x7ffdf7fb2530, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=82, argv=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/qml/qqmlobjectorgadget.cpp:14
#15 0x00007fe5db44b7b2 in QV4::CallMethod (object=..., index=<optimized out>, returnType=..., argCount=<optimized out>, argTypes=<optimized out>, engine=<optimized out>, callArgs=<optimized out>, callType=<optimized out>) at /usr/include/qt6/QtCore/qvarlengtharray.h:84
#16 QV4::CallPrecise (object=..., data=<optimized out>, engine=<optimized out>, engine@entry=0x22d44e0, callArgs=<optimized out>, callArgs@entry=0x7fe59b1bf628, callType=callType@entry=QMetaObject::InvokeMetaMethod) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:1950
#17 0x00007fe5db44d0f1 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:2924
#18 operator()<QV4::QObjectMethod::callInternal(const QV4::Value*, const QV4::Value*, int) const::<lambda()> > (__closure=<synthetic pointer>, call=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:2901
#19 QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=<optimized out>, argv=0x7fe59b1bf5e0, argc=2) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:2924
#20 0x00007fe5db4ac3f8 in QV4::FunctionObject::call (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4functionobject_p.h:171
#21 QV4::Moth::VME::interpret (frame=0x7039b50, frame@entry=0x7ffdf7fb2830, engine=0x22d44e0, code=0x7fe59b1bf5c8 "\340k\a*\345\177") at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:798
#22 0x00007fe5db4ae59f in QV4::Moth::VME::exec (frame=frame@entry=0x7ffdf7fb2830, engine=engine@entry=0x22d44e0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:487
#23 0x00007fe5db3f48cf in qfoDoCall (fo=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4functionobject.cpp:526
#24 0x00007fe5db46bb5f in QV4::FunctionObject::call (this=0x7ffdf7fb28e8, thisObject=0x7fe59b1bf580, argv=0x7fe59b1bf500, argc=0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4functionobject_p.h:171
#25 QV4::Runtime::CallQmlContextPropertyLookup::call (engine=0x22d44e0, index=<optimized out>, argv=0x7fe59b1bf500, argc=0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4runtime.cpp:1416
#26 0x00007fe5db4a851e in QV4::Moth::VME::interpret (frame=0x7039b50, frame@entry=0x7ffdf7fb2b80, engine=0x22d44e0, code=0x7fe5a45a2431 "\002") at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:833
#27 0x00007fe5db4ae59f in QV4::Moth::VME::exec (frame=frame@entry=0x7ffdf7fb2b80, engine=engine@entry=0x22d44e0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:487
#28 0x00007fe5db3efce6 in QV4::doCall (self=<optimized out>, thisObject=thisObject@entry=0x7fe59b1bf4f0, argv=<optimized out>, argc=argc@entry=1, context=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4function.cpp:54
#29 0x00007fe5db3f01ed in QV4::Function::call (this=this@entry=0x6242490, thisObject=0x7fe59b1bf4f0, argv=argv@entry=0x7fe59b1bf4f0, argc=argc@entry=1, context=context@entry=0x7fe5a47e1dc0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4function.cpp:79
#30 0x00007fe5db3f0509 in operator() (__closure=<synthetic pointer>, thisObject=<optimized out>, argv=0x7fe59b1bf4f0, argc=1) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4function.cpp:30
#31 QV4::convertAndCall<QV4::Function::call(QObject*, void**, const QMetaType*, int, QV4::ExecutionContext*)::<lambda(const QV4::Value*, const QV4::Value*, int)> > (engine=<optimized out>, thisObject=0xf8549c0, a=0x7ffdf7fb4930, types=0x7ffdf7fb2e98, argc=1, call=...) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4jscall_p.h:202
#32 QV4::Function::call (this=0x6242490, thisObject=0xf8549c0, a=a@entry=0x7ffdf7fb4930, types=0x7ffdf7fb2e98, argc=1, context=0x7fe5a47e1dc0) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/jsruntime/qv4function.cpp:27
#33 0x00007fe5db5683f7 in QQmlJavaScriptExpression::evaluate (this=this@entry=0xf92f980, a=a@entry=0x7ffdf7fb4930, types=<optimized out>, argc=argc@entry=1) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/qml/qqmljavascriptexpression_p.h:248
#34 0x00007fe5db506afd in QQmlBoundSignalExpression::evaluate (this=0xf92f980, a=a@entry=0x7ffdf7fb4930) at /usr/include/qt6/QtCore/qvarlengtharray.h:85
#35 0x00007fe5db507650 in QQmlBoundSignal_callback (e=0xf92f9f0, a=0x7ffdf7fb4930) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/qml/ftw/qqmlrefcount_p.h:73
#36 0x00007fe5db596425 in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=0x7ffdf7fb4930) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/qml/qml/qqmlnotifier.cpp:70
#37 0x00007fe5d9ffa29d in doActivate<false> (sender=0xf8549c0, signal_index=48, argv=0x7ffdf7fb4930) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qobject.cpp:3976
#38 0x00007fe5d9ff0b47 in QMetaObject::activate (sender=sender@entry=0xf8549c0, m=m@entry=0x7fe5dc0ebe60 <QQuickMouseArea::staticMetaObject>, local_signal_index=local_signal_index@entry=15, argv=argv@entry=0x7ffdf7fb4930) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qobject.cpp:4146
#39 0x00007fe5dbc284e4 in QQuickMouseArea::released (this=this@entry=0xf8549c0, _t1=<optimized out>, _t1@entry=0x13708b8) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/redhat-linux-build/src/quick/Quick_autogen/include/moc_qquickmousearea_p.cpp:694
#40 0x00007fe5dbc29fad in QQuickMouseArea::setPressed (this=this@entry=0xf8549c0, button=<optimized out>, p=p@entry=false, source=<optimized out>) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/items/qquickmousearea.cpp:1270
#41 0x00007fe5dbc2b1cf in QQuickMouseArea::mouseReleaseEvent (this=0xf8549c0, event=0x7ffdf7fb5690) at /usr/include/qt6/QtGui/qevent.h:115
#42 0x00007fe5dbc0c5cf in QQuickItemPrivate::deliverPointerEvent (this=this@entry=0x13706c0, event=event@entry=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/items/qquickitem.cpp:5632
#43 0x00007fe5dbc0c753 in QQuickItem::event (this=0xf8549c0, ev=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/items/qquickitem.cpp:9019
#44 0x00007fe5dc98b168 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0xf8549c0, e=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#45 0x00007fe5d9f95b18 in QCoreApplication::notifyInternal2 (receiver=0xf8549c0, event=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1134
#46 0x00007fe5d9f95d7d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1575
#47 0x00007fe5dbddbeb8 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem (this=this@entry=0x156e3c0, item=item@entry=0xf8549c0, isGrabber=isGrabber@entry=true, pointerEvent=pointerEvent@entry=0x7ffdf7fb5690, handlersOnly=handlersOnly@entry=false) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:2322
#48 0x00007fe5dbddceda in QQuickDeliveryAgentPrivate::deliverUpdatedPoints (this=this@entry=0x156e3c0, event=event@entry=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:2107
#49 0x00007fe5dbdddff3 in QQuickDeliveryAgentPrivate::deliverPointerEvent (this=this@entry=0x156e3c0, event=event@entry=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:1947
#50 0x00007fe5dbddf33b in QQuickDeliveryAgentPrivate::handleMouseEvent (this=this@entry=0x156e3c0, event=event@entry=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:1701
#51 0x00007fe5dbde0e33 in QQuickDeliveryAgent::event (this=<optimized out>, ev=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/util/qquickdeliveryagent.cpp:746
#52 0x00007fe5dbcb8c7d in QQuickWindow::event (this=this@entry=0xf87e30, event=event@entry=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtdeclarative-6.7.1-4.fc40.x86_64/src/quick/items/qquickwindow.cpp:1548
#53 0x000000000044861b in PanelView::event (this=0xf87e30, e=0x7ffdf7fb5690) at /home/nate/kde/src/plasma-workspace/shell/panelview.cpp:1303
#54 0x00007fe5dc98b168 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0xf87e30, e=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#55 0x00007fe5d9f95b18 in QCoreApplication::notifyInternal2 (receiver=0xf87e30, event=0x7ffdf7fb5690) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1134
#56 0x00007fe5d9f95d8d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1589
#57 0x00007fe5da9e59ab in QGuiApplicationPrivate::processMouseEvent (e=0x62814d0) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:2327
#58 0x00007fe5daa4952c in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1114
#59 0x00007fe5daf54e74 in userEventSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#60 0x00007fe5d9424e8c in g_main_dispatch (context=0x7fe5c0000f00) at ../glib/gmain.c:3344
#61 g_main_context_dispatch_unlocked (context=0x7fe5c0000f00) at ../glib/gmain.c:4152
#62 0x00007fe5d9486c98 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7fe5c0000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#63 0x00007fe5d9426383 in g_main_context_iteration (context=0x7fe5c0000f00, may_block=1) at ../glib/gmain.c:4282
#64 0x00007fe5da27cb53 in QEventDispatcherGlib::processEvents (this=0xf42df0, flags=...) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#65 0x00007fe5d9fa2713 in QEventLoop::exec (this=this@entry=0x7ffdf7fb5ac0, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/global/qflags.h:34
#66 0x00007fe5d9f9e69c in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/corelib/global/qflags.h:74
#67 0x00007fe5da9d53dd in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:1926
#68 0x00007fe5dc98b0d9 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.7.1-2.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2555
#69 0x0000000000427a86 in main (argc=<optimized out>, argv=<optimized out>) at /home/nate/kde/src/plasma-workspace/shell/main.cpp:188
Comment 6 Nate Graham 2024-06-28 13:18:58 UTC
Yep, looks like as of that, the bug is impossible to experience anymore.