Bug 413371 - KWin crashed when moving borderless window between virtual desktops on desktop grid
Summary: KWin crashed when moving borderless window between virtual desktops on deskto...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.16.5
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-10-23 16:19 UTC by Erik Quaeghebeur
Modified: 2021-12-14 21:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.51 KB, text/plain)
2020-04-14 18:31 UTC, Evan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2019-10-23 16:19:30 UTC
Application: kwin_x11 (5.16.5)

Qt Version: 5.12.5
Frameworks Version: 5.60.0
Operating System: Linux 4.19.72-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I was moving a non full-screen okular window without borders from one virtual desktop to another within the desktop grid view.

- Unusual behavior I noticed:
After the crash I assume KWin restarted, because I could continue working without problems. However, al windows for which I hid the border had their border back.

The crash does not seem to be reproducible.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f31611d8880 (LWP 13802))]

Thread 9 (Thread 0x7f314fbff700 (LWP 28687)):
#0  0x00007f316854711c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f316a9bcc83 in QWaitConditionPrivate::wait (deadline=..., this=0x56069ec9fa10) at thread/qwaitcondition_unix.cpp:146
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x56069e6bd200, deadline=...) at thread/qwaitcondition_unix.cpp:225
#3  0x00007f316a9bcd09 in QWaitCondition::wait (this=0x56069e6bd208, mutex=0x56069e6bd200, time=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68
#4  0x00007f31680781b9 in ?? () from /usr/lib64/libQt5Quick.so.5
#5  0x00007f316807841a in ?? () from /usr/lib64/libQt5Quick.so.5
#6  0x00007f316a9b7462 in QThreadPrivate::start (arg=0x56069e6bd180) at thread/qthread_unix.cpp:361
#7  0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f314e0d2700 (LWP 27138)):
#0  0x00007f316bf79b46 in ppoll () from /lib64/libc.so.6
#1  0x00007f316ab92b05 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f3140001be8) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f3140001be8) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f3140001be8, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#5  0x00007f316ab93b79 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f316ab4428b in QEventLoop::exec (this=this@entry=0x7f314e0d1d00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#7  0x00007f316a9b6236 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#8  0x00007f3167cf1415 in ?? () from /usr/lib64/libQt5Qml.so.5
#9  0x00007f316a9b7462 in QThreadPrivate::start (arg=0x56069ec1aa90) at thread/qthread_unix.cpp:361
#10 0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f315ddb4700 (LWP 27137)):
#0  0x00007f316854711c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f314e9cf14b in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007f314e9ced77 in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f314d8d1700 (LWP 13880)):
#0  0x00007f316854711c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f316a2328ca in ?? () from /usr/lib64/libQt5Script.so.5
#2  0x00007f316a2328e9 in ?? () from /usr/lib64/libQt5Script.so.5
#3  0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f314e8d3700 (LWP 13874)):
#0  0x00007f316854711c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f314e9cf14b in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007f314e9ced77 in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f315d1ca700 (LWP 13872)):
#0  0x00007f316bf79b46 in ppoll () from /lib64/libc.so.6
#1  0x00007f316ab92b05 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f3148000d28) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f3148000d28) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f3148000d28, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#5  0x00007f316ab93b79 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f316ab4428b in QEventLoop::exec (this=this@entry=0x7f315d1c9d00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#7  0x00007f316a9b6236 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#8  0x00007f3167cf1415 in ?? () from /usr/lib64/libQt5Qml.so.5
#9  0x00007f316a9b7462 in QThreadPrivate::start (arg=0x56069de83da0) at thread/qthread_unix.cpp:361
#10 0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f315f284700 (LWP 13850)):
#0  0x00007f316bf79b46 in ppoll () from /lib64/libc.so.6
#1  0x00007f316ab92b05 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f315000a438) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f315000a438) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f315000a438, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#5  0x00007f316ab93b79 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f316ab4428b in QEventLoop::exec (this=this@entry=0x7f315f283cf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#7  0x00007f316a9b6236 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#8  0x00007f3167745565 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f316a9b7462 in QThreadPrivate::start (arg=0x7f31677c5d80) at thread/qthread_unix.cpp:361
#10 0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f315ff2f700 (LWP 13826)):
#0  0x00007f316bf79a53 in poll () from /lib64/libc.so.6
#1  0x00007f316a6dc7f7 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f316a6de42a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f3160c36070 in QXcbEventQueue::run (this=0x56069da68da0) at qxcbeventqueue.cpp:228
#4  0x00007f316a9b7462 in QThreadPrivate::start (arg=0x56069da68da0) at thread/qthread_unix.cpp:361
#5  0x00007f3168540408 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f316bf85adf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f31611d8880 (LWP 13802)):
[KCrash Handler]
#6  0x00007f316bc322d5 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () from /usr/lib64/libkwin.so.5
#7  0x00007f316bd084db in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () from /usr/lib64/libkwin.so.5
#8  0x00007f316a3df1f3 in ?? () from /usr/lib64/libkwin4_effect_builtins.so.1
#9  0x00007f316bd0a69f in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) () from /usr/lib64/libkwin.so.5
#10 0x00007f315ea52ffc in ?? () from /usr/lib64/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#11 0x00007f316bc99c79 in KWin::Workspace::workspaceEvent(xcb_generic_event_t*) () from /usr/lib64/libkwin.so.5
#12 0x00007f316ab42af4 in QAbstractEventDispatcher::filterNativeEvent (this=<optimized out>, eventType=..., message=message@entry=0x7f31580837a0, result=result@entry=0x7ffc8c8b3ce8) at kernel/qabstracteventdispatcher.cpp:484
#13 0x00007f3160c0bf00 in QXcbConnection::handleXcbEvent (this=this@entry=0x56069da54720, event=event@entry=0x7f31580837a0) at qxcbnativeinterface.h:101
#14 0x00007f3160c0ce9c in QXcbConnection::processXcbEvents (this=0x56069da54720, flags=...) at qxcbconnection.cpp:1027
#15 0x00007f3160c3747c in QXcbUnixEventDispatcher::processEvents (this=0x56069daa7a20, flags=...) at qxcbeventdispatcher.cpp:61
#16 0x00007f316ab4428b in QEventLoop::exec (this=this@entry=0x7ffc8c8b3e80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#17 0x00007f316ab4bfd2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#18 0x00007f316c05cfa8 in kdemain () from /usr/lib64/libkdeinit5_kwin_x11.so
#19 0x00007f316bea2efb in __libc_start_main () from /lib64/libc.so.6
#20 0x000056069c43909a in _start ()
[Inferior 1 (process 13802) detached]

