Bug 507936

Summary: [ANR] PlasmaShell hung soon after login
Product: [Plasma] plasmashell Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: alvisebruniera, kdedev, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.4.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=2376518#c12
See Also: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14257
https://bugs.kde.org/show_bug.cgi?id=511874
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/229965/events/2f1d79cc23cc4dc4be0b2abfdc59a4ff/
Attachments: New crash information added by DrKonqi

Description Roke Julian Lockhart Beedell 2025-08-06 11:15:29 UTC
Application: plasmashell (6.4.3)

ApplicationNotResponding [ANR]: true
Qt Version: 6.9.1
Frameworks Version: 6.16.0
Operating System: Linux 6.15.8-200.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)"
DrKonqi: 6.4.3 [CoredumpBackend]

-- Information about the crash:
Per https://bugzilla.redhat.com/show_bug.cgi?id=2376518#c12, "Soon after log in, as I transferred some files from KDE Connect, Plasma Shell hung. When I logged out via KRunner, the DE offered to kill it so that I would be able to log out."

The crash does not seem to be reproducible.

-- Backtrace (Reduced):
#5  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#6  0x00007f11754f512a in sys_futex (addr1=0x55a2f6ca0254, op=9, val1=2, timeout=0x0, addr2=0x0, val3=-1) at ../src/util/futex.c:43
#7  futex_wait (addr=addr@entry=0x55a2f6ca0254, value=value@entry=2, timeout=timeout@entry=0x0) at ../src/util/futex.c:55
#8  0x00007f11755027f0 in do_futex_fence_wait (fence=fence@entry=0x55a2f6ca0254, timeout=timeout@entry=false, abs_timeout=abs_timeout@entry=0) at ../src/util/u_queue.c:131
#9  0x00007f11755039cc in _util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.c:146
#10 util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.h:181
#11 util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.h:178
#12 util_queue_finish (queue=queue@entry=0x55a2f0c29238) at ../src/util/u_queue.c:722
#13 0x00007f117594ac06 in si_set_debug_callback (ctx=0x55a2f67a5eb0, cb=0x0) at ../src/gallium/drivers/radeonsi/si_pipe.c:443
#14 0x00007f117594b3fd in si_destroy_context (context=0x55a2f67a5eb0) at ../src/gallium/drivers/radeonsi/si_pipe.c:196
#15 0x00007f1175736b91 in tc_destroy (_pipe=0x55a2f6b51d80) at ../src/gallium/auxiliary/util/u_threaded_context.c:5259
#16 0x00007f11750c50c0 in st_destroy_context_priv (st=st@entry=0x55a2f6c87810, destroy_pipe=destroy_pipe@entry=true) at ../src/mesa/state_tracker/st_context.c:358
#17 0x00007f11750c6bfd in st_destroy_context (st=0x55a2f6c87810) at ../src/mesa/state_tracker/st_context.c:975
#18 0x00007f11750290eb in dri_destroy_context (ctx=0x55a2f67a5e60) at ../src/gallium/frontends/dri/dri_context.c:280
#19 0x00007f117502cdde in driDestroyContext (ctx=<optimized out>) at ../src/gallium/frontends/dri/dri_util.c:633
#20 0x00007f11958a8879 in dri2_destroy_context (disp=<optimized out>, ctx=0x55a2f6694140) at ../src/egl/drivers/dri2/egl_dri2.c:1301


Reported using DrKonqi
Comment 1 Roke Julian Lockhart Beedell 2025-08-06 11:15:30 UTC
Created attachment 183826 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 TraceyC 2025-08-06 17:52:27 UTC
Searchable backtrace


