Bug 400016

Summary: Resume from Suspend crashes KWIN
Product: [Plasma] kwin Reporter: Chad Clancy <chadmclancy>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde
Priority: NOR Keywords: drkonqi
Version: 5.13.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash report for kwin suspend crash

Description Chad Clancy 2018-10-19 02:12:59 UTC
Application: kwin_x11 (5.13.5)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.18.0-10-generic x86_64
Distribution: Ubuntu 18.10

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

Logging in after resuming from an auto suspend. Computer is set to automatically suspend after 1.5 hrs.

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7f2f61108700 (LWP 13111)):
#0  0x00007f2f744647d6 in __GI_ppoll (fds=0x7f2f4c04a1e8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f2f73005141 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2f730065b9 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2f72fb616b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2f72e050b6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2f714701f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f2f72e0ec87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2f71c3f164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8  0x00007f2f74470def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f2f5091b700 (LWP 1813)):
#0  0x00007f2f71c452eb in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f2f72a22fb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f2f71c452eb in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f2f72a22f68, cond=0x7f2f72a22f90) at pthread_cond_wait.c:502
#2  0x00007f2f71c452eb in __pthread_cond_wait (cond=0x7f2f72a22f90, mutex=0x7f2f72a22f68) at pthread_cond_wait.c:655
#3  0x00007f2f7292be2a in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f2f7292be49 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f2f71c3f164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f2f74470def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f2f62d59700 (LWP 1753)):
#0  0x00007f2f744647d6 in __GI_ppoll (fds=0x7f2f58000d28, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f2f73005141 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2f730065b9 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2f72fb616b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2f72e050b6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2f714701f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f2f72e0ec87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2f71c3f164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8  0x00007f2f74470def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f2f63fff700 (LWP 1670)):
#0  0x00007f2f744647d6 in __GI_ppoll (fds=0x7f2f5c00b398, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f2f73005141 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2f730065b9 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2f72fb616b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2f72e050b6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2f70f54545 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f2f72e0ec87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2f71c3f164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8  0x00007f2f74470def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f2f692c5700 (LWP 1640)):
#0  0x00007f2f744646d9 in __GI___poll (fds=0x7f2f692c4c78, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f2f73f69917 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f2f73f6b53a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f2f697a7159 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f2f72e0ec87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2f71c3f164 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f2f74470def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f2f69e79840 (LWP 1620)):
[KCrash Handler]
#6  0x00007f2f72ba1b0b in KWin::WindowQuadList::makeInterleavedArrays(unsigned int, KWin::GLVertex2D*, QMatrix4x4 const&) const () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#7  0x00007f2f68041f42 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#8  0x00007f2f6804a8b9 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#9  0x00007f2f6804a9e7 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#10 0x00007f2f741dc1c3 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007f2f72b9dd6c in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#12 0x00007f2f741dc163 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f2f72b3ab85 in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#14 0x00007f2f741dc163 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f2f72aa9d29 in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#16 0x00007f2f741dc163 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f2f72b9dd6c in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#18 0x00007f2f741dc163 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007f2f741c88cc in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#20 0x00007f2f741dbffb in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007f2f72b2936a in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#22 0x00007f2f741dbfa3 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007f2f72b9dbfc in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#24 0x00007f2f741dbfa3 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007f2f72b9dbfc in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#26 0x00007f2f741dbfa3 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#27 0x00007f2f72baa66b in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#28 0x00007f2f741dbfa3 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#29 0x00007f2f741cecae in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#30 0x00007f2f741cb45c in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#31 0x00007f2f6803d7d2 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#32 0x00007f2f741ce280 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#33 0x00007f2f741dbd55 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#34 0x00007f2f72b9db51 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#35 0x00007f2f741dbcfd in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#36 0x00007f2f72b9db51 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#37 0x00007f2f741dbcfd in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#38 0x00007f2f72b9db51 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#39 0x00007f2f741dbcfd in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#40 0x00007f2f72b9db51 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#41 0x00007f2f741dbcfd in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#42 0x00007f2f741cdf2e in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#43 0x00007f2f68044ce6 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#44 0x00007f2f741bfcaa in KWin::Compositor::performCompositing() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#45 0x00007f2f72fe0f4b in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x00007f2f739784a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007f2f7397fae0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007f2f72fb7499 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007f2f73008558 in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007f2f7300670c in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#51 0x00007f2f698390ed in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#52 0x00007f2f72fb616b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00007f2f72fbe2e2 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007f2f7454a47b in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#55 0x00007f2f7437a09b in __libc_start_main (main=0x56355f881050, argc=3, argv=0x7ffc316094d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc316094c8) at ../csu/libc-start.c:308
#56 0x000056355f88108a in _start ()
[Inferior 1 (process 1620) detached]

Reported using DrKonqi
Comment 1 Martin Flöser 2018-10-19 04:20:28 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to reproduce please install debug packages and attach a new backtrace.
Comment 2 Chad Clancy 2018-10-22 22:43:54 UTC
Sorry for the delay, I hope I've done this right. I installed kwin-debug and resumed from suspend again today. I'll attach the debug report.
Comment 3 Chad Clancy 2018-10-22 22:44:23 UTC
Created attachment 115836 [details]
Crash report for kwin suspend crash
Comment 4 Chad Clancy 2018-10-22 22:47:16 UTC
(In reply to Chad Clancy from comment #2)
> Sorry for the delay, I hope I've done this right. I installed kwin-debug and
> resumed from suspend again today. I'll attach the debug report.

kwin-dbg, sorry.
Comment 5 David Edmundson 2018-10-22 22:58:03 UTC
thanks
Comment 6 David Edmundson 2018-10-22 22:59:06 UTC

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