Bug 429938 - KWin crashes when move window from on to another desktop
Summary: KWin crashes when move window from on to another desktop
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.20.3
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-12-02 18:12 UTC by spicydog
Modified: 2022-12-03 05:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spicydog 2020-12-02 18:12:32 UTC
Application: kwin_x11 (5.20.3)

Qt Version: 5.15.1
Frameworks Version: 5.76.0
Operating System: Linux 5.4.0-56-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.20

-- Information about the crash:
- What I was doing when the application crashed:

I am using grid mode a lot in KWin and often move a window from one to another desktop.
"Sometimes", when I drag a window, KWin crashes and shows this error. It is not very often, maybe 3-4 times a day.
It happens for quite long time but it is okay because no app is crashing, KWin just merge the windows to Desktop 1.
However, it would be great if we know the cause and make the crash disappear.
Let me know if any information is needed.

Thank you in advanced.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault

[New LWP 13659]
[New LWP 13675]
[New LWP 13685]
[New LWP 13686]
[New LWP 13687]
[New LWP 13688]
[New LWP 13694]
[New LWP 13721]
[New LWP 13724]
[New LWP 17496]
[New LWP 81008]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fcd943a0aff in __GI___poll (fds=0x7ffe2ed878e8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fcd8ea671c0 (LWP 13655))]

