Bug 413546

Summary: KWin crashes on Sleep/Wake
Product: [Plasma] kwin Reporter: mb1 <marcorion>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.17.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mb1 2019-10-28 11:00:33 UTC
Application: kwin_x11 (5.17.1)

Qt Version: 5.13.1
Frameworks Version: 5.63.0
Operating System: Linux 5.3.7-arch1-1-ARCH x86_64
Distribution: Arch Linux

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

Put KDE to sleep "suspend to RAM". On resume, KWin's compositing will crash various numbers of times. Sometimes 1x, I've seen upwards of 6x on one suspend/resume operation. After crashing, KWin will recover. I saw this crash in KWin 5.16 as well.

This report has a backtrace for Arch Linux, I saw the same crash-on-sleep/wake behavior on Manjaro Linux...difference being that Arch could automatically recover compositing, whereas Manjaro required manual user intervention to re-enable compositing.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3b5b1e4880 (LWP 1314))]

Thread 11 (Thread 0x7f3aa1e0e700 (LWP 13339)):
#0  0x00007f3b60f8dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f3b61e1b660 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b61e1b752 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b60aacdad in  () at /usr/lib/libQt5Quick.so.5
#4  0x00007f3b60aad05e in  () at /usr/lib/libQt5Quick.so.5
#5  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#6  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7f3aa260f700 (LWP 13338)):
#0  0x00007f3b634ffae6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f3b62037973 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b62039003 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f3b61e14385 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b60710849 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7f3aaeaa5700 (LWP 9266)):
#0  0x00007f3b60f8dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f3b61e1b660 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b61e1b752 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b60aacdad in  () at /usr/lib/libQt5Quick.so.5
#4  0x00007f3b60aad05e in  () at /usr/lib/libQt5Quick.so.5
#5  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#6  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7f3b50fcb700 (LWP 9265)):
#0  0x00007f3b634ffae6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f3b62037973 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b62039003 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f3b61e14385 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b60710849 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f3b53fff700 (LWP 7515)):
#0  0x00007f3b60f8dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f3b61e1b660 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b61e1b752 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b60aacdad in  () at /usr/lib/libQt5Quick.so.5
#4  0x00007f3b60aad05e in  () at /usr/lib/libQt5Quick.so.5
#5  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#6  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f3ab38cb700 (LWP 1619)):
#0  0x00007f3b634ffae6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f3b62037973 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b62039003 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f3b61e14385 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b60710849 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f3b525bd700 (LWP 1602)):
#0  0x00007f3b60f8dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f3b618e2edc in  () at /usr/lib/libQt5Script.so.5
#2  0x00007f3b618e2ef9 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f3b537fe700 (LWP 1377)):
#0  0x00007f3b634ffae6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f3b62037973 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b62039003 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f3b61e14385 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b60710849 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f3b5955a700 (LWP 1353)):
#0  0x00007f3b634ffae6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f3b62037973 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f3b62039003 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f3b61e14385 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b6008bb37 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f3b5aa84700 (LWP 1335)):
#0  0x00007f3b634ff9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f3b61d35630 in  () at /usr/lib/libxcb.so.1
#2  0x00007f3b61d372db in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f3b5ad9e101 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f3b61e155b0 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f3b60f874cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f3b6350a2d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f3b5b1e4880 (LWP 1314)):
[KCrash Handler]
#6  0x00007f3b61b2b2c2 in KWin::WindowQuadList::makeInterleavedArrays(unsigned int, KWin::GLVertex2D*, QMatrix4x4 const&) const () at /usr/lib/libkwineffects.so.12
#7  0x00007f3b5812f6a2 in  () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#8  0x00007f3b58137a4b in  () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#9  0x00007f3b58137b89 in  () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#10 0x00007f3b631fd628 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#11 0x00007f3b61b2a28c in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.12
#12 0x00007f3b631fd5c4 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#13 0x00007f3b61ac1070 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#14 0x00007f3b631fd5c4 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#15 0x00007f3b61a24f09 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#16 0x00007f3b631fd5c4 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#17 0x00007f3b63295a3c in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#18 0x00007f3b631fd452 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#19 0x00007f3b61ab18b9 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#20 0x00007f3b631fd3f4 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#21 0x00007f3b61b2a11c in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.12
#22 0x00007f3b631fd3f4 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#23 0x00007f3b61b2a11c in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwineffects.so.12
#24 0x00007f3b631fd3f4 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#25 0x00007f3b6329c367 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /usr/lib/libkwin.so.5
#26 0x00007f3b63298c51 in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/libkwin.so.5
#27 0x00007f3b5812a815 in  () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#28 0x00007f3b6329b901 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#29 0x00007f3b631fd1b4 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#30 0x00007f3b61b2a070 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.12
#31 0x00007f3b631fd15e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#32 0x00007f3b61b2a070 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.12
#33 0x00007f3b631fd15e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#34 0x00007f3b61b2a070 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.12
#35 0x00007f3b631fd15e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#36 0x00007f3b6329b59c in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/libkwin.so.5
#37 0x00007f3b5813324f in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/qt/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#38 0x00007f3b631c28c5 in KWin::Compositor::performCompositing() () at /usr/lib/libkwin.so.5
#39 0x00007f3b620103e5 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#40 0x00007f3b6299f4f5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f3b629a8e11 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#42 0x00007f3b61fe39c2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#43 0x00007f3b6203ad9d in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#44 0x00007f3b62039169 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#45 0x00007f3b5ad9f4df in  () at /usr/lib/libQt5XcbQpa.so.5
#46 0x00007f3b61fe24ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#47 0x00007f3b61fea326 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#48 0x00007f3b635db113 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#49 0x00007f3b63432153 in __libc_start_main () at /usr/lib/libc.so.6
#50 0x000055661939c05e in _start ()
[Inferior 1 (process 1314) detached]

The reporter indicates this bug may be a duplicate of or related to bug 412883.

Possible duplicates by query: bug 413528, bug 413518, bug 413507, bug 413385, bug 413381.

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2019-10-31 11:03:57 UTC

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