Bug 439536 - KWin crashed in KWin::AbstractClient::setDesktops() as I was entering desktop grid using a hot corner while multiple apps were open
Summary: KWin crashed in KWin::AbstractClient::setDesktops() as I was entering desktop...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.22.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-07-06 02:05 UTC by nevadaperry
Modified: 2021-12-04 04:39 UTC (History)
4 users (show)

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


Attachments
New crash information added by DrKonqi (9.92 KB, text/plain)
2021-08-28 01:19 UTC, nevadaperry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nevadaperry 2021-07-06 02:05:51 UTC
Application: kwin_x11 (5.22.2)

Qt Version: 5.15.3
Frameworks Version: 5.83.0
Operating System: Linux 5.4.0-77-generic x86_64
Windowing System: X11
Drkonqi Version: 5.22.2
Distribution: KDE neon User Edition 5.22

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

I was entering desktop grid using a hot corner while multiple apps were opening simultaneously

The reporter is unsure if this crash is reproducible.

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

[New LWP 1775]
[New LWP 1819]
[New LWP 1926]
[New LWP 1950]
[New LWP 4818]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ff86b5abaff in __GI___poll (fds=0x7ffcb1010bb8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7ff865c17340 (LWP 1769))]

Thread 6 (Thread 0x7ff803fff700 (LWP 4818)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55812b9fe634) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55812b9fe5e0, cond=0x55812b9fe608) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55812b9fe608, mutex=0x55812b9fe5e0) at pthread_cond_wait.c:638
#3  0x00007ff86b9ddf2b in QWaitConditionPrivate::wait (deadline=..., this=0x55812b9fe5e0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55812b9fd090, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007ff86a9cfb44 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007ff86a9cffb9 in ?? () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007ff86b9d7dbc in QThreadPrivate::start (arg=0x55812b9fcff0) at thread/qthread_unix.cpp:329
#8  0x00007ff86a0d0609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ff86b5b8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7ff8425c7700 (LWP 1950)):
#0  0x00007ff86b5ae12b in __GI___select (nfds=39, readfds=0x7ff8425c6ca0, writefds=0x0, exceptfds=0x0, timeout=0x7ff8425c6c90) at ../sysdeps/unix/sysv/linux/select.c:41
#1  0x00007ff85e93a991 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.460.80
#2  0x00007ff85e93847a in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.460.80
#3  0x00007ff86a0d0609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#4  0x00007ff86b5b8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7ff8520f1700 (LWP 1926)):
#0  0x00007ff86b5abbf6 in __ppoll (fds=fds@entry=0x7ff848000d98, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007ff86bc14ec9 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=0x7ff848000d98) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7ff848000d98) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7ff848000d98, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007ff86bc16573 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007ff86bbbd25b in QEventLoop::exec (this=this@entry=0x7ff8520f0ce0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007ff86b9d6c22 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007ff86b9d7dbc in QThreadPrivate::start (arg=0x7ff860005800) at thread/qthread_unix.cpp:329
#9  0x00007ff86a0d0609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007ff86b5b8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ff853fb9700 (LWP 1819)):
#0  0x00007ff86b5abbf6 in __ppoll (fds=fds@entry=0x7ff84c000d78, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007ff86bc14ec9 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=0x7ff84c000d78) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7ff84c000d78) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7ff84c000d78, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007ff86bc16573 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007ff86bbbd25b in QEventLoop::exec (this=this@entry=0x7ff853fb8cc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007ff86b9d6c22 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007ff86a653559 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007ff86b9d7dbc in QThreadPrivate::start (arg=0x55812b1355f0) at thread/qthread_unix.cpp:329
#10 0x00007ff86a0d0609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ff86b5b8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff8648a2700 (LWP 1775)):
#0  0x00007ff86b5abbf6 in __ppoll (fds=fds@entry=0x7ff858007508, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007ff86bc14ec9 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=0x7ff858007508) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7ff858007508) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7ff858007508, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007ff86bc16573 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007ff86bbbd25b in QEventLoop::exec (this=this@entry=0x7ff8648a1cb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007ff86b9d6c22 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007ff86b882f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007ff86b9d7dbc in QThreadPrivate::start (arg=0x7ff86b906d80) at thread/qthread_unix.cpp:329
#10 0x00007ff86a0d0609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ff86b5b8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff865c17340 (LWP 1769)):
[KCrash Handler]
#4  0x00007ff86cf169d6 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () from /lib/x86_64-linux-gnu/libkwin.so.5
#5  0x00007ff86cf71d61 in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () from /lib/x86_64-linux-gnu/libkwin.so.5
#6  0x00007ff86b3c3540 in ?? () from /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#7  0x00007ff86cf749bf in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#8  0x00007ff85d9bc4ae in KWin::EffectsMouseInterceptionX11Filter::event (this=0x55812b018440, event=0x7ff860013b20) at ./src/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp:90
#9  0x00007ff86cfc59c4 in KWin::Application::dispatchEvent(xcb_generic_event_t*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#10 0x00007ff86bbbbbef in QAbstractEventDispatcher::filterNativeEvent (this=<optimized out>, eventType=..., message=message@entry=0x7ff860013b20, result=result@entry=0x7ffcb1011d18) at kernel/qabstracteventdispatcher.cpp:495
#11 0x00007ff8657cc8f5 in QXcbConnection::handleXcbEvent (this=this@entry=0x55812ae73f10, event=event@entry=0x7ff860013b20) at qxcbnativeinterface.h:101
#12 0x00007ff8657cd646 in QXcbConnection::processXcbEvents (this=0x55812ae73f10, flags=...) at qxcbconnection.cpp:1014
#13 0x00007ff8657f7240 in QXcbUnixEventDispatcher::processEvents (this=0x55812af277c0, flags=...) at qxcbeventdispatcher.cpp:61
#14 0x00007ff86bbbd25b in QEventLoop::exec (this=this@entry=0x7ffcb1011e60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#15 0x00007ff86bbc5414 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#16 0x000055812a33ca6d in main (argc=<optimized out>, argv=0x7ffcb10120f8) at ./src/main_x11.cpp:479
[Inferior 1 (process 1769) detached]

