Bug 505652

Summary: repetitive crashes of kwin_x11 and plasma over time (it seems that certain ressources are not available)
Product: [Plasma] plasmashell Reporter: Franz Gotsis <development>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: kde, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.27.11   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6
Sentry Crash Report:

Description Franz Gotsis 2025-06-16 05:24:25 UTC
Application: plasmashell (5.27.11)

Qt Version: 5.15.12
Frameworks Version: 5.115.0
Operating System: Linux 6.4.0-150600.23.50-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.6"
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
These kind of crashes appear regularly after a while and can be handled by killing the process of kwin_x11 (sudo kill -9 <>) or restarting kde plasma. It seems that certain ressouces (memory for GUI) are used up maybe by rogue prcoesses.
I think it is important to supply a utility (a health check) with which the user can easily query the available memory of KDE oder kwin_x11 and to report which process ist using what amount of these ressources.
kind regards
F. Gotsis from Munich, Germany

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f891409af15 in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x0) at /usr/include/c++/7/bits/atomic_base.h:396
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x0>) at /usr/include/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed (this=0x0) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#7  QtPrivate::RefCount::isShared (this=0x0) at /usr/include/qt5/QtCore/qrefcount.h:101
#8  QVector<QQuickPointerEvent*>::isDetached (this=0x561852a7da70) at /usr/include/qt5/QtCore/qvector.h:113
#9  QVector<QQuickPointerEvent*>::detach (this=0x561852a7da70) at /usr/include/qt5/QtCore/qvector.h:399
#10 QVector<QQuickPointerEvent*>::begin (this=0x561852a7da70) at /usr/include/qt5/QtCore/qvector.h:210
#11 QQuickWindowPrivate::queryPointerEventInstance (this=this@entry=0x561852a7d8d0, device=0x50000, eventType=eventType@entry=QEvent::None) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickwindow.cpp:2526
#12 0x00007f891409b094 in QQuickWindow::mouseGrabberItem (this=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickwindow.cpp:1747
#13 0x00007f891409da57 in QQuickWindowPrivate::removeGrabber (this=this@entry=0x561852a7d8d0, grabber=0x561850902f80, mouse=mouse@entry=true, touch=touch@entry=true) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickwindow.cpp:1007
#14 0x00007f8914086570 in QQuickItemPrivate::derefWindow (this=this@entry=0x5618502e4f20) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickitem.cpp:3035
#15 0x00007f8914086e77 in QQuickItem::setParentItem (this=this@entry=0x561850902f80, parentItem=parentItem@entry=0x0) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickitem.cpp:2717
#16 0x00007f891408798f in QQuickItem::~QQuickItem (this=0x561850902f80, __in_chrg=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickitem.cpp:2335
#17 0x00007f890bdee0e8 in WallpaperInterface::~WallpaperInterface (this=0x561850902f80, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.115.0-bp156.1.2.x86_64/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp:58
#18 0x00007f890bdee139 in WallpaperInterface::~WallpaperInterface (this=0x561850902f80, __in_chrg=<optimized out>) at /usr/src/debug/plasma-framework-5.115.0-bp156.1.2.x86_64/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp:63
#19 0x00007f891230bc35 in QObject::event (this=this@entry=0x561850902f80, e=e@entry=0x56184b6d6ad0) at kernel/qobject.cpp:1334
#20 0x00007f891408979b in QQuickItem::event (this=0x561850902f80, ev=0x56184b6d6ad0) at /usr/src/debug/libqt5-qtdeclarative-5.15.12+kde31-150600.1.7.x86_64/src/quick/items/qquickitem.cpp:8337
#21 0x00007f8912f9f87c in QApplicationPrivate::notify_helper (this=this@entry=0x561849c48070, receiver=receiver@entry=0x561850902f80, e=e@entry=0x56184b6d6ad0) at kernel/qapplication.cpp:3640
#22 0x00007f8912fa663f in QApplication::notify (this=<optimized out>, receiver=0x561850902f80, e=0x56184b6d6ad0) at kernel/qapplication.cpp:3164
#23 0x00007f89122d7d53 in QCoreApplication::notifyInternal2 (receiver=0x561850902f80, event=0x56184b6d6ad0) at kernel/qcoreapplication.cpp:1064
#24 0x00007f89122d7f2e in QCoreApplication::sendEvent (receiver=receiver@entry=0x561850902f80, event=event@entry=0x56184b6d6ad0) at kernel/qcoreapplication.cpp:1462
#25 0x00007f89122da771 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x561849c25030) at kernel/qcoreapplication.cpp:1821
#26 0x00007f89122dacf8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1680
#27 0x00007f891233aad3 in postEventSourceDispatch (s=0x561849d891a0) at kernel/qeventdispatcher_glib.cpp:277
#28 0x00007f8910583f9c in ??? () at /usr/lib64/libglib-2.0.so.0
#29 0x00007f8910585bc0 in ??? () at /usr/lib64/libglib-2.0.so.0
#30 0x00007f89105861bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#31 0x00007f891233a17c in QEventDispatcherGlib::processEvents (this=0x561849d8e4c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007f89122d65ba in QEventLoop::exec (this=this@entry=0x7ffc0cb05c70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:235
#33 0x00007f89122dfdf7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#34 0x000056182dab19e0 in main ()
[Inferior 1 (process 15369) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2025-06-16 16:57:53 UTC
This was fixed in Plasma 6.