Bug 373901 - KWIN keeps crashing at random tasks
Summary: KWIN keeps crashing at random tasks
Status: RESOLVED DUPLICATE of bug 373865
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.8.2
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-19 18:20 UTC by a.harrington080611
Modified: 2016-12-21 04:11 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 a.harrington080611 2016-12-19 18:20:39 UTC
I'm a linux newb so I'm sorry I can't be more detailed, but I can verify that my bug report is accurate.


Dell XPS 13, 9350
Debian Testing branch

My uptime was around 2 weeks, and I usually do a dist-upgrade every other day or so. Yesterday I had to reboot my system, and that's when all went haywire. It's hard to which one, but I'm quite sure that a recent update caused all this.

KWin crashes and I lose all my desktop applications and processes when coming out of sleep mode 80% of the time. It seems to be closer to 90% when I sleep it by closing the lid versus using the sleep option in the kmenu.

I'm getting random lags when moving windows around, and sometimes the decorations will crash when maximizing a window -- happened with Chrome and Okular this morning. 

4 or 5 times in the past day when I close the system settings (doesn't matter what section I'm in, Display settings, logon and logoff, etc) KWin crashes.


I feel like this is a pretty significant issue considering how incredibly stable everything has been the past year, I usually wouldn't report bugs unless they are fairly detrimental.
Comment 1 Martin Flöser 2016-12-20 06:43:28 UTC
If it crashes, please provide a backtrace. A small icon with a "sad face" should show up in the systray. There you can generate the backtrace in the developer information tab. Without the backtrace we cannot investigate the crash.
Comment 2 a.harrington080611 2016-12-20 15:36:05 UTC
Right after posting this, I had Kwin crash again after waking, and then (I was in fact mistake) ksmserver crashed (not Kwin) when snapping a window to the side of my screen. 

I didn't grab the error reports, but I did go through both of them and the red highlighted section on both said something about libc.so.6 causing the error.

Next time it happens, I'll save the crash reports and post them here

Thank you
Comment 3 a.harrington080611 2016-12-20 18:47:55 UTC
Here's the backtrace for the ksmserver crash on resume from standby:

Application: ksmserver (ksmserver), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff78e3ce940 (LWP 1287))]

Thread 2 (Thread 0x7ff78b03d700 (LWP 1298)):
#0  0x00007ff7a208f5dd in read () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ff7968fbc40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff7968b74be in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff7968b7994 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff7968b7b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff79d8126fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ff79d7bc07a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff79d5de0d3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff7a27196d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007ff79d5e2d88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ff7985c1464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ff7a209c9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7ff78e3ce940 (LWP 1287)):
[KCrash Handler]
#6  0x00007ff7a1fe6fdf in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007ff7a1fe840a in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007ff7a2024bd0 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x00007ff7a202afa6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007ff7a202b79e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007ff79c290771 in XIQueryDevice () from /usr/lib/x86_64-linux-gnu/libXi.so.6
#12 0x00007ff78e16f366 in QXcbConnection::handleEnterEvent() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#13 0x00007ff78e15bd18 in QXcbWindow::handleEnterNotifyEvent(int, int, int, int, unsigned char, unsigned char, unsigned int) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#14 0x00007ff78e15c28f in QXcbWindow::handleXIEnterLeave(xcb_ge_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#15 0x00007ff78e1743bc in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#16 0x00007ff78e146aca in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#17 0x00007ff78e147015 in QXcbConnection::processXcbEvents() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#18 0x00007ff79d7eab39 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ff79e0a5b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ff79e0ad2e1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ff79d7be090 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ff79d7c081d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007ff79d8122d3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ff7968b77f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ff7968b7a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ff7968b7b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ff79d8126df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ff79d7bc07a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ff79d7c47ec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007ff7a2364591 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_ksmserver.so
#31 0x00007ff7a1fd42b1 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#32 0x00000000004006fa in _start ()
Comment 4 Christoph Feck 2016-12-21 01:43:15 UTC
Did you add/remove input devices during the suspend? Qt does not seem to like this.
Comment 5 a.harrington080611 2016-12-21 03:59:41 UTC
The only thing I may have connected/disconnected while sleeping, is the power cord (laptop charger). 

Here's the backtrace for the crash when snapping a window to the top of the screen to full size it. 

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 0x7f16b11aa580 (LWP 1295))]

Thread 5 (Thread 0x7f168926f700 (LWP 1403)):
#0  0x00007f16aa9d318f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f16adcf92c4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f16adcf9309 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f16aa9cd464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007f16b0cbb9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7f168bde1700 (LWP 1387)):
#0  0x00007f16b0cb2631 in ppoll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f16aeb8ea21 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f16aeb9031a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f16aeb3d07a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f16ae95f0d3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f16a9b2b5d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f16ae963d88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f16aa9cd464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f16b0cbb9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7f1692aaf700 (LWP 1343)):
#0  0x00007f16b0cb2631 in ppoll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f16aeb8ea21 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f16aeb9031a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f16aeb3d07a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f16ae95f0d3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f16b12cc6d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f16ae963d88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f16aa9cd464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f16b0cbb9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7f1698877700 (LWP 1313)):
#0  0x00007f16b0cb256d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f16afe20150 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f16afe21ee9 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f1699521b69 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f16ae963d88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f16aa9cd464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f16b0cbb9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f16b11aa580 (LWP 1295)):
[KCrash Handler]
#6  0x00007f16b0c05fdf in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f16b0c0740a in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f16b0c43bd0 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x00007f16b0c49fa6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007f16b0c4a79e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007f16a4e7e771 in XIQueryDevice () from /usr/lib/x86_64-linux-gnu/libXi.so.6
#12 0x00007f169954c366 in QXcbConnection::handleEnterEvent() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#13 0x00007f1699538d18 in QXcbWindow::handleEnterNotifyEvent(int, int, int, int, unsigned char, unsigned char, unsigned int) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#14 0x00007f169953928f in QXcbWindow::handleXIEnterLeave(xcb_ge_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#15 0x00007f16995513bc in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#16 0x00007f1699523aca in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#17 0x00007f1699524015 in QXcbConnection::processXcbEvents() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#18 0x00007f16aeb6bb39 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f16af426b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f16af42e2e1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f16aeb3f090 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f16aeb4181d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f16aeb90147 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f169959b71d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#25 0x00007f16aeb3d07a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f16aeb457ec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f16b0f7a206 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#28 0x00007f16b0bf32b1 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#29 0x00005649d2f2482a in _start ()



Since it also references the same libc.so.6, is it possible I have some file corruption. Could it be as simple as going into synaptic package manager and just reinstalling  it?
Comment 6 Christoph Feck 2016-12-21 04:10:48 UTC
Thanks for the update. This crash is in Qt code; reported for Qt 5.5, but also recently for Qt 5.7.1 on debian testing.

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