Bug 459860 - [Wayland] Random, seemingly unreproducible crash at KWin::Workspace::takeActivity
Summary: [Wayland] Random, seemingly unreproducible crash at KWin::Workspace::takeActi...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: activities (show other bugs)
Version: 5.25.90
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 460081 460574 467836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-30 13:24 UTC by Jaroslav Krpálek
Modified: 2023-05-29 17:00 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.26


Attachments
Backtrace. (29.67 KB, text/plain)
2022-09-30 13:24 UTC, Jaroslav Krpálek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Krpálek 2022-09-30 13:24:00 UTC
Created attachment 152522 [details]
Backtrace.

SUMMARY
I played a video in mpv, moved my mouse outside the window and I got a black screen w/ cursor (the compositor crashing)


STEPS TO REPRODUCE (unable to reproduce again, but I am reporting it anyway)
1. Open up a random video in mpv
2. Move a cursor outside the window
3. Done

OBSERVED RESULT
The compositor dies.

EXPECTED RESULT
The compositor does not die.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, kernel 5.19.11-zen
Graphics platform: Wayland
GPU drivers: Mesa 22.1.7
GPU: AMD Radeon RX 470 8GB
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Comment 1 Bug Janitor Service 2022-10-03 08:43:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3017
Comment 2 Vlad Zahorodnii 2022-10-03 08:45:33 UTC
It's possible that a destroyed window gets stuck in workspace's window list, which should be fixed in final 5.26 tars, but not 5.25.90. Can you check whether the issue is still reproducible in final 5.26? The linked MR may potentially fix the crash too.
Comment 3 Vlad Zahorodnii 2022-10-05 06:54:09 UTC
Git commit d2899928cdb8eb5b197ea592113a8dbc9de5160a by Vlad Zahorodnii.
Committed on 05/10/2022 at 06:38.
Pushed by vladz into branch 'master'.

Reset m_delayFocusWindow in Workspace::cancelDelayFocus()

M  +1    -0    src/workspace.cpp

https://invent.kde.org/plasma/kwin/commit/d2899928cdb8eb5b197ea592113a8dbc9de5160a
Comment 4 Vlad Zahorodnii 2022-10-05 07:03:39 UTC
Git commit d449ab5e39b395b9667c9559ec9f95cb071c6f0a by Vlad Zahorodnii.
Committed on 05/10/2022 at 07:03.
Pushed by vladz into branch 'Plasma/5.26'.

Reset m_delayFocusWindow in Workspace::cancelDelayFocus()


(cherry picked from commit d2899928cdb8eb5b197ea592113a8dbc9de5160a)

M  +1    -0    src/workspace.cpp

https://invent.kde.org/plasma/kwin/commit/d449ab5e39b395b9667c9559ec9f95cb071c6f0a
Comment 5 Vlad Zahorodnii 2022-10-10 10:57:34 UTC
*** Bug 460081 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2022-10-10 18:26:09 UTC
*** Bug 460081 has been marked as a duplicate of this bug. ***
Comment 7 Nicolas Fella 2022-10-17 15:02:47 UTC
*** Bug 460574 has been marked as a duplicate of this bug. ***
Comment 8 Nicolas Fella 2022-10-17 15:03:33 UTC
https://bugs.kde.org/show_bug.cgi?id=460574 suggests it's not fixed in 5.26.0
Comment 9 postix 2023-05-29 16:59:38 UTC
Pasting backtrace from attachment inline for searchability:

```
#0  0x00007f21cd3a46ea in KWin::Workspace::takeActivity(KWin::Window*, QFlags<KWin::Workspace::ActivityFlag>) (this=0x5649debc6a10, window=0x5649dfdb3250, flags=...) at /usr/src/debug/kwin-5.25.90/src/activation.cpp:361
#1  0x00007f21cd4e2d77 in KWin::Workspace::delayFocus() (this=0x5649debc6a10) at /usr/src/debug/kwin-5.25.90/src/workspace.cpp:1572
#2  0x00007f21cbabd381 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffeae4bb590, r=<optimized out>, this=0x5649dfcb6760, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#3  doActivate<false>(QObject*, int, void**) (sender=0x7f217000b080, signal_index=3, argv=0x7ffeae4bb590) at kernel/qobject.cpp:3919
#4  0x00007f21cbabf8df in QTimer::timeout(QTimer::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#5  0x00007f21cbab04c6 in QObject::event(QEvent*) (this=0x7f217000b080, e=0x7ffeae4bb700) at kernel/qobject.cpp:1324
#6  0x00007f21cb178b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7f217000b080, e=0x7ffeae4bb700) at kernel/qapplication.cpp:3637
#7  0x00007f21cba8cb88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f217000b080, event=0x7ffeae4bb700) at kernel/qcoreapplication.cpp:1064
#8  0x00007f21cbad6d53 in QTimerInfoList::activateTimers() (this=0x5649de833ac8) at kernel/qtimerinfo_unix.cpp:643
#9  0x00007f21cbad7202 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:516
#10 0x00005649de1ad3d2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#11 0x00007f21cba8532c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffeae4bb8a0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#12 0x00007f21cba8fe59 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#13 0x00007f21cbf3a0e2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#14 0x00007f21cb176f2a in QApplication::exec() () at kernel/qapplication.cpp:2829
#15 0x00005649de0ce5bc in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin-5.25.90/src/main_wayland.cpp:620
````
Comment 10 postix 2023-05-29 17:00:31 UTC
*** Bug 467836 has been marked as a duplicate of this bug. ***