Bug 438813

Summary: Kwin crashed using the desktop grid effect
Product: [Plasma] kwin Reporter: postix <postix>
Component: effects-desktop-gridAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, postix
Priority: NOR Flags: postix: X11+
Version: 5.22.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb thread apply all bt

Description postix 2021-06-17 16:14:12 UTC
Created attachment 139441 [details]
gdb thread apply all bt

SUMMARY

Kwin crashed when I was using the desktop grid, where I believe I was trying to drag a window from one virtual desktop to another.


I guess this is the relevant backtrace thread, but you can find all in the attachment.

```
Thread 5 (Thread 0x7f53df115880 (LWP 4326)):
warning: Section `.reg-xstate/4326' in core file too small.
#0  0x00007f53e2b9e59f in __GI___poll (fds=fds@entry=0x7ffc5c5f6570, nfds=nfds@entry=1, timeout=timeout@entry=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f53e44d45e8 in poll (__timeout=1000, __nfds=1, __fds=0x7ffc5c5f6570) at /usr/include/bits/poll2.h:47
#2  pollDrKonqiSocket (sockfd=3, pid=8588) at /usr/src/debug/kcrash-5.82.0-1.2.x86_64/src/kcrash.cpp:798
#3  KCrash::startProcess(int, char const**, bool) (argv=argv@entry=0x7ffc5c5f6690, waitAndExit=waitAndExit@entry=true, argc=<optimized out>) at /usr/src/debug/kcrash-5.82.0-1.2.x86_64/src/kcrash.cpp:660
#4  0x00007f53e44d4e79 in KCrash::defaultCrashHandler(int) (sig=11) at /usr/src/debug/kcrash-5.82.0-1.2.x86_64/src/kcrash.cpp:557
#5  <signal handler called> () at ../sysdeps/unix/sysv/linux/sigaction.c
#6  0x00007f53e45f4654 in KWin::VirtualDesktop::x11DesktopNumber() const (this=0x0) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/build/src/kwin_autogen/EWIEGA46WW/../../../../src/virtualdesktops.h:57
#7  KWin::AbstractClient::desktop() const (this=0x55ba56b65870) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/build/src/kwin_autogen/EWIEGA46WW/../../../../src/abstract_client.h:475
#8  KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) (this=<optimized out>, desktops=...) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/abstract_client.cpp:474
#9  0x00007f53e4646ad9 in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) (this=<optimized out>, w=<optimized out>, desktopIds=<optimized out>) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/effects.cpp:923
#10 0x00007f53e29f4974 in KWin::DesktopGridEffect::windowInputMouseEvent(QEvent*) (this=0x55ba55ccd9e0, e=<optimized out>) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/effects/desktopgrid/desktopgrid.cpp:573
#11 0x00007f53e464ca37 in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) (this=<optimized out>, e=0x7ffc5c5f76e0) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/effects.cpp:1272
#12 0x00007f53dc0f4232 in KWin::EffectsMouseInterceptionX11Filter::event(xcb_generic_event_t*) (this=0x7f53d80234e0, event=0x7f53d8029de0) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp:90
#13 0x00007f53e468e6ae in KWin::Application::dispatchEvent(xcb_generic_event_t*) (this=<optimized out>, event=0x7f53d8029de0) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/main.cpp:470
#14 0x00007f53e31fe04f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) (this=<optimized out>, eventType=..., message=message@entry=0x7f53d8029de0, result=result@entry=0x7ffc5c5f78f8) at kernel/qabstracteventdispatcher.cpp:495
#15 0x00007f53dd1c84b1 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0x55ba55082ef0, event=event@entry=0x7f53d8029de0) at qxcbconnection.cpp:536
#16 0x00007f53dd1c9aa6 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55ba55082ef0, flags=...) at qxcbconnection.cpp:1014
#17 0x00007f53dd1f00cc in QXcbUnixEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55ba55154960, flags=...) at qxcbeventdispatcher.cpp:61
#18 0x00007f53e31ff4bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc5c5f7a40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#19 0x00007f53e3207790 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#20 0x00007f53e365e1fc in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#21 0x00007f53e3de79d5 in QApplication::exec() () at kernel/qapplication.cpp:2824
#22 0x000055ba54d51fb6 in main(int, char**) (argc=<optimized out>, argv=0x7ffc5c5f7cd8) at /usr/src/debug/kwin5-5.22.0-2.1.x86_64/src/main_x11.cpp:479
```

```
Thread 1 (Thread 0x7f53dd101640 (LWP 4336)):
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007f53e44d4ee1 in KCrash::defaultCrashHandler(int) (sig=11) at /usr/src/debug/kcrash-5.82.0-1.2.x86_64/src/kcrash.cpp:567
#2  <signal handler called> () at ../sysdeps/unix/sysv/linux/sigaction.c
#3  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#4  <signal handler called> () at ../sysdeps/unix/sysv/linux/sigaction.c
#5  0x00007f53e2b9e59f in __GI___poll (fds=fds@entry=0x7f53dd100b88, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#6  0x00007f53e3c25892 in poll (__timeout=-1, __nfds=1, __fds=0x7f53dd100b88) at /usr/include/bits/poll2.h:47
#7  _xcb_conn_wait (c=0x55ba55085fc0, vector=0x0, count=0x0, cond=<optimized out>) at /usr/src/debug/libxcb-1.14-1.6.x86_64/src/xcb_conn.c:480
#8  0x00007f53e3c272ac in _xcb_conn_wait (count=0x0, vector=0x0, cond=0x55ba55086000, c=0x55ba55085fc0) at /usr/src/debug/libxcb-1.14-1.6.x86_64/src/xcb_conn.c:446
#9  xcb_wait_for_event (c=0x55ba55085fc0) at /usr/src/debug/libxcb-1.14-1.6.x86_64/src/xcb_in.c:697
#10 0x00007f53dd1eecc0 in QXcbEventQueue::run() (this=0x55ba5507cc90) at qxcbeventqueue.cpp:228
#11 0x00007f53e301cc21 in QThreadPrivate::start(void*) (arg=0x55ba5507cc90) at thread/qthread_unix.cpp:329
#12 0x00007f53e15ea259 in start_thread (arg=0x7f53dd101640) at pthread_create.c:481
#13 0x00007f53e2ba92b3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
```

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210615
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.9-1-default (64-bit)
Graphics Platform: X11
Graphics Processor: Radeon RX 580 Series
Compositor uses OpenGL 3.1
Comment 1 Nate Graham 2021-06-17 18:07:30 UTC

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