Thread 1 (Thread 0x7f1195a10300 (LWP 2640)):
[KCrash Handler]
#5  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#6  0x00007f11754f512a in sys_futex (addr1=0x55a2f6ca0254, op=9, val1=2, timeout=0x0, addr2=0x0, val3=-1) at ../src/util/futex.c:43
#7  futex_wait (addr=addr@entry=0x55a2f6ca0254, value=value@entry=2, timeout=timeout@entry=0x0) at ../src/util/futex.c:55
#8  0x00007f11755027f0 in do_futex_fence_wait (fence=fence@entry=0x55a2f6ca0254, timeout=timeout@entry=false, abs_timeout=abs_timeout@entry=0) at ../src/util/u_queue.c:131
#9  0x00007f11755039cc in _util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.c:146
#10 util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.h:181
#11 util_queue_fence_wait (fence=0x55a2f6ca0254) at ../src/util/u_queue.h:178
#12 util_queue_finish (queue=queue@entry=0x55a2f0c29238) at ../src/util/u_queue.c:722
#13 0x00007f117594ac06 in si_set_debug_callback (ctx=0x55a2f67a5eb0, cb=0x0) at ../src/gallium/drivers/radeonsi/si_pipe.c:443
#14 0x00007f117594b3fd in si_destroy_context (context=0x55a2f67a5eb0) at ../src/gallium/drivers/radeonsi/si_pipe.c:196
#15 0x00007f1175736b91 in tc_destroy (_pipe=0x55a2f6b51d80) at ../src/gallium/auxiliary/util/u_threaded_context.c:5259
#16 0x00007f11750c50c0 in st_destroy_context_priv (st=st@entry=0x55a2f6c87810, destroy_pipe=destroy_pipe@entry=true) at ../src/mesa/state_tracker/st_context.c:358
#17 0x00007f11750c6bfd in st_destroy_context (st=0x55a2f6c87810) at ../src/mesa/state_tracker/st_context.c:975
#18 0x00007f11750290eb in dri_destroy_context (ctx=0x55a2f67a5e60) at ../src/gallium/frontends/dri/dri_context.c:280
#19 0x00007f117502cdde in driDestroyContext (ctx=<optimized out>) at ../src/gallium/frontends/dri/dri_util.c:633
#20 0x00007f11958a8879 in dri2_destroy_context (disp=<optimized out>, ctx=0x55a2f6694140) at ../src/egl/drivers/dri2/egl_dri2.c:1301
#21 dri2_destroy_context (disp=<optimized out>, ctx=0x55a2f6694140) at ../src/egl/drivers/dri2/egl_dri2.c:1296
#22 0x00007f119589a66d in eglDestroyContext (dpy=<optimized out>, ctx=0x55a2f6694140) at ../src/egl/main/eglapi.c:926
#23 0x00007f1195968dec in QtWaylandClient::QWaylandGLContext::~QWaylandGLContext (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-qtwayland-6.9.1-3.fc42.x86_64/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:299
#24 0x00007f1195968e35 in QtWaylandClient::QWaylandGLContext::~QWaylandGLContext (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-qtwayland-6.9.1-3.fc42.x86_64/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:300
#25 0x00007f119c4feb19 in QOpenGLContext::destroy (this=this@entry=0x7ffe0d9728e0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qopenglcontext.cpp:461
#26 0x00007f119c4feb93 in QOpenGLContext::~QOpenGLContext (this=this@entry=0x7ffe0d9728e0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qopenglcontext.cpp:488
#27 0x00007f119c535096 in QRhiGles2InitParams::newFallbackSurface (format=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/rhi/qrhigles2.cpp:604
#28 0x00007f119d64b332 in QSGRhiSupport::maybeCreateOffscreenSurface (this=0x7ffe0d972930, window=0x55a2f68acbc0) at /usr/src/debug/qt6-qtdeclarative-6.9.1-3.fc42.x86_64/src/quick/scenegraph/qsgrhisupport.cpp:901
#29 QSGRhiSupport::maybeCreateOffscreenSurface (this=this@entry=0x7f119dbe1730 <QSGRhiSupport::instance_internal()::inst>, window=window@entry=0x55a2f68acbc0) at /usr/src/debug/qt6-qtdeclarative-6.9.1-3.fc42.x86_64/src/quick/scenegraph/qsgrhisupport.cpp:895
#30 0x00007f119d7b9b61 in QSGThreadedRenderLoop::handleExposure (this=0x55a2f14e9690, window=0x55a2f68acbc0) at /usr/src/debug/qt6-qtdeclarative-6.9.1-3.fc42.x86_64/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1314
#31 0x00007f119c158265 in QWindow::event (this=<optimized out>, ev=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qwindow.cpp:2742
#32 0x00007f119de3d97f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a2f68acbc0, e=0x7ffe0d972ba0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#33 0x00007f119b8f9f38 in QCoreApplication::notifyInternal2 (receiver=0x55a2f68acbc0, event=0x7ffe0d972ba0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#34 0x00007f119b8fa1ad in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1560
#35 0x00007f119c0f3cea in QGuiApplicationPrivate::processExposeEvent (e=0x55a2f587d990) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:3480
#36 0x00007f119c15c76c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1113
#37 0x00007f119c15c988 in QWindowSystemInterface::flushWindowSystemEvents (flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1082
#38 0x00007f119b965c5a in doActivate<false> (sender=0x55a2f0ad7d30, signal_index=4, argv=0x7ffe0d972d58, argv@entry=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4158
#39 0x00007f119b95c089 in QMetaObject::activate (sender=sender@entry=0x55a2f0ad7d30, m=m@entry=0x7f119bea16e0 <QAbstractEventDispatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4206
#40 0x00007f119b8f2cc7 in QAbstractEventDispatcher::awake (this=this@entry=0x55a2f0ad7d30) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/corelib/Core_autogen/include/moc_qabstracteventdispatcher.cpp:128
#41 0x00007f119bc0f9eb in QEventDispatcherGlib::processEvents (this=0x55a2f0ad7d30, flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:406
#42 0x00007f119b907b03 in QEventLoop::exec (this=this@entry=0x7ffe0d972e90, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h:77
#43 0x00007f119b903419 in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#44 0x00007f119c0ddbad in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:1986
#45 0x00007f119de3d8e9 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2570
#46 0x000055a2b3ffd96c in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace-6.4.3-1.fc42.x86_64/shell/main.cpp:188
Comment 3 Nate Graham 2025-08-07 17:03:41 UTC
This is a graphics driver issue. I'd recommend following up with the Fedora or Mesa folks about it.
Comment 4 Roke Julian Lockhart Beedell 2025-08-07 17:24:24 UTC
(In reply to Nate Graham from comment #3)

Thanks. Maybe, it was due to having to reproduce https://gitlab.freedesktop.org/mesa/mesa/-/issues/13652#how-to-reproduce-the-issue for https://github.com/electron/electron/issues/47949#issuecomment-3164470381. I've mentioned it at https://gitlab.freedesktop.org/mesa/mesa/-/issues/13652#note_3043547.
Comment 5 TraceyC 2025-11-04 22:17:37 UTC
*** Bug 511551 has been marked as a duplicate of this bug. ***
Comment 6 Roke Julian Lockhart Beedell 2025-11-04 23:13:05 UTC
(In reply to TraceyC from comment #5)

> *** Bug 511551 has been marked as a duplicate of this bug. ***

Per https://gitlab.freedesktop.org/mesa/mesa/-/issues/13652#note_3043599, Mesa doesn't have much idea what the cause is, and if others are experiencing it, my expectation that it was due to my debugging doesn't hold. Therefore, before I decide to file an issue, can anything of use be gleaned from this report?
Comment 7 TraceyC 2025-11-05 15:55:16 UTC
(In reply to Roke Julian Lockhart Beedell from comment #6)
> Per https://gitlab.freedesktop.org/mesa/mesa/-/issues/13652#note_3043599,
> Mesa doesn't have much idea what the cause is, and if others are
> experiencing it, my expectation that it was due to my debugging doesn't
> hold. Therefore, before I decide to file an issue, can anything of use be
> gleaned from this report?

Since this is a graphics driver issue, your best bet is to ask the Mesa folks what else might be useful to them.  I see they already looked at this report and weren't able to glean much from it so I really can't tell you what they might find useful in it.
Comment 8 Roke Julian Lockhart Beedell 2025-11-07 01:46:33 UTC
I've filed https://gitlab.freedesktop.org/mesa/mesa/-/issues/14257. Let's hope it's useful.
Comment 9 Roke Julian Lockhart Beedell 2025-11-13 16:53:00 UTC
Comment on attachment 183826 [details]
New crash information added by DrKonqi

I added https://bugs.kde.org/show_bug.cgi?id=511874#c6 because it turns out that it's a duplicate.