Bug 431564

Summary: KWin crashes in KWin::AbstractClient::setDesktops when dragging a window to a black part of the Desktop Grid view
Product: [Plasma] kwin Reporter: jakubby
Component: effects-desktop-gridAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bugs, jakubby, nate
Priority: NOR    
Version: 5.20.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Bug presentation, drag and dropping the black void.
This one should be higher quality.

Description jakubby 2021-01-13 20:45:59 UTC
SUMMARY
Go to desktop grid with auto layout.

STEPS TO REPRODUCE
1. Go to desktop grid with auto layout.
2. Drag and drop a black portion of the screen.
3. Krash.

OBSERVED RESULT
Mouse shows that it is in drag and drop mode.
Once we let go of the left mouse button kwin_x11 restarts.

EXPECTED RESULT
We don't trigger a drag and drop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-01-13 21:15:51 UTC
Can you please attach a backtrace of the crash? See https://community.kde.org/Get_Involved/Issue_Reporting#Crash_reports_must_include_backtraces
Comment 2 jakubby 2021-01-13 21:55:03 UTC
Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f0737ee4c18 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () at /usr/lib/libkwin.so.5
#5  0x00007f0737f3532a in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () at /usr/lib/libkwin.so.5
#6  0x00007f0736470d37 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#7  0x00007f0737f36957 in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) () at /usr/lib/libkwin.so.5
#8  0x00007f072c2ad4c9 in  () at /usr/lib/qt/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#9  0x00007f0737f40028 in KWin::Workspace::workspaceEvent(xcb_generic_event_t*) () at /usr/lib/libkwin.so.5
#10 0x00007f0736ba6f27 in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () at /usr/lib/libQt5Core.so.5
#11 0x00007f073079e6f3 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib/libQt5XcbQpa.so.5
#12 0x00007f073079fc69 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5XcbQpa.so.5
#13 0x00007f07307c354e in  () at /usr/lib/libQt5XcbQpa.so.5
#14 0x00007f0736ba83fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#15 0x00007f0736bb0894 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#16 0x0000555864d22412 in  ()
#17 0x00007f073654a152 in __libc_start_main () at /usr/lib/libc.so.6
#18 0x0000555864d2294e in _start ()
[Inferior 1 (process 72529) detached]
Comment 3 jakubby 2021-01-13 22:30:07 UTC
Created attachment 134822 [details]
Bug presentation, drag and dropping the black void.

Bug presentation, drag and dropping the black void.
[h264][1080p][fastdecode][5s][no sound]
Comment 4 jakubby 2021-01-13 22:34:50 UTC
Created attachment 134823 [details]
This one should be higher quality.
Comment 5 Vlad Zahorodnii 2021-01-14 07:33:17 UTC
*** Bug 423288 has been marked as a duplicate of this bug. ***
Comment 6 Vlad Zahorodnii 2021-01-14 07:33:45 UTC

*** This bug has been marked as a duplicate of bug 429202 ***