Bug 458316

Summary: KWin crashes in KWin::OffscreenQuickView::forwardMouseEvent() when dragging a window over the virtual desktops and scrolling
Product: [Plasma] kwin Reporter: Jack Hill <jackhill3103>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: nate
Priority: NOR    
Version First Reported In: 5.25.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jack Hill 2022-08-25 21:31:52 UTC
SUMMARY


STEPS TO REPRODUCE
1. Enter overview effect
2. Click and hold on a window
3. Scroll the mouse wheel at least once
4. Drag the window over a virtual desktop (not the desktop that the window is currently in)
5. Scroll the mousewheel

OBSERVED RESULT
KWin crashes

EXPECTED RESULT
Not sure what to expect but KWin shouldn't crash

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220824
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.2-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Jack Hill 2022-08-25 21:41:13 UTC
Output from the crash notification is the following:

Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f47f85ac7a0 in QWindow::mapToGlobal(QPoint const&) const () at /lib64/libQt5Gui.so.5
#5  0x00007f47f6257590 in QQuickWindowPrivate::deliverSinglePointEventUntilAccepted(QQuickPointerEvent*) () at /lib64/libQt5Quick.so.5
#6  0x00007f47f6257deb in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) () at /lib64/libQt5Quick.so.5
#7  0x00007f47f625803e in QQuickWindow::wheelEvent(QWheelEvent*) () at /lib64/libQt5Quick.so.5
#8  0x00007f47f85b1a15 in QWindow::event(QEvent*) () at /lib64/libQt5Gui.so.5
#9  0x00007f47f74c241e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#10 0x00007f47f8144fb8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#11 0x00007f47f7cf041f in KWin::OffscreenQuickView::forwardMouseEvent(QEvent*) () at /lib64/libkwineffects.so.13
#12 0x00007f47f7cf0f8b in KWin::QuickSceneEffect::windowInputMouseEvent(QEvent*) () at /lib64/libkwineffects.so.13
#13 0x00007f47f91d4f03 in KWin::EffectsHandlerImpl::checkInputWindowEvent(QWheelEvent*) () at /lib64/libkwin.so.5
#14 0x00007f47f0141d32 in  () at /usr/lib64/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#15 0x00007f47f921ee97 in KWin::Application::dispatchEvent(xcb_generic_event_t*) () at /lib64/libkwin.so.5
#16 0x00007f47f814252f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () at /lib64/libQt5Core.so.5
#17 0x00007f47f1de447f in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /lib64/libQt5XcbQpa.so.5
#18 0x00007f47f1de5b16 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5XcbQpa.so.5
#19 0x00007f47f1e0bbbc in  () at /lib64/libQt5XcbQpa.so.5
#20 0x00007f47f8143a2b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#21 0x00007f47f814bb96 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#22 0x000055e5087b709d in  ()
#23 0x00007f47f6cd65b0 in __libc_start_call_main () at /lib64/libc.so.6
#24 0x00007f47f6cd6679 in __libc_start_main_impl () at /lib64/libc.so.6
#25 0x000055e5087b8455 in  ()
[Inferior 1 (process 3092) detached]
Comment 2 Jack Hill 2022-08-25 21:52:53 UTC
On wayland it seems to destroy all my open windows too. On X11 it just restarts kwin and all my windows remain where they were
Comment 3 Nate Graham 2022-08-30 19:36:04 UTC
Can reproduce 100% with those exact steps on current git master.
Comment 4 David Edmundson 2024-05-29 10:32:22 UTC
This bug is a crash report that is over a year old without any activity, as our software is always changing, the information in this ticket is unlikely to still be useful.

If this issue is still reproducible in a newer version of kwin (5.27.5 or 6.0) please reopen this ticket with a bumped version number or it will be closed in 30 days.
Comment 5 Jack Hill 2024-06-03 11:09:06 UTC
Can't reproduce anymore

Operating System: openSUSE Tumbleweed 20240524
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-1-default (64-bit)
Graphics Platform: Wayland