Bug 414480

Summary: Kwin Crashes after sleep
Product: [Plasma] kwin Reporter: Vinay Verma <budheswarbaghel>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.16.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vinay Verma 2019-11-25 05:37:41 UTC
Application: kwin_x11 (5.16.5)

Qt Version: 5.12.4
Frameworks Version: 5.62.0
Operating System: Linux 5.3.0-23-generic x86_64
Distribution: Ubuntu 19.10

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

When I log back in after the sleep.

- Unusual behavior I noticed:

The KWin restarted and the desktop look like tearup. I think it is because of Nvidia driver.

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 0x7f045ef03d00 (LWP 1624))]

Thread 6 (Thread 0x7f0457fff700 (LWP 5090)):
#0  0x00007f0463c0e2c6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f0458032b34) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  0x00007f0463c0e2c6 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7f0458032ae0, cond=0x7f0458032b08) at pthread_cond_wait.c:508
#2  0x00007f0463c0e2c6 in __pthread_cond_wait (cond=0x7f0458032b08, mutex=0x7f0458032ae0) at pthread_cond_wait.c:638
#3  0x00007f046469fdef in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f046469fee1 in QWaitCondition::wait(QMutex*, unsigned long) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f04637357b9 in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f0463735a1a in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f0464699cc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f0463c07669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#9  0x00007f0465e00323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f044a2da700 (LWP 1766)):
#0  0x00007f0463c0e2c6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f046421cfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  0x00007f0463c0e2c6 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7f046421cf68, cond=0x7f046421cf90) at pthread_cond_wait.c:508
#2  0x00007f0463c0e2c6 in __pthread_cond_wait (cond=0x7f046421cf90, mutex=0x7f046421cf68) at pthread_cond_wait.c:638
#3  0x00007f046412608a in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f04641260af in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f0463c07669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f0465e00323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f0457756700 (LWP 1749)):
#0  0x00007f0465df3d26 in __GI_ppoll (fds=0x7f0444000d68, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f04648b45f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f04648b5b64 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f046485f63b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0464698a75 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f04633a7319 in  () at /lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f0464699cc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f0463c07669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#8  0x00007f0465e00323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f045d5fd700 (LWP 1682)):
#0  0x00007f0465df3d26 in __GI_ppoll (fds=0x7f045000a878, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f04648b45f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f04648b5b64 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f046485f63b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0464698a75 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0462de6efa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f0464699cc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f0463c07669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#8  0x00007f0465e00323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f045e518700 (LWP 1645)):
#0  0x00007f0465df3c2f in __GI___poll (fds=0x7f045e517c28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f04645bd917 in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f04645bf53a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f045e84f288 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f0464699cc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0463c07669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f0465e00323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f045ef03d00 (LWP 1624)):
[KCrash Handler]
#6  0x00007f04643a2964 in KWin::WindowQuadList::makeInterleavedArrays(unsigned int, KWin::GLVertex2D*, QMatrix4x4 const&) const () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#7  0x00007f045c03c167 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#8  0x00007f045c044369 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#9  0x00007f045c04449b in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#10 0x00007f0465b3e527 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007f04643a180f in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#12 0x00007f0465b3e4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f046433ed4a in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#14 0x00007f0465b3e4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f04642a6ab0 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#16 0x00007f0465b3e4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f04643a180f in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#18 0x00007f0465b3e4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007f04643a180f in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#20 0x00007f0465b3e4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007f0465b2ca4f in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#22 0x00007f0465b3e360 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007f046432f73c in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#24 0x00007f0465b3e307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007f04643a168f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#26 0x00007f0465b3e307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#27 0x00007f04643a168f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#28 0x00007f0465b3e307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#29 0x00007f04643aa75a in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#30 0x00007f0465b3e307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#31 0x00007f04643aa75a in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#32 0x00007f0465b3e307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#33 0x00007f0465b33236 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /lib/x86_64-linux-gnu/libkwin.so.5
#34 0x00007f0465b2fc2d in KWin::Scene::paintSimpleScreen(int, QRegion) () at /lib/x86_64-linux-gnu/libkwin.so.5
#35 0x00007f045c037357 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#36 0x00007f0465b32800 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#37 0x00007f0465b3e0b2 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#38 0x00007f04643a15c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#39 0x00007f0465b3e061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#40 0x00007f04643a15c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#41 0x00007f0465b3e061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#42 0x00007f04643a15c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#43 0x00007f0465b3e061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#44 0x00007f04643a15c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#45 0x00007f0465b3e061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#46 0x00007f04643a15c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#47 0x00007f0465b3e061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#48 0x00007f0465b324b3 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#49 0x00007f045c03fc7e in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#50 0x00007f0465b24247 in KWin::Compositor::performCompositing() () at /lib/x86_64-linux-gnu/libkwin.so.5
#51 0x00007f046488ce55 in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#52 0x00007f0465274a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007f046527de00 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#54 0x00007f0464860a9a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x00007f04648b7a00 in QTimerInfoList::activateTimers() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#56 0x00007f04648b5cbf in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#57 0x00007f045e850642 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#58 0x00007f046485f63b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#59 0x00007f04648673a6 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#60 0x00007f0465ed987d in kdemain () at /lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#61 0x00007f0465d051e3 in __libc_start_main (main=0x559ce0890060, argc=3, argv=0x7ffd5b76d4f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd5b76d4e8) at ../csu/libc-start.c:308
#62 0x0000559ce089009e in _start ()
[Inferior 1 (process 1624) detached]

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2019-11-25 06:45:53 UTC

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