Bug 476932

Summary: plasmashell frequently crashes after changing panel settings
Product: [Plasma] plasmashell Reporter: Pawel <bednarczyk.pawel>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: nate, niccolo.venerandi
Priority: NOR Keywords: drkonqi, qt6
Version First Reported In: 5.27.80   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Pawel 2023-11-13 11:30:17 UTC
Application: plasmashell (5.27.80)

Qt Version: 6.6.0
Frameworks Version: 5.245.0
Operating System: Linux 6.6.1-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.80 [CoredumpBackend]

-- Information about the crash:
When in the panel edit mode and changing settings, plasma shell routinly crashes. This can be reproduced almost always.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#6  0x00007f3ad2ba45cd in QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow(QWindow*, QEvent*) (window=window@entry=0x7f3a28930770, event=event@entry=0x7ffed0dfaa40) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/gui/kernel/qguiapplication.cpp:2046
#7  0x00007f3ad3574cfa in QApplication::notify(QObject*, QEvent*) (this=0x7ffed0dfafc0, receiver=0x7f3a28930770, e=0x7ffed0dfaa40) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/widgets/kernel/qapplication.cpp:2592
#8  0x00007f3ad25626d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f3a28930770, event=0x7ffed0dfaa40) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/corelib/kernel/qcoreapplication.cpp:1118
#9  0x00007f3ad256271d in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/corelib/kernel/qcoreapplication.cpp:1536
#10 0x00007f3ad2be9ad0 in QPlatformWindow::deliverUpdateRequest() (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/gui/kernel/qplatformwindow.cpp:783


Reported using DrKonqi
Comment 1 Pawel 2023-11-13 11:30:18 UTC
Created attachment 163115 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2023-11-14 23:19:20 UTC
Actual backtrace:

Thread 1 (Thread 0x7f3a3b43a6c0 (LWP 220376)):
[KCrash Handler]
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007f3ad1eac8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#7  0x00007f3ad1e5c668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f3ad1e444b8 in __GI_abort () at abort.c:79
#9  0x00007f3ad1e45390 in __libc_message (fmt=fmt@entry=0x7f3ad1fbc55d "%s\n") at ../sysdeps/posix/libc_fatal.c:150
#10 0x00007f3ad1eb67b7 in malloc_printerr (str=str@entry=0x7f3ad1fbedd8 "munmap_chunk(): invalid pointer") at malloc.c:5765
#11 0x00007f3ad1eb6a5c in munmap_chunk (p=p@entry=0x7f3a28723280) at malloc.c:3035
#12 0x00007f3ad1ebb39a in __GI___libc_free (mem=mem@entry=0x7f3a28723290) at malloc.c:3381
#13 0x00007f3ad4eae484 in wl_closure_destroy (closure=0x7f3a28723290) at ../wayland-1.22.0/src/connection.c:1388
#14 wl_closure_destroy (closure=0x7f3a28723290) at ../wayland-1.22.0/src/connection.c:1381
#15 wl_proxy_marshal_array_flags (proxy=proxy@entry=0x7f3a281b9440, opcode=opcode@entry=1, interface=interface@entry=0x0, version=version@entry=4, flags=flags@entry=0, args=args@entry=0x7f3a3b4396d0) at ../wayland-1.22.0/src/wayland-client.c:896
#16 0x00007f3ad4eaebda in wl_proxy_marshal_flags (proxy=0x7f3a281b9440, opcode=1, interface=0x0, version=4, flags=0) at ../wayland-1.22.0/src/wayland-client.c:823
#17 0x00007f3acc582096 in wl_surface_attach () at /usr/include/wayland-client-protocol.h:3801
#18 dri2_wl_swap_buffers_with_damage () at ../mesa-23.2.1/src/egl/drivers/dri2/platform_wayland.c:1657
#19 0x00007f3acc572328 in dri2_swap_buffers () at ../mesa-23.2.1/src/egl/drivers/dri2/egl_dri2.c:1881
#20 0x00007f3acc56a06d in eglSwapBuffers () at ../mesa-23.2.1/src/egl/main/eglapi.c:1433
#21 0x00007f3acd51c08b in QtWaylandClient::QWaylandGLContext::swapBuffers(QPlatformSurface*) (this=0x7f3a28002200, surface=<optimized out>) at /usr/src/debug/qt6-wayland/qtwayland-everywhere-src-6.6.0/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:375
#22 0x00007f3ad2ecba2c in QRhiGles2::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) (this=0x7f3a280018e0, swapChain=0x7f3a281bcc90, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/gui/rhi/qrhigles2.cpp:2056
#23 0x00007f3ad2d89e1c in QRhi::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) (this=0x7f3a280018c0, swapChain=0x7f3a281bcc90, flags=..., flags@entry=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/gui/rhi/qrhi.cpp:10181
#24 0x00007f3ad4807886 in QSGRenderThread::syncAndRender() (this=<optimized out>) at /usr/include/qt6/QtCore/qflags.h:73
#25 QSGRenderThread::run() (this=0x55931eb9b2f0) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.0/src/quick/scenegraph/qsgthreadedrenderloop.cpp:946
#26 0x00007f3ad26c97b3 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/corelib/thread/qthread_unix.cpp:324
#27 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/corelib/thread/qthread_unix.cpp:260
#28 QThreadPrivate::start(void*) (arg=0x55931eb9b2f0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.0/src/corelib/thread/qthread_unix.cpp:283
#29 0x00007f3ad1eaa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#30 0x00007f3ad1f2e7cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Comment 3 Nate Graham 2023-11-15 19:08:57 UTC
Let me know if it's still happening for you today. Some changes went in that might have fixed it for you. They fixed it for me.
Comment 4 Pawel 2023-11-15 19:11:46 UTC
I will only be able to test once the respective commits make their way to Arch Linux. I am also happy to apply patches manually if you point me to the pull requests which address this issue.
Comment 5 Pawel 2023-11-22 21:16:08 UTC
*** Bug 477388 has been marked as a duplicate of this bug. ***