Bug 512522 - Plasmashell crashes when closing a window while a Youtube video is Playing
Summary: Plasmashell crashes when closing a window while a Youtube video is Playing
Status: RESOLVED DUPLICATE of bug 491699
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (other bugs)
Version First Reported In: 6.5.3
Platform: CachyOS Linux
: NOR crash
Target Milestone: 1.0
Assignee: me
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2025-11-23 18:12 UTC by me
Modified: 2025-12-02 21:04 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (95.25 KB, text/plain)
2025-11-23 18:12 UTC, me
Details
Screenshot of the window position when firefox is hovered (166.16 KB, image/png)
2025-11-27 00:05 UTC, me
Details
Backtrace with `set auto-load safe-path /` (54.30 KB, text/vnd.kde.kcrash-report)
2025-11-27 00:24 UTC, me
Details

Note You need to log in before you can comment on or make changes to this bug.
Description me 2025-11-23 18:12:31 UTC
Application: plasmashell (6.5.3)

ApplicationNotResponding [ANR]: false
Qt Version: 6.10.0
Frameworks Version: 6.20.0
Operating System: Linux 6.17.8-arch1-1 x86_64
Windowing System: Wayland
Distribution: CachyOS
DrKonqi: 6.5.3 [CoredumpBackend]

-- Information about the crash:
When I wanted to close a youtube window that was actively playing a track via hovering on the icon of Firefox and clicking the X on the specific window, plasmashell crashed.
It is consistent and happens everytime I get the Media Interaction buttons on hover. 
I tested multiple videos on yt, it crashes on all of them, but not when the media interaction buttons are not shown.

The crash can be reproduced every time.

-- Backtrace (Reduced):


Reported using DrKonqi
Comment 1 me 2025-11-23 18:12:32 UTC
Created attachment 187100 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-11-24 23:19:32 UTC
Thanks for the crash report. Unfortunately, the attached backtrace is incomplete due to this:

warning: File "/home/kube/.cache/debuginfod_client/69af1b32ff7e0abefecd3657f9c2912ef464844f/debuginfo" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /home/kube/.cache/debuginfod_client/69af1b32ff7e0abefecd3657f9c2912ef464844f/debuginfo
line to your configuration file "/home/kube/.config/gdb/gdbinit".

Please follow the instructions to enable auto-loading of debuginfo. After you do that, can you please attach a new backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl ?

Thanks!
Comment 3 me 2025-11-25 11:59:20 UTC
Heyyo, thanks for reading the report.

I must apologize as when I wrote `The crash can be reproduced every time.`, I did not check if a restart fixed the issue. After having rebooted - I can't reproduce it. 

If I find future crashes I will check if they persist after a restart and will provide better crashdumps via the linked tutorial.

Feel free to close/ignore this for now until it happens again. 
Thanks again for your time.
Comment 4 TraceyC 2025-11-25 17:20:44 UTC
Thanks for following up. I'll close this for now, but if the crash happens again, feel free to set it to REOPENED and attach a new backtrace.
Comment 5 me 2025-11-27 00:05:32 UTC
Created attachment 187199 [details]
Screenshot of the window position when firefox is hovered
Comment 6 me 2025-11-27 00:24:47 UTC
Created attachment 187200 [details]
Backtrace with `set auto-load safe-path /`

Heyyo (^.^)/

It happend again and I could narrow down the reproduction.
Plasmashell crashes when a firefox window with a single tab playing music via some website (I only tested with youtube & spotify) is on the right most / last slot of the hover widget (See this screen shot for details: https://bugs.kde.org/attachment.cgi?id=187199. 
) while another tab that could use media interaction (i.e. another youtube tab). It was not required that the other that is actively playing. 

To get the single tab firefox window into the last slot I had the most consistent repro by:
- closing the window directly, not using plasmashell
- using Ctrl+Shift+T to reopen the closed window

Then closing the window via plasmashell causes the crash.

See the updated backtrace attached and let me know if I need to adapt my config further.

cheers, kube
Comment 7 TraceyC 2025-12-02 20:54:07 UTC
Searchable backtrace

