Bug 494938 - kwin_wayland can crash in KWin::SeatInterface::setDragTarget() when attempting to touch-scroll the Clipboard widget
Summary: kwin_wayland can crash in KWin::SeatInterface::setDragTarget() when attemptin...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: Wayland drag-and-drop (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-17 15:59 UTC by Nate Graham
Modified: 2025-10-30 13:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2024-10-17 15:59:26 UTC
Managed to reproduce this twice, but it seems a bit tricky. I have to scroll up and down quickly, starting from different places in the widget.

backtrace:

Thread 1 (Thread 0x7fcd7ae06040 (LWP 2676)):
[KCrash Handler]
#5  0x00007fcd8439fdd5 in operator== (p1=<optimized out>, p2=<optimized out>) at /usr/include/qt6/QtCore/qpoint.h:253
#6  operator!= (p1=<optimized out>, p2=...) at /usr/include/qt6/QtCore/qpoint.h:253
#7  KWin::SeatInterface::setDragTarget (this=0x214c39c0, dropTarget=0x24aad7e0, surface=0x23793b50, globalPosition=..., inputTransformation=...) at /home/nate/kde/src/kwin/src/wayland/seat.cpp:502
#8  KWin::SeatInterface::setDragTarget (this=this@entry=0x214c39c0, dropTarget=0x24aad7e0, surface=surface@entry=0x23793b50, globalPosition=..., inputTransformation=...) at /home/nate/kde/src/kwin/src/wayland/seat.cpp:480
#9  0x00007fcd840b787b in KWin::DragAndDropInputFilter::touchMotion (this=0x21493390, id=<optimized out>, pos=..., time=std::chrono::duration = { <optimized out>us }) at /home/nate/kde/src/kwin/src/input.cpp:2385
#10 0x00007fcd841e57a5 in QHashPrivate::Data<QHashPrivate::Node<int, QHashDummyValue> >::~Data (this=0x7ffc03952038, __in_chrg=<optimized out>) at /usr/include/qt6/QtCore/qhash.h:770
#11 QHash<int, QHashDummyValue>::clear (this=0x214c3a10) at /usr/include/qt6/QtCore/qhash.h:952
#12 QSet<int>::clear (this=0x214c3a10) at /usr/include/qt6/QtCore/qset.h:61
#13 KWin::TouchInputRedirection::cancel (this=0x214c39c0) at /home/nate/kde/src/kwin/src/touch_input.cpp:169
#14 KWin::TouchInputRedirection::cancel (this=0x214c39c0) at /home/nate/kde/src/kwin/src/touch_input.cpp:159
#15 0x4076186da16b0b54 in ??? ()
#16 0x408297978e23f79d in ??? ()
#17 0x00007fcd00000001 in ??? ()
#18 0x0000000000000031 in ??? ()
#19 0x0000000000000000 in ??? ()
Comment 1 Vlad Zahorodnii 2025-10-30 13:03:15 UTC
The relevant touch handling bits have been changed extensively in 6.5. Please reopen this bug report if the crash still occurs.