Bug 417120

Summary: KWin closed unexpectedly when waking up laptop.
Product: [Plasma] kwin Reporter: Milan Bartovic <bartovic.milan>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: chuck, miltonh26, nate
Priority: NOR Keywords: drkonqi
Version: 5.16.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Milan Bartovic 2020-02-03 21:03:40 UTC
Application: kwin_x11 (5.16.5)

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

-- Information about the crash:
- What I was doing when the application crashed:
I just woke up the laptop and logged in. Nothing more.
It happened more times, already.
I will try to reproduce.

The crash can be reproduced sometimes.

-- 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 0x7fa1c0057d00 (LWP 1831))]

Thread 6 (Thread 0x7fa1af3fe700 (LWP 2200)):
#0  0x00007fa1c4d622c6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556e062dad90) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  0x00007fa1c4d622c6 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556e062dad40, cond=0x556e062dad68) at pthread_cond_wait.c:508
#2  0x00007fa1c4d622c6 in __pthread_cond_wait (cond=0x556e062dad68, mutex=0x556e062dad40) at pthread_cond_wait.c:638
#3  0x00007fa1c57f3def in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa1c57f3ee1 in QWaitCondition::wait(QMutex*, unsigned long) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fa1c48897b9 in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007fa1c4889a1a in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007fa1c57edcc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fa1c4d5b669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#9  0x00007fa1c6f54323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fa1a76b2700 (LWP 1941)):
#0  0x00007fa1c4d622c6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa1c5370fb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  0x00007fa1c4d622c6 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fa1c5370f68, cond=0x7fa1c5370f90) at pthread_cond_wait.c:508
#2  0x00007fa1c4d622c6 in __pthread_cond_wait (cond=0x7fa1c5370f90, mutex=0x7fa1c5370f68) at pthread_cond_wait.c:638
#3  0x00007fa1c527a08a in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007fa1c527a0af in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007fa1c4d5b669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fa1c6f54323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa1affff700 (LWP 1897)):
#0  0x00007fa1c5a09a24 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007fa1c59b363b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fa1c57eca75 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fa1c44fb319 in  () at /lib/x86_64-linux-gnu/libQt5Qml.so.5
#4  0x00007fa1c57edcc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fa1c4d5b669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fa1c6f54323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa1be6fd700 (LWP 1883)):
#0  0x00007fa1c6f47d26 in __GI_ppoll (fds=0x7fa1b000b4e8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fa1c5a085f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fa1c5a09b64 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fa1c59b363b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa1c57eca75 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fa1c3f3aefa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007fa1c57edcc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fa1c4d5b669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#8  0x00007fa1c6f54323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa1bf618700 (LWP 1859)):
#0  0x00007fa1c6f47c2f in __GI___poll (fds=0x7fa1bf617c28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa1c5711917 in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fa1c571353a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fa1bf94f288 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fa1c57edcc2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fa1c4d5b669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fa1c6f54323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa1c0057d00 (LWP 1831)):
[KCrash Handler]
#6  0x00007fa1c5490969 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#7  0x00007fa1c5490a29 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#8  0x00007fa1c54928b2 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#9  0x00007fa1c549329d in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#10 0x00007fa1c6c924c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007fa1c53faab0 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#12 0x00007fa1c6c924c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007fa1c54f580f in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#14 0x00007fa1c6c924c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007fa1c6c80a4f in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007fa1c6c92360 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007fa1c548373c in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#18 0x00007fa1c6c92307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007fa1c54f568f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#20 0x00007fa1c6c92307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007fa1c54f568f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#22 0x00007fa1c6c92307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007fa1c54fe75a in KWin::AnimationEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#24 0x00007fa1c6c92307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007fa1c6c87236 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /lib/x86_64-linux-gnu/libkwin.so.5
#26 0x00007fa1c6c83c2d in KWin::Scene::paintSimpleScreen(int, QRegion) () at /lib/x86_64-linux-gnu/libkwin.so.5
#27 0x00007fa1bc01a357 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#28 0x00007fa1c6c86800 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#29 0x00007fa1c6c920b2 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#30 0x00007fa1c54f55c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#31 0x00007fa1c6c92061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#32 0x00007fa1c54f55c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#33 0x00007fa1c6c92061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#34 0x00007fa1c54f55c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#35 0x00007fa1c6c92061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#36 0x00007fa1c54f55c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#37 0x00007fa1c6c92061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#38 0x00007fa1c6c864b3 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#39 0x00007fa1bc022c7e in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#40 0x00007fa1c6c78247 in KWin::Compositor::performCompositing() () at /lib/x86_64-linux-gnu/libkwin.so.5
#41 0x00007fa1c59e0e55 in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007fa1c63c8a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007fa1c63d1e00 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007fa1c59b4a9a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007fa1c5a0ba00 in QTimerInfoList::activateTimers() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x00007fa1c5a09cbf in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007fa1bf950642 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#48 0x00007fa1c59b363b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007fa1c59bb3a6 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007fa1c702d87d in kdemain () at /lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#51 0x00007fa1c6e591e3 in __libc_start_main (main=0x556e05701060, argc=3, argv=0x7ffdb18b87b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdb18b87a8) at ../csu/libc-start.c:308
#52 0x0000556e0570109e in _start ()
[Inferior 1 (process 1831) detached]

Reported using DrKonqi
Comment 1 Milan Bartovic 2020-02-03 21:08:32 UTC
After a next Sleep (Suspend to RAM):
KWin Window Manager
Desktop effects were restarted due to a graphics reset

System is DELL E6420.
Comment 2 Milan Bartovic 2020-02-03 21:10:12 UTC
Next sleep produced again:
KWin Closed Unexpectedly.
Comment 3 Milan Bartovic 2020-02-03 21:16:45 UTC
No KWin crash directly after reboot.
But another crash after sleep.
Comment 4 Chuck 2020-03-09 17:24:39 UTC
Created attachment 126705 [details]
New crash information added by DrKonqi

kwin_x11 (5.18.2) using Qt 5.12.4

- What I was doing when the application crashed:
resumed laptop from sleep, logged in

- Unusual behavior I noticed:
lockscreen shows static pattern instead of image

-- Backtrace (Reduced):
#6  0x00007fafce160f92 in KWin::WindowQuadList::makeInterleavedArrays(unsigned int, KWin::GLVertex2D*, QMatrix4x4 const&) const () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#7  0x00007fafc44c4352 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#8  0x00007fafc44cb919 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#9  0x00007fafc44cba4b in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#10 0x00007fafcf913c37 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion const&, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
Comment 5 Milton Hagler 2020-03-14 10:28:04 UTC
Happens every time I resume from suspend.

Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.3.0-40-generic
Kwin-x11: 4:5.18.3-0xneon+18.04+bionic+build66
Comment 6 Milton Hagler 2020-03-14 10:33:17 UTC
(In reply to Milton Hagler from comment #5)
> Happens every time I resume from suspend.
> 
> Operating System: KDE neon 5.18
> KDE Plasma Version: 5.18.3
> KDE Frameworks Version: 5.67.0
> Qt Version: 5.14.1
> Kernel Version: 5.3.0-40-generic
> Kwin-x11: 4:5.18.3-0xneon+18.04+bionic+build66

Nvidia GeForce GTX 1050 Ti with Max-Q Design
OpenGL: 4.6.0 NVIDIA 435.21
Comment 7 Christoph Feck 2020-03-14 16:36:34 UTC

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