Thread 1 (Thread 0x7ff183fe9580 (LWP 327804)):
[KCrash Handler]
#4  QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::get (this=0x8, this=<optimized out>) at /usr/include/qt6/QtCore/qscopedpointer.h:110
#5  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > const> (ptr=..., ptr=<optimized out>) at /usr/include/qt6/QtCore/qtclasshelpermacros.h:137
#6  QObject::d_func (this=0x0, this=<optimized out>) at /usr/include/qt6/QtCore/qobject.h:110
#7  QObjectPrivate::get (o=0x0, o=<optimized out>) at /usr/include/qt6/QtCore/6.10.0/QtCore/private/qobject_p.h:161
#8  QQmlData::get (object=0x0, object=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmldata_p.h:237
#9  QQmlDelegateModelItem::destroyObject (this=0x558ef4b2ed30) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:2512
#10 0x00007ff189e7f83f in QQmlDelegateModelPrivate::destroyCacheItem (this=0x558ef49b0770, cacheItem=0x558ef4b2ed30) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:645
#11 0x00007ff189e8f1f1 in std::function<void(QQmlDelegateModelItem*)>::operator() (this=0x7ffff2409040, __args#0=<optimized out>) at /usr/include/c++/15.2.1/bits/std_function.h:593
#12 QQmlReusableDelegateModelItemsPool::drain (this=0x558ef49b09c0, maxPoolTime=0, releaseItem=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:3996
#13 0x00007ff189e7b884 in QQmlDelegateModelPrivate::drainReusableItemsPool (this=<optimized out>, maxPoolTime=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1114
#14 QQmlDelegateModel::drainReusableItemsPool (this=<optimized out>, maxPoolTime=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1119
#15 0x00007ff18cec89d0 in QQuickListView::geometryChange (this=0x558ef4abead0, newGeometry=..., oldGeometry=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquicklistview.cpp:3640
#16 0x00007ff18cb78dad in QQuickItem::setSize (this=this@entry=0x558ef4abead0, size=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7789
#17 0x00007ff1830ac6ff in QQuickControlPrivate::resizeContent (this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickcontrol.cpp:376
#18 0x00007ff1830ae23b in QQuickControl::geometryChange (this=0x558eec8b4ec0, newGeometry=..., oldGeometry=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicktemplates/qquickcontrol.cpp:2134
#19 0x00007ff18cb78dad in QQuickItem::setSize (this=0x558eec8b4ec0, size=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7789
#20 0x00007ff18cba70f6 in QQuickLoaderPrivate::_q_updateSize (this=0x558eef62cef0, loaderGeometryChanged=loaderGeometryChanged@entry=true) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickloader.cpp:925
#21 0x00007ff18cba756a in QQuickLoader::geometryChange (this=0x558eef627590, newGeometry=..., oldGeometry=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickloader.cpp:958
#22 0x00007ff18cb78dad in QQuickItem::setSize (this=0x558eef627590, size=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7789
#23 0x00007ff18df052e4 in PlasmaQuick::PlasmaWindow::resizeEvent(QResizeEvent*) () at /usr/lib/libPlasmaQuick.so.6
#24 0x00007ff18ba15f48 in QWindow::event (this=<optimized out>, ev=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2680
#25 0x00007ff18d5020a0 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x558eeed81dd0, e=0x7ffff24095f0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3307
#26 0x00007ff18b16a6c8 in QCoreApplication::notifyInternal2 (receiver=0x558eeed81dd0, event=0x7ffff24095f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1109
#27 0x00007ff18b16a71d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1563
#28 0x00007ff18b9a12ef in QGuiApplicationPrivate::processGeometryChangeEvent (e=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2856
#29 0x00007ff18ba15188 in QWindowSystemEventHandler::sendEvent (this=<optimized out>, e=0x7ffff2409690) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:190
#30 QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent<QWindowSystemInterfacePrivate::GeometryChangeEvent, QWindow*, QRect, QRect> () at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:102
#31 handleWindowSystemEvent<QWindowSystemInterfacePrivate::GeometryChangeEvent, QWindowSystemInterface::SynchronousDelivery, QWindow*, QRect, QRect> () at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:138
#32 QWindowSystemInterface::handleGeometryChange<QWindowSystemInterface::SynchronousDelivery> (window=0x558eeed81dd0, newRect=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:309
#33 0x00007ff18c3083c3 in QtWaylandClient::QWaylandWindow::setGeometry (this=0x558eeed82ec0, r=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/plugins/platforms/wayland/qwaylandwindow.cpp:507
#34 0x00007ff18ba1105a in QWindow::resize (this=0x558eeed81dd0, newSize=...) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2108
#35 0x00007ff180943c35 in ??? () at /usr/lib/qt6/qml/org/kde/plasma/core/libcorebindingsplugin.so
#36 0x00007ff18b1d716f in QtPrivate::QSlotObjectBase::call (this=0x558ef5a5a560, r=0x558eeed81dd0, a=0x7ffff24098e8, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461
#37 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4255
#38 0x00007ff18cb77fe7 in QQuickItem::setImplicitHeight (this=0x558eef627590, h=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7657
#39 0x00007ff18cb71c5a in QQuickItemPrivate::notifyChangeListeners<void (QQuickItemChangeListener::*)(QQuickItem*), QQuickItem*> (this=<optimized out>, changeTypes=..., function=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem_p.h:413
#40 QQuickItemPrivate::implicitHeightChanged (this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7630
#41 0x00007ff18cb77fe7 in QQuickItem::setImplicitHeight (this=0x558eec8b4ec0, h=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7657
#42 0x00007ff18c6626a8 in QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:364
#43 0x00007ff18c67db14 in GenericBinding<6>::doStore<double> (this=0x558ef4e621d0, value=<optimized out>, pd=<optimized out>, flags=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:284
#44 GenericBinding<6>::write (this=0x558ef4e621d0, result=..., isUndefined=<optimized out>, flags=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:257
#45 0x00007ff18c6806d5 in QQmlBinding::doUpdate (this=0x558ef4e621d0, watcher=..., flags=..., scope=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:715
#46 0x00007ff18c6778d9 in QQmlBinding::update (this=0x558ef4e621d0, flags=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlbinding.cpp:165
#47 0x00007ff18c711512 in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=0x7ffff240b730) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:74
#48 0x00007ff18b1d6de2 in doActivate<false> (sender=0x558ef15ac8c0, signal_index=3, argv=0x7ffff240b730) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4145
#49 0x00007ff18cb5fa9d in QMetaObject::activate<void, QRectF> (sender=<optimized out>, mo=<optimized out>, local_signal_index=0, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs.h:319
#50 QQuickItem::childrenRectChanged (this=<optimized out>, _t1=...) at /usr/src/debug/qt6-declarative/build/src/quick/Quick_autogen/include/moc_qquickitem.cpp:935
#51 QQuickItemPrivate::emitChildrenRectChanged (this=<optimized out>, rect=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem_p.h:693
#52 QQuickContents::updateRect (this=0x558ef4b43a00) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:253
#53 QQuickContents::itemGeometryChanged (this=0x558ef4b43a00, changed=<optimized out>, change=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:267
#54 0x00007ff18cb68865 in operator() (listener=..., __closure=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:3908
#55 QQuickItemPrivate::notifyChangeListeners<QQuickItem::geometryChange(const QRectF&, const QRectF&)::<lambda(const QQuickItemPrivate::ChangeListener&)> > (this=0x558ef5a762c0, changeTypes=..., function=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem_p.h:415
#56 QQuickItem::geometryChange (this=this@entry=0x558ef5a7e810, newGeometry=..., oldGeometry=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:3906
#57 0x00007ff18014c6a3 in QQuickLayout::geometryChange (this=0x558ef5a7e810, newGeometry=..., oldGeometry=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quicklayouts/qquicklayout.cpp:954
#58 0x00007ff18cb77ea5 in QQuickItem::setHeight (this=0x558ef5a7e810, h=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:7613
#59 0x00007ff18cb88633 in QQuickItem::qt_metacall (this=this@entry=0x558ef5a7e810, _c=_c@entry=QMetaObject::WriteProperty, _id=8, _a=_a@entry=0x7ffff240bc20) at /usr/src/debug/qt6-declarative/build/src/quick/Quick_autogen/include/moc_qquickitem.cpp:926
#60 0x00007ff1801538da in QQuickLayout::qt_metacall (this=0x558ef5a7e810, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffff240bc20) at /usr/src/debug/qt6-declarative/build/src/quicklayouts/QuickLayouts_autogen/include/moc_qquicklayout_p.cpp:128
#61 0x00007ff180156999 in QQuickGridLayoutBase::qt_metacall (this=this@entry=0x558ef5a7e810, _c=_c@entry=QMetaObject::WriteProperty, _id=<optimized out>, _a=_a@entry=0x7ffff240bc20) at /usr/src/debug/qt6-declarative/build/src/quicklayouts/QuickLayouts_autogen/include/moc_qquicklinearlayout_p.cpp:126
#62 0x00007ff18015d439 in QQuickLinearLayout::qt_metacall (this=0x558ef5a7e810, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffff240bc20) at /usr/src/debug/qt6-declarative/build/src/quicklayouts/QuickLayouts_autogen/include/moc_qquicklinearlayout_p.cpp:478
#63 0x00007ff18c5dd002 in QV4::QObjectWrapper::setProperty (engine=engine@entry=0x558eecc98a40, object=object@entry=0x558ef5a7e810, property=0x7ff15c210240, value=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:762
#64 0x00007ff18c5de749 in QV4::QObjectWrapper::setQmlProperty (engine=0x558eecc98a40, qmlContext=<optimized out>, object=0x558ef5a7e810, name=<optimized out>, flags=..., value=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:579
#65 0x00007ff18c5d2fce in QV4::QQmlContextWrapper::virtualPut (m=<optimized out>, id=..., value=..., receiver=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qmlcontext.cpp:476
#66 0x00007ff18c5572e8 in QV4::Object::put (receiver=0x7ff1801dd588, this=0x7ff1801dd588, name=0x7ff1801dd580, v=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4string_p.h:140
#67 QV4::ExecutionContext::setProperty (this=<optimized out>, name=0x7ff1801dd580, value=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4context.cpp:278
#68 0x00007ff18c6069a5 in QV4::Runtime::StoreNameSloppy::call (engine=0x558eecc98a40, nameIndex=<optimized out>, value=...) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1041
#69 0x00007ff0e40873de in ??? ()
#70 0x0000558eecc98a40 in ??? ()
#71 0x0000000000000000 in ??? ()
Comment 8 TraceyC 2025-12-02 21:04:58 UTC
Thank you for the bug report and for the new backtrace. It's useful. Based on that backtrace this looks like a duplicate of bug 491699 
See https://bugreports.qt.io/browse/QTBUG-141105

This should be fixed with Qt 6.10.1

*** This bug has been marked as a duplicate of bug 491699 ***