Thread 12 (Thread 0x7fccbe79b700 (LWP 81008)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d0507683d4) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d050768380, cond=0x55d0507683a8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d0507683a8, mutex=0x55d050768380) at pthread_cond_wait.c:638
#3  0x00007fcd9475dceb in QWaitConditionPrivate::wait (deadline=..., this=0x55d050768380) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55d050768360, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007fcd9345e774 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007fcd9345ebe9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x55d0507682c0) at thread/qthread_unix.cpp:329
#8  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fcd8c8cd700 (LWP 17496)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d050172734) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d0501726e0, cond=0x55d050172708) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d050172708, mutex=0x55d0501726e0) at pthread_cond_wait.c:638
#3  0x00007fcd9475dceb in QWaitConditionPrivate::wait (deadline=..., this=0x55d0501726e0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55d05016fe80, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007fcd9345e774 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007fcd9345ebe9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x55d05016fde0) at thread/qthread_unix.cpp:329
#8  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fccc783f700 (LWP 13724)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d04fe39bd0) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d04fe39b80, cond=0x55d04fe39ba8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d04fe39ba8, mutex=0x55d04fe39b80) at pthread_cond_wait.c:638
#3  0x00007fcd9475dceb in QWaitConditionPrivate::wait (deadline=..., this=0x55d04fe39b80) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x7fcd8800c960, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007fcd9345e774 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007fcd9345ebe9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x7fcd8800c8c0) at thread/qthread_unix.cpp:329
#8  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fcd4ebaf700 (LWP 13721)):
#0  0x00007fcd943a0bf6 in __ppoll (fds=fds@entry=0x7fcd64000d78, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007fcd94992149 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd64000d78) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd64000d78) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7fcd64000d78, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007fcd949937f3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007fcd9493a43b in QEventLoop::exec (this=this@entry=0x7fcd4ebaed00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007fcd94756982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007fcd930e4d69 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x55d04f97ec00) at thread/qthread_unix.cpp:329
#10 0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fcd848f6700 (LWP 13694)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fcd9415dfd8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fcd9415df88, cond=0x7fcd9415dfb0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fcd9415dfb0, mutex=0x7fcd9415df88) at pthread_cond_wait.c:638
#3  0x00007fcd9406063a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007fcd9406065f in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fcd68cd1700 (LWP 13688)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fcd88007df8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fcd88007da8, cond=0x7fcd88007dd0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fcd88007dd0, mutex=0x7fcd88007da8) at pthread_cond_wait.c:638
#3  0x00007fcd6abfc62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fcd6abfc23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fcd694d2700 (LWP 13687)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fcd88007df8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fcd88007da8, cond=0x7fcd88007dd0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fcd88007dd0, mutex=0x7fcd88007da8) at pthread_cond_wait.c:638
#3  0x00007fcd6abfc62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fcd6abfc23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fcd69cd3700 (LWP 13686)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fcd88007df8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fcd88007da8, cond=0x7fcd88007dd0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fcd88007dd0, mutex=0x7fcd88007da8) at pthread_cond_wait.c:638
#3  0x00007fcd6abfc62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fcd6abfc23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fcd6a4d4700 (LWP 13685)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fcd88007df8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fcd88007da8, cond=0x7fcd88007dd0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fcd88007dd0, mutex=0x7fcd88007da8) at pthread_cond_wait.c:638
#3  0x00007fcd6abfc62b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fcd6abfc23b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fcd85b37700 (LWP 13675)):
#0  0x00007fcd943a0bf6 in __ppoll (fds=fds@entry=0x7fcd70000d78, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007fcd94992149 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd70000d78) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd70000d78) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7fcd70000d78, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007fcd949937f3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007fcd9493a43b in QEventLoop::exec (this=this@entry=0x7fcd85b36d00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007fcd94756982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007fcd930e4d69 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x55d04ef89f20) at thread/qthread_unix.cpp:329
#10 0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fcd8d348700 (LWP 13659)):
#0  0x00007fcd943a0bf6 in __ppoll (fds=fds@entry=0x7fcd8000f538, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007fcd94992149 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd8000f538) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7fcd8000f538) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7fcd8000f538, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007fcd949937f3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007fcd9493a43b in QEventLoop::exec (this=this@entry=0x7fcd8d347cf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007fcd94756982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007fcd95a77f4b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fcd94757b1c in QThreadPrivate::start (arg=0x7fcd95afbd80) at thread/qthread_unix.cpp:329
#10 0x00007fcd93b59609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fcd943ad293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fcd8ea671c0 (LWP 13655)):
[KCrash Handler]
#4  QHashData::firstNode (this=0x55d0505ddf20) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:128
#5  QHash<KWin::EffectWindow*, KWin::WindowMotionManager::WindowMotion>::begin (this=0x55d05060a4d8) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:503
#6  QHash<KWin::EffectWindow*, KWin::WindowMotionManager::WindowMotion>::keys (this=this@entry=0x55d05060a4d8) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:679
#7  0x00007fcd941d0e59 in KWin::WindowMotionManager::managedWindows (this=0x55d05060a4d0) at ./libkwineffects/kwineffects.h:3358
#8  KWin::DesktopGridEffect::windowInputMouseEvent (this=0x55d04f952030, e=<optimized out>) at ./effects/desktopgrid/desktopgrid.cpp:551
#9  0x00007fcd95d4c1af in KWin::EffectsHandlerImpl::checkInputWindowEvent (this=<optimized out>, e=e@entry=0x7ffe2ed883f0) at ./effects.cpp:1275
#10 0x00007fcd8cb0f74e in KWin::EffectsMouseInterceptionX11Filter::event (this=0x7fcd880673a0, event=0x7fcd88029d10) at ./plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp:90
#11 0x00007fcd95d56de3 in KWin::Workspace::workspaceEvent (this=0x55d04ee77410, e=0x7fcd88029d10) at ./x11eventfilter.h:40
#12 0x00007fcd94938dcf in QAbstractEventDispatcher::filterNativeEvent (this=<optimized out>, eventType=..., message=message@entry=0x7fcd88029d10, result=result@entry=0x7ffe2ed885a8) at kernel/qabstracteventdispatcher.cpp:495
#13 0x00007fcd8e3a0985 in QXcbConnection::handleXcbEvent (this=this@entry=0x55d04ed65420, event=event@entry=0x7fcd88029d10) at qxcbnativeinterface.h:101
#14 0x00007fcd8e3a16d6 in QXcbConnection::processXcbEvents (this=0x55d04ed65420, flags=...) at qxcbconnection.cpp:1003
#15 0x00007fcd8e3caef0 in QXcbUnixEventDispatcher::processEvents (this=0x55d04ee287a0, flags=...) at qxcbeventdispatcher.cpp:61
#16 0x00007fcd9493a43b in QEventLoop::exec (this=this@entry=0x7ffe2ed886f0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#17 0x00007fcd949425e4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#18 0x000055d04d501a2d in main (argc=<optimized out>, argv=0x7ffe2ed88978) at ./main_x11.cpp:484
[Inferior 1 (process 13655) detached]

The reporter indicates this bug may be a duplicate of or related to bug 410839.

Possible duplicates by query: bug 429202, bug 422275, bug 418783, bug 410839, bug 401422.

Reported using DrKonqi
Comment 1 Justin Zobel 2022-11-03 01:39:13 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-18 05:16:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-03 05:20:21 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!