Summary: | Kwin coredumps in KWin::Workspace::raiseWindow() using Ctrl + Alt + A on discord | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Marcelo Bossoni <mmbossoni> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate |
Priority: | NOR | ||
Version First Reported In: | 6.0.4 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 6.2.0 | |
Sentry Crash Report: |
Description
Marcelo Bossoni
2024-05-07 00:16:21 UTC
We'll need a backtrace of it so we can figure out what's going on. Can you please attach a 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! Is that what you were expecting? Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayl'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f1fa3240d74 in KWin::Workspace::raiseWindow(KWin::Window*, bool) () from /usr/lib/libkwin.so.6 [Current thread is 1 (Thread 0x7f1f9b61aec0 (LWP 2392))] (gdb) bt #0 0x00007f1fa3240d74 in KWin::Workspace::raiseWindow(KWin::Window*, bool) () at /usr/lib/libkwin.so.6 #1 0x00007f1fa315e917 in KWin::Workspace::activateWindow(KWin::Window*, bool) () at /usr/lib/libkwin.so.6 #2 0x00007f1fa0b97549 in ??? () at /usr/lib/libQt6Core.so.6 #3 0x00007f1fa14f4087 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt6Gui.so.6 #4 0x00007f1fa0b97549 in ??? () at /usr/lib/libQt6Core.so.6 #5 0x00007f1fa2ec31e0 in ??? () at /usr/lib/libKF6GlobalAccel.so.6 #6 0x00007f1fa2ec3cc0 in ??? () at /usr/lib/libKF6GlobalAccel.so.6 #7 0x00007f1fa18c408f in ??? () at /usr/lib/libQt6DBus.so.6 #8 0x00007f1fa0b88324 in QObject::event(QEvent*) () at /usr/lib/libQt6Core.so.6 #9 0x00007f1fa1afbfcb in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6 #10 0x00007f1fa0b3daa8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt6Core.so.6 #11 0x00007f1fa0b3de34 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt6Core.so.6 #12 0x00007f1fa0cb1abb in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6 #13 0x00007f1fa15c14e2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Gui.so.6 #14 0x00007f1fa0b45c3e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6 #15 0x00007f1fa0b416a8 in QCoreApplication::exec() () at /usr/lib/libQt6Core.so.6 #16 0x000063cd0a24cdee in ??? () #17 0x00007f1fa0441d4a in ??? () at /usr/lib/libc.so.6 #18 0x00007f1fa0441e0c in __libc_start_main () at /usr/lib/libc.so.6 #19 0x000063cd0a252df5 in ??? () Yep. We're still missing some symbols--most notably for kglobalaccel--but that's better than nothing. What did you configure Ctr+Alt+A to do, exactly? Launch Discord? Nothing to be honest It is just KDE default that supposedly is Ctrl+Alt+A Activate Window Demanding Attention At least according to this site https://docs.kde.org/stable5/en/khelpcenter/fundamentals/kbd.html Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayl'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000077c121640d74 in KWin::Workspace::raiseWindow (this=0x622554311fa0, window=0x622555f1bdc0, nogroup=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.4.1/src/layers.cpp:365 365 if (!nogroup && window->isTransient()) { [Current thread is 1 (Thread 0x77c11994ff00 (LWP 839))] (gdb) bt #0 0x000077c121640d74 in KWin::Workspace::raiseWindow (this=0x622554311fa0, window=0x622555f1bdc0, nogroup=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.4.1/src/layers.cpp:365 #1 0x000077c12155e917 in KWin::Workspace::activateWindow (force=false, window=0x622555f1bdc0, this=0x622554311fa0) at /usr/src/debug/kwin/kwin-6.0.4.1/src/activation.cpp:297 #2 KWin::Workspace::activateWindow (this=0x622554311fa0, window=0x622555f1bdc0, force=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.4.1/src/activation.cpp:282 #3 0x000077c11ed9b57f in QtPrivate::QSlotObjectBase::call (a=0x7fffc19650b0, r=0x622554311fa0, this=0x6225544816c0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:469 #4 doActivate<false> (sender=0x622554556470, signal_index=7, argv=0x7fffc19650b0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4078 #5 0x000077c11f701eda in QAction::triggered (_t1=<optimized out>, this=0x622554556470) at /usr/src/debug/qt6-base/build/src/gui/Gui_autogen/include/moc_qaction.cpp:480 #6 QAction::activate (this=0x622554556470, event=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qaction.cpp:1102 #7 0x000077c11ed9b57f in QtPrivate::QSlotObjectBase::call (a=0x7fffc1965240, r=0x77c12056bcc0 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_116Q_QGS_s_instanceEEEE8instanceEvE6holder.lto_priv.0>, this=0x622554729c30, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:469 #8 doActivate<false> (sender=0x622554731470, signal_index=3, argv=0x7fffc1965240) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4078 #9 0x000077c12055f1e0 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (_t3=<optimized out>, _t2=<optimized out>, _t1=<optimized out>, this=<optimized out>) at /usr/src/debug/kglobalaccel/build/src/moc_kglobalaccel_component_interface.cpp:255 #10 OrgKdeKglobalaccelComponentInterface::qt_static_metacall (_o=_o@entry=0x622554731470, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=0, _a=_a@entry=0x7fffc1965418) at /usr/src/debug/kglobalaccel/build/src/moc_kglobalaccel_component_interface.cpp:165 #11 0x000077c12055fcc0 in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x622554731470, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffc1965418) at /usr/src/debug/kglobalaccel/build/src/moc_kglobalaccel_component_interface.cpp:236 #12 0x000077c11fbe7def in QDBusConnectionPrivate::deliverCall (this=0x77c114001690, object=0x622554731470, msg=..., metaTypes=<optimized out>, slotIdx=5) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbusintegrator.cpp:1007 #13 0x000077c11ed8c147 in QObject::event (this=0x622554731470, e=0x6225559056e0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1446 #14 0x000077c11fefc44d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x622554731470, e=0x6225559056e0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287 #15 0x000077c11ed3fe18 in QCoreApplication::notifyInternal2 (receiver=0x622554731470, event=event@entry=0x6225559056e0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142 #16 0x000077c11ed401d2 in QCoreApplication::sendEvent (event=0x6225559056e0, receiver=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583 #17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x622553f98460) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1940 #18 0x000077c11eeb9cbd in QEventDispatcherUNIX::processEvents (this=0x622554036b10, flags=flags@entry=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:415 #19 0x000077c11f7e12b3 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qunixeventdispatcher.cpp:27 #20 0x000077c11ed48350 in QEventLoop::processEvents (flags=..., this=0x7fffc1965980) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100 #21 QEventLoop::exec (this=0x7fffc1965980, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182 #22 0x000077c11ed43c1d in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74 #23 0x000077c11fef863a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2555 #24 0x00006225523ccdee in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.4.1/src/main_wayland.cpp:609 Ah, right you are. It appears to have changed to Meta+Alt+A in Plasma 6 at least. With current git master, I can't reproduce a crash when pressing either of those shortcuts when no window is demanding attention. I'm actually having a hard time making a window demand attention to test that case. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5868 Git commit cd2d5b07d572c230c9df4731c80cb963e7960d10 by Vlad Zahorodnii. Committed on 10/06/2024 at 13:21. Pushed by vladz into branch 'master'. Prevent potentially adding closed windows to the attention chain M +3 -0 src/activation.cpp https://invent.kde.org/plasma/kwin/-/commit/cd2d5b07d572c230c9df4731c80cb963e7960d10 A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5869 Git commit 4b3f6a4312c02243c33d01e38ce2827664cae8ac by Vlad Zahorodnii. Committed on 10/06/2024 at 13:31. Pushed by vladz into branch 'Plasma/6.1'. Prevent potentially adding closed windows to the attention chain (cherry picked from commit cd2d5b07d572c230c9df4731c80cb963e7960d10) Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org> M +3 -0 src/activation.cpp https://invent.kde.org/plasma/kwin/-/commit/4b3f6a4312c02243c33d01e38ce2827664cae8ac Is the issue still happening in 6.1.5? I've been using plasma 6.2 beta in the last days, I'll try to reproduce it there (assuming this was also pushed to 6.2) I'm no longer able to reproduce this issue on kwin 6.2 beta Great! |