Reported using DrKonqi
Comment 1 nevadaperry 2021-08-28 01:19:40 UTC
Created attachment 141097 [details]
New crash information added by DrKonqi

kwin_x11 (5.22.4) using Qt 5.15.3

- What I was doing when the application crashed:

KWin closes unexpectedly when using a hot corner to enter desktop grid, and then clicking on a desktop to switch to before the zoom-out animation finishes.

-- Backtrace (Reduced):
#4  0x00007f0480ffdba6 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () from /lib/x86_64-linux-gnu/libkwin.so.5
#5  0x00007f0481058f31 in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () from /lib/x86_64-linux-gnu/libkwin.so.5
[...]
#7  0x00007f048105bb8f in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#8  0x00007f047191c4ae in KWin::EffectsMouseInterceptionX11Filter::event (this=0x7f0474029e20, event=0x7f047401c8f0) at ./src/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp:90
#9  0x00007f04810acbc4 in KWin::Application::dispatchEvent(xcb_generic_event_t*) () from /lib/x86_64-linux-gnu/libkwin.so.5
Comment 2 tildearrow 2021-11-04 03:09:05 UTC
Just happened today. It has a 1 out of 1000 chance of reproducing though...
Comment 3 kde.org 2021-11-04 19:59:04 UTC
Thank you for reporting this bug. Unfortunately, none of the backtraces provided doesn't contain proper debugging information. Can you still reproduce this issue with KDE 5.23? If so, can you please install debugging packages following the info provided in  https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports, try to reproduce the bug and submit a backtrace with debugging information.
Comment 4 Bug Janitor Service 2021-11-19 04:39:15 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 5 Bug Janitor Service 2021-12-04 04:39:02 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!