Bug 411117 - KWin crashes when switching between virtual desktops
Summary: KWin crashes when switching between virtual desktops
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.8
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-08-20 22:11 UTC by Ross
Modified: 2019-08-24 22:00 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 Ross 2019-08-20 22:11:04 UTC
Application: kwin_x11 (5.12.8)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 4.15.0-55-generic x86_64
Distribution: Ubuntu 18.04.2 LTS

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

I used a script to switch to virtual desktop 3 (index 2) : `/usr/bin/wmctrl -s 2`
Desktop 3 is running the following in full screen:
konsole -qwindowtitle Remote Desktop Multimon --icon application-x-remote-connection -e /bin/bash -c cat ~/.rdppass | /opt/freerdp-nightly/bin/xfreerdp /from-stdin /multimon /v:<hostname> /u:<username> /d:<domain> +clipboard /cert-ignore

After a few moments, KWin dies and has to be restarted with `kwin --replace`

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f908032ecc0 (LWP 21398))]

Thread 6 (Thread 0x7f904a3bd700 (LWP 21413)):
#0  0x00007f9078cf89f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f907c28ffb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f907c28ff68, cond=0x7f907c28ff90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f907c28ff90, mutex=0x7f907c28ff68) at pthread_cond_wait.c:655
#3  0x00007f907bf995f4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f907bf99639 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f9078cf26db in start_thread (arg=0x7f904a3bd700) at pthread_create.c:463
#6  0x00007f907fc9988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f904b5d9700 (LWP 21410)):
#0  0x00007f907fc8ccf6 in __GI_ppoll (fds=0x55ebdcf0a408, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f907d08e5c1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f907d08fcde in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f907d0379ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f907ce5622a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f907ce5b16d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9078cf26db in start_thread (arg=0x7f904b5d9700) at pthread_create.c:463
#7  0x00007f907fc9988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f9054dc4700 (LWP 21405)):
#0  0x00007f907d068c69 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f907d08fea0 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f907d0379ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f907ce5622a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f90777de6f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#5  0x00007f907ce5b16d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9078cf26db in start_thread (arg=0x7f9054dc4700) at pthread_create.c:463
#7  0x00007f907fc9988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f905ffff700 (LWP 21400)):
#0  0x00007f907fc8ccf6 in __GI_ppoll (fds=0x7f9058009a98, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f907d08e5c1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f907d08fcde in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f907d0379ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f907ce5622a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f90766b7d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f907ce5b16d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9078cf26db in start_thread (arg=0x7f905ffff700) at pthread_create.c:463
#8  0x00007f907fc9988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f90669aa700 (LWP 21399)):
#0  0x00007f907fc8cbf9 in __GI___poll (fds=0x7f90669a9c68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f907eb96747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f907eb9836a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f90678892a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f907ce5b16d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9078cf26db in start_thread (arg=0x7f90669aa700) at pthread_create.c:463
#6  0x00007f907fc9988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f908032ecc0 (LWP 21398)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f907fbb8801 in __GI_abort () at abort.c:79
#8  0x00007f907ce45fa7 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f9077eb02a7 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f9077eb1275 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007f9077eb1e9a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#12 0x00007f907d607375 in QWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f9077f266c5 in QQuickWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#14 0x00007f90423e6323 in PlasmaQuick::Dialog::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5PlasmaQuick.so.5
#15 0x00007f907ddb782c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f907ddbf0f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f907d0399a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f907d5fc43f in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#19 0x00007f907d5fd07d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#20 0x00007f907d5d42eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007f90678ec5d6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#22 0x00007f907d0379ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f907d040a84 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f907ff71dbb in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#25 0x00007f907fb99b97 in __libc_start_main (main=0x55ebdc80d730, argc=2, argv=0x7ffc6d8cb358, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc6d8cb348) at ../csu/libc-start.c:310
#26 0x000055ebdc80d76a in _start ()

Possible duplicates by query: bug 411017, bug 407373, bug 406078, bug 404141, bug 403601.

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2019-08-24 22:00:29 UTC
The crash happens in QtQuick. Looks like that's a duplicate of https://bugreports.qt.io/browse/QTBUG-48987