Possible duplicates by query: bug 412642, bug 411251, bug 410839.

Reported using DrKonqi
Comment 1 Evan 2020-04-14 18:31:56 UTC
Created attachment 127550 [details]
New crash information added by DrKonqi

kwin_x11 (5.18.4) using Qt 5.14.2

- What I was doing when the application crashed:
Moving a gwenview window between virtual desktops in grid view. Keyboard shortcut to open grid view, then mouse drag window.
- Custom settings of the application:
16 virtual desktops with 10 open applications.

-- Backtrace (Reduced):
#6  0x00007f62c3cf7749 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () at /usr/lib/libkwin.so.5
#7  0x00007f62c3d5b072 in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () at /usr/lib/libkwin.so.5
#8  0x00007f62c24300b9 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#9  0x00007f62c3d5c8a7 in KWin::EffectsHandlerImpl::checkInputWindowEvent(QMouseEvent*) () at /usr/lib/libkwin.so.5
#10 0x00007f62bb42f58d in  () at /usr/lib/qt/plugins/org.kde.kwin.platforms/KWinX11Platform.so
Comment 2 kde.org 2021-11-04 19:49:12 UTC
Thank you for reporting this bug. Unfortunately, the backtrace doesn't contain proper debugging information. 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 resubmit a backtrace with debugging information.
Comment 3 Bug Janitor Service 2021-11-19 04:38:49 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 4 Erik Quaeghebeur 2021-11-19 05:44:24 UTC
The first backtrace (mine) is complete enough, no?
Comment 5 kde.org 2021-11-19 08:50:54 UTC
@Erik Quaeghebeur
There are two issues with this backtrace. First, it's quite old. We do not know if it has been fixed in the meantime, or not. Hence the request to confirm and provide an updated backtrace. The developers do not have the resources, to reproduce issues with old code. They can barely look at the issues reported against the current source. The second issue is, that it doesn't contain debug information for Kwin, e.g. the following lines are missing information about the file and line numbers the error occurred:

#6  0x00007f316bc322d5 in KWin::AbstractClient::setDesktops(QVector<KWin::VirtualDesktop*>) () from /usr/lib64/libkwin.so.5
#7  0x00007f316bd084db in KWin::EffectsHandlerImpl::windowToDesktops(KWin::EffectWindow*, QVector<unsigned int> const&) () from /usr/lib64/libkwin.so.5

That's why I asked you to kindly have a look at https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 6 Bug Janitor Service 2021-12-04 04:38:30 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!