Bug 379424

Summary: KWin Crash After Waking From Suspend
Product: [Plasma] kwin Reporter: Jacob Noori <jacobnoori>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.8.6   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jacob Noori 2017-05-01 23:17:16 UTC
Application: kwin_x11 (5.8.6)

Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.4.57-18.3-default x86_64
Distribution: "openSUSE Leap 42.2"

-- Information about the crash:
- What I was doing when the application crashed:
I had put my PC to Suspend the night before and I pressed a keyboard key to wake it up. KWin crash report opened after entering my password.
- Unusual behavior I noticed:
The fans spun on but the monitor remained in sleep mode until the HDD light blinked and then it turned on.

The crash can be reproduced every time.

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

Thread 8 (Thread 0x7fc6ed153700 (LWP 23031)):
#0  0x00007fc70ed2f0bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fc70bf2365b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc7071dd4eb in  () at /usr/lib64/libQt5Quick.so.5
#3  0x00007fc7071dd995 in  () at /usr/lib64/libQt5Quick.so.5
#4  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fc6d9477700 (LWP 23030)):
#0  0x00007fc70ea61b03 in select () at /lib64/libc.so.6
#1  0x00007fc70c131849 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc70c1330c3 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fc70c133527 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fc70c0e2fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70bf1df1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fc706b089c8 in  () at /usr/lib64/libQt5Qml.so.5
#7  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fc6d9c78700 (LWP 19990)):
#0  0x00007fc70ed2f0bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fc70bf2365b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc7071dd4eb in  () at /usr/lib64/libQt5Quick.so.5
#3  0x00007fc7071dd995 in  () at /usr/lib64/libQt5Quick.so.5
#4  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fc6ef1ba700 (LWP 15044)):
#0  0x00007fc70ea61b03 in select () at /lib64/libc.so.6
#1  0x00007fc70c131849 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc70c1330c3 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fc70c133527 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fc70c0e2fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70bf1df1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fc6d2afe700 (LWP 13222)):
#0  0x00007fc70ed2f0bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fc70b0b193b in  () at /usr/lib64/libQt5Script.so.5
#2  0x00007fc70b0b1969 in  () at /usr/lib64/libQt5Script.so.5
#3  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fc6ee174700 (LWP 13219)):
#0  0x00007fc70ea61b03 in select () at /lib64/libc.so.6
#1  0x00007fc70c131849 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc70c1330c3 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fc70c133527 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fc70c0e2fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70bf1df1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fc706b089c8 in  () at /usr/lib64/libQt5Qml.so.5
#7  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fc6f4889700 (LWP 13203)):
#0  0x00007fc70ea61b03 in select () at /lib64/libc.so.6
#1  0x00007fc70c131849 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fc70c1330c3 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fc70c133527 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fc70c0e2fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fc70bf1df1a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fc705ce91d5 in  () at /usr/lib64/libQt5DBus.so.5
#7  0x00007fc70bf229e9 in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fc70ed2a744 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fc70ea68d3d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fc70f2fd940 (LWP 13198)):
[KCrash Handler]
#6  0x00007fc70eaa7d26 in __memcpy_avx_unaligned () at /lib64/libc.so.6
#7  0x00007fc70795e823 in KWin::GLVertexBuffer::setData(int, int, float const*, float const*) () at /usr/lib64/libkwinglutils.so.9
#8  0x00007fc70e61b76e in  () at /usr/lib64/libkwin.so.5
#9  0x00007fc70e6223d5 in KWin::SceneOpenGL::paintBackground(QRegion) () at /usr/lib64/libkwin.so.5
#10 0x00007fc70e60cfd9 in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib64/libkwin.so.5
#11 0x00007fc70e61b273 in  () at /usr/lib64/libkwin.so.5
#12 0x00007fc70e60f0d5 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib64/libkwin.so.5
#13 0x00007fc70e63d280 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib64/libkwin.so.5
#14 0x00007fc70b8c47df in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib64/libkwineffects.so.9
#15 0x00007fc70e63d240 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib64/libkwin.so.5
#16 0x00007fc70e60ed78 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&) () at /usr/lib64/libkwin.so.5
#17 0x00007fc70e622f6c in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib64/libkwin.so.5
#18 0x00007fc70e601fca in KWin::Compositor::performCompositing() () at /usr/lib64/libkwin.so.5
#19 0x00007fc70c10ff34 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#20 0x00007fc70cdebe3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#21 0x00007fc70cdf049a in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#22 0x00007fc70c0e4fc5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007fc70c134c7e in QTimerInfoList::activateTimers() () at /usr/lib64/libQt5Core.so.5
#24 0x00007fc70c1335c8 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#25 0x00007fc6f7aab94d in  () at /usr/lib64/libQt5XcbQpa.so.5
#26 0x00007fc70c0e2fdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#27 0x00007fc70c0eaec6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#28 0x00007fc70ef489cc in kdemain () at /usr/lib64/libkdeinit5_kwin_x11.so
#29 0x00007fc70e99f6e5 in __libc_start_main () at /lib64/libc.so.6
#30 0x0000000000400809 in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2017-05-02 07:38:58 UTC
please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Jacob Noori 2017-05-02 10:50:24 UTC
https://paste.kde.org/ptqdyd0ru
Comment 3 Christoph Feck 2017-06-07 11:54:16 UTC
Support information from comment #2:

Version
=======
KWin version: 5.8.6
Qt Version: 5.6.1
Qt compile version: 5.6.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: no
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: no

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11803000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 0
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DP-4
Geometry: 0,0,3440x1440
Refresh Rate: 59.9726


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL version string: 4.5.0 NVIDIA 375.39
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50 NVIDIA
Driver: NVIDIA
Driver version: 375.39
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
X server version: 1.18.3
Linux kernel version: 4.4.57
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
dimscreen
slidingpopups
slideback
slide
screenshot
kwin4_effect_windowaperture
kwin4_effect_translucency
minimizeanimation
kwin4_effect_scalein
desktopgrid
kwin4_effect_morphingpopups
kwin4_effect_maximize
presentwindows
highlightwindow
blur
startupfeedback
kscreen

Currently Active Effects:
-------------------------
blur

Effect Settings:
----------------
zoom:
zoomFactor: 2.0000000000000004
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

dimscreen:

slidingpopups:
fadeInTime: 75
fadeOutTime: 125

slideback:

slide:

screenshot:

kwin4_effect_windowaperture:

kwin4_effect_translucency:

minimizeanimation:

kwin4_effect_scalein:

desktopgrid:
zoomDuration: 150
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

kwin4_effect_morphingpopups:

kwin4_effect_maximize:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 75
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

blur:
blurRadius: 13
cacheTexture: true

startupfeedback:
type: 1

kscreen:
Comment 4 Martin Flöser 2017-06-17 13:09:54 UTC

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