DESCRIPTION When the Virtual Desktop Pager widget is visible (i.e., more than one virtual desktops), plasmashell doesn't exit on logout, until systemd kills it after 30s timeout. STEPS TO REPRODUCE 1. Create a new user. 2. Add a virtual desktop, so there are two in total. 3. Logout. 4. Login. 5. Logout again. OBSERVED RESULT Plasma session stuck in a blank screen for ~30s before returning to the display manager. Systemd log says plasmashell not terminating before the timeout. Removing the pager widget fixes the problem. EXPECTED RESULT Plasma session terminates immediately. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.7.90 KDE Frameworks Version: 6.30.0 Qt Version: 6.12.0beta4
BTW, can't reproduce on the latest kde-linux (with Qt 6.11.2). So might be a Qt 6.12 problem.
Sounds likely, since both of the distros you tested this on are Arch-based and shipping git master of KDE software, so Qt is the major difference. We'll need to know why before it can be fixed in our code or reported to Qt as a regression.
We cannot reproduce this issue. There have been some similar reports of this happening but this report doesn't contain much we can work with. As with any crash we need a backtrace for this to be actionable. Please attach gdb when it is in the frozen state: https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Core is too large for attachment, so I uploaded it to: https://drive.google.com/file/d/1ctYFjbV2vtv7xyGvzZBph-bEgRF_lWkO/view?usp=sharing Stack trace: #0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56 #1 0x00007f96c9e94cd9 in internal_syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=0, a6=4294967295, nr=202) at ../sysdeps/unix/sysv/linux/sysdep-cancel.h:53 #2 __futex_abstimed_wait_common64 (private=<optimized out>, futex_word=<optimized out>, expected=<optimized out>, op=<optimized out>, abstime=<optimized out>, cancel=true) at futex-internal.c:57 #3 __futex_abstimed_wait_common (futex_word=<optimized out>, expected=<optimized out>, clockid=<optimized out>, abstime=<optimized out>, private=<optimized out>, cancel=true) at futex-internal.c:87 #4 __GI___futex_abstimed_wait_cancelable64 (futex_word=<optimized out>, expected=<optimized out>, clockid=<optimized out>, abstime=<optimized out>, private=<optimized out>) at futex-internal.c:139 #5 0x00007f96c9e99eed in __pthread_clockjoin_ex (threadid=140284052354752, thread_return=0x0, clockid=1, abstime=0x0, cancel=true) at pthread_join_common.c:67 #6 0x00007f96ca9770a6 in operator() (__closure=<synthetic pointer>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:990 #7 QThreadPrivate::wait (this=0x5569fda20c40, locker=..., deadline=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:1012 #8 0x00007f96ca8bb5e8 in QThread::wait (this=this@entry=0x5569fda20bc0, deadline=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread.cpp:974 #9 0x00007f96cd3cbed6 in QQuickPixmapReader::~QQuickPixmapReader (this=0x5569fda20bc0, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickpixmapcache.cpp:664 #10 0x00007f96cd3cca55 in QQuickPixmapReader::~QQuickPixmapReader (this=0x5569fda20bc0, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/util/qquickpixmapcache.cpp:686 #11 0x00007f96ca7e57da in QObjectPrivate::deleteChildren (this=this@entry=0x5569fafef390) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:2292 #12 0x00007f96ca7ece66 in QObject::~QObject (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1190 #13 0x00007f96cda143ae in std::destroy_at<QQmlEngine> (__location=0x5569fafee7f0) at /usr/include/c++/16/bits/stl_construct.h:88 #14 std::_Destroy<QQmlEngine> (__pointer=0x5569fafee7f0) at /usr/include/c++/16/bits/stl_construct.h:164 #15 std::allocator_traits<std::allocator<void> >::destroy<QQmlEngine> (__p=0x5569fafee7f0) at /usr/include/c++/16/bits/alloc_traits.h:859 #16 std::_Sp_counted_ptr_inplace<QQmlEngine, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x5569fafee7e0) at /usr/include/c++/16/bits/shared_ptr_base.h:682 #17 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use (this=0x5569fafee7e0) at /usr/include/c++/16/bits/shared_ptr_base.h:174 #18 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use_cold (this=0x5569fafee7e0) at /usr/include/c++/16/bits/shared_ptr_base.h:198 #19 0x00007f96cda3a0b8 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=<optimized out>) at /usr/include/c++/16/bits/shared_ptr_base.h:430 #20 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x5569fda96c80, this=<optimized out>) at /usr/include/c++/16/bits/shared_ptr_base.h:1137 #21 std::__shared_ptr<QQmlEngine, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x5569fda96c78, this=<optimized out>) at /usr/include/c++/16/bits/shared_ptr_base.h:1611 #22 std::shared_ptr<QQmlEngine>::~shared_ptr (this=0x5569fda96c78, this=<optimized out>) at /usr/include/c++/16/bits/shared_ptr.h:175 #23 PlasmaQuick::DialogBackground::~DialogBackground (this=0x5569fda96c50, this=<optimized out>) at /usr/src/debug/libplasma/libplasma-6.7.90/src/plasmaquick/dialogbackground_p.cpp:36 #24 PlasmaQuick::DialogBackground::~DialogBackground (this=0x5569fda96c50, this=<optimized out>) at /usr/src/debug/libplasma/libplasma-6.7.90/src/plasmaquick/dialogbackground_p.cpp:36 #25 0x00007f96ca7e57da in QObjectPrivate::deleteChildren (this=this@entry=0x5569fbc21500) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:2292 #26 0x00007f96ca7ece66 in QObject::~QObject (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1190 #27 0x00007f96cd266c59 in QQuickRootItem::~QQuickRootItem (this=0x5569fc53a1c0, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow_p.h:63 #28 QQuickRootItem::~QQuickRootItem (this=0x5569fc53a1c0, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow_p.h:63 #29 0x00007f96cd2695f4 in QQuickWindow::~QQuickWindow (this=0x5569fc5074b0, this=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/items/qquickwindow.cpp:1252 #30 0x00007f96c1387e82 in ToolTipDialog::~ToolTipDialog (this=0x5569fc5074b0, this=<optimized out>) at /usr/src/debug/libplasma/libplasma-6.7.90/src/declarativeimports/core/tooltipdialog.cpp:54 #31 ToolTipArea::~ToolTipArea (this=this@entry=0x5569fd6c8df0, this=<optimized out>) at /usr/src/debug/libplasma/libplasma-6.7.90/src/declarativeimports/core/tooltiparea.cpp:60 #32 0x00007f96c1388082 in QQmlPrivate::QQmlElement<ToolTipArea>::~QQmlElement (this=0x5569fd6c8df0, this=<optimized out>) at /usr/include/qt6/QtQml/qqmlprivate.h:114 #33 QQmlPrivate::QQmlElement<ToolTipArea>::~QQmlElement (this=0x5569fd6c8df0, this=<optimized out>) at /usr/include/qt6/QtQml/qqmlprivate.h:114 #34 0x00007f96ca7e57da in QObjectPrivate::deleteChildren (this=this@entry=0x5569fadecef0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:2292 #35 0x00007f96ca7ece66 in QObject::~QObject (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1190 #36 0x00005569ec36cee7 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-6.7.90/shell/main.cpp:205
i've also been hitting this on fedora 44 that has qt 6.11.2 using the kde beta copr https://copr.fedorainfracloud.org/coprs/g/kdesig/kde-beta/ coredump: https://1drv.ms/u/c/b20a0ed044edf2c7/IQCBd8z1o6EiTqbNlBacRxbrAXJ_FeWM27zQyUCj9-sfrrE?e=KoluuI backtrace: #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f8453e7bd93 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89 #2 0x00007f8453e20e8e in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f8457aff0d4 in KCrash::defaultCrashHandler (sig=6) at /usr/src/debug/kf6-kcrash-6.30.0-1.fc44.x86_64/src/kcrash.cpp:653 #4 <signal handler called> #5 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:52 #6 0x00007f8453e7652c in __internal_syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=a5@entry=0, a6=a6@entry=4294967295, nr=202) at cancellation.c:49 #7 0x00007f8453e76877 in __futex_abstimed_wait_common64 (private=<optimized out>, futex_word=<optimized out>, expected=<optimized out>, op=<optimized out>, abstime=<optimized out>, cancel=true) at futex-internal.c:57 #8 __futex_abstimed_wait_common (futex_word=<optimized out>, expected=<optimized out>, clockid=<optimized out>, abstime=<optimized out>, private=<optimized out>, cancel=true) at futex-internal.c:87 #9 __GI___futex_abstimed_wait_cancelable64 (futex_word=<optimized out>, expected=<optimized out>, clockid=<optimized out>, abstime=<optimized out>, private=<optimized out>) at futex-internal.c:139 #10 0x00007f8453e7ba3d in __pthread_clockjoin_ex (threadid=140204400682688, thread_return=0x0, clockid=1, abstime=0x0, cancel=true) at pthread_join_common.c:67 #11 0x00007f8454707117 in operator() (__closure=<synthetic pointer>) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/thread/qthread_unix.cpp:977 #12 QThreadPrivate::wait (this=this@entry=0x55df66546120, locker=..., deadline=...) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/thread/qthread_unix.cpp:999 #13 0x00007f845464a2a5 in QThread::wait (this=this@entry=0x55df66564a50, deadline=...) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/thread/qthread.cpp:974 #14 0x00007f84574ecd14 in QQuickPixmapReader::~QQuickPixmapReader (this=0x55df66564a50) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/util/qquickpixmapcache.cpp:663 #15 0x00007f84574ed5e5 in QQuickPixmapReader::~QQuickPixmapReader (this=0x55df66564a50) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/util/qquickpixmapcache.cpp:685 #16 0x00007f845457d6b2 in QObjectPrivate::deleteChildren (this=this@entry=0x55df63249890) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:2280 #17 0x00007f845457d332 in QObject::~QObject (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:1178 #18 0x00007f8457dcaa8e in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use_cold() () from /lib64/libPlasmaQuick.so.8 #19 0x00007f8457deffd8 in PlasmaQuick::DialogBackground::~DialogBackground() () from /lib64/libPlasmaQuick.so.8 #20 0x00007f845457d6b2 in QObjectPrivate::deleteChildren (this=this@entry=0x55df64a80a40) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:2280 #21 0x00007f845457d332 in QObject::~QObject (this=this@entry=0x55df64a80a10) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:1178 #22 0x00007f84572bb923 in QQuickItem::~QQuickItem (this=this@entry=0x55df64a80a10) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/items/qquickitem.cpp:2451 #23 0x00007f84573896ad in QQuickRootItem::~QQuickRootItem (this=0x55df64a80a10) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/items/qquickwindow_p.h:63 #24 QQuickRootItem::~QQuickRootItem (this=0x55df64a80a10) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/items/qquickwindow_p.h:63 #25 0x00007f8457384290 in QQuickWindow::~QQuickWindow (this=0x55df64a80330) at /usr/src/debug/qt6-qtdeclarative-6.11.2-2.fc44.x86_64/src/quick/items/qquickwindow.cpp:1247 #26 0x00007f843c7dd3d2 in ToolTipArea::~ToolTipArea() () from /usr/lib64/qt6/qml/org/kde/plasma/core/libcorebindingsplugin.so #27 0x00007f843c7dd5c1 in QQmlPrivate::QQmlElement<ToolTipArea>::~QQmlElement() [clone .lto_priv.0] () from /usr/lib64/qt6/qml/org/kde/plasma/core/libcorebindingsplugin.so #28 0x00007f845457d6b2 in QObjectPrivate::deleteChildren (this=this@entry=0x55df6301e9c0) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:2280 #29 0x00007f845457d332 in QObject::~QObject (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.11.2-2.fc44.x86_64/src/corelib/kernel/qobject.cpp:1178 #30 0x000055df297f21b7 in main ()
Still happens with Plasma 6.7.91 and Qt 6.12.0rc1. Happens ~50% of times logging out.
Setting to confirmed since it's happened on a second system
https://codereview.qt-project.org/c/qt/qtdeclarative/+/777121
Merged upstream
Confirming on stable Plasma 6.8.0 / Qt 6.12.0 The original report was against 6.7.90 / Qt 6.12.0 beta/rc, so I'd like to confirm this also happens on stable releases: - CachyOS (Arch-based), Plasma 6.8.0, Qt 6.12.0 (qt6-base 6.12.0-3, qt6-declarative 6.12.0-1.1), KWin Wayland. - 4 virtual desktops, Pager widget in the panel. - Happens intermittently (roughly half of shutdowns). plasmashell ignores SIGTERM and systemd kills it after TimeoutStopSec=40s (plasma-plasmashell.service: State 'stop-sigterm' timed out. Killing.). Main thread at the hang: #4 QThread::wait(QDeadlineTimer) #5 QQuickPixmapReader::~QQuickPixmapReader() #6 QQuickPixmapReader::~QQuickPixmapReader() #7 QObjectPrivate::deleteChildren() #8 QObject::~QObject() ... #14 QQuickWindow::~QQuickWindow() The QQuickPixmapRea thread is alive in QThread::exec() → QEventLoop::exec() → ppoll() and never exits. An strace shows the main thread waking it via eventfd; the thread reads the event and goes straight back to ppoll(), then the main thread blocks in a futex until SIGKILL. Removing the Pager widget makes shutdown immediate again.
*** Bug 527208 has been marked as a duplicate of this bug. ***
*** Bug 527880 has been marked as a duplicate of this bug. ***
*** Bug 528769 has been marked as a duplicate of this bug. ***