Bug 377845

Summary: kwin craches at resume from standby
Product: [Plasma] kwin Reporter: guitar1
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description guitar1 2017-03-20 17:15:45 UTC
Application: kwin_x11 (5.7.5)

Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.8.0-34-generic x86_64
Distribution: Ubuntu 16.10

-- Information about the crash:
- What I was doing when the application crashed:
I pressed a key on my keyboard to get my system resumed from standby.
I am also wondering, why bugs.kde.org tells me 5.8.4 is the oldest supported version, while my up to date kubuntu 16.10 has kwin 5.7.5 installed - this sound wrong for me.

- Unusual behavior I noticed:
The screen was off for tty7 (off - not black color displayed), a switch to tty1 and switch back to tty7 appears to restart kwin. And I was able to logon again. No session state seems to be lost (all programms were stil opened).

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 0x7f8902ade900 (LWP 2296))]

Thread 7 (Thread 0x7f8837988700 (LWP 11362)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f890023cb2b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x55cd1380f0c0) at thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x55cd1381b0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#3  0x00007f88fb1b54f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#4  0x00007f88fb1b5dea in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007f890023bc68 in QThreadPrivate::start (arg=0x55cd1381b070) at thread/qthread_unix.cpp:341
#6  0x00007f88fbb896ca in start_thread (arg=0x7f8837988700) at pthread_create.c:333
#7  0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 6 (Thread 0x7f88dce5f700 (LWP 11361)):
#0  0x00007f89025e2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f8900464caf in qt_safe_select (nfds=29, fdread=fdread@entry=0x7f88cc000a78, fdwrite=fdwrite@entry=0x7f88cc000d08, fdexcept=fdexcept@entry=0x7f88cc000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f8900466754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7f88cc000f98, writefds=0x7f88cc000d08, readfds=0x7f88cc000a78, nfds=<optimized out>, this=0x7f88cc0008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f88cc0008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f8900466c6a in QEventDispatcherUNIX::processEvents (this=0x7f88cc0008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f89004110fa in QEventLoop::exec (this=this@entry=0x7f88dce5eca0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f8900236d43 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007f88face7c65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f890023bc68 in QThreadPrivate::start (arg=0x55cd136af050) at thread/qthread_unix.cpp:341
#9  0x00007f88fbb896ca in start_thread (arg=0x7f88dce5f700) at pthread_create.c:333
#10 0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 5 (Thread 0x7f88df5ef700 (LWP 8370)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f890023cb2b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x55cd135b8b00) at thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x55cd133e14d0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#3  0x00007f88fb1b54f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#4  0x00007f88fb1b5dea in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007f890023bc68 in QThreadPrivate::start (arg=0x55cd133e1450) at thread/qthread_unix.cpp:341
#6  0x00007f88fbb896ca in start_thread (arg=0x7f88df5ef700) at pthread_create.c:333
#7  0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7f88d4fe0700 (LWP 2392)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88ff5d0574 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f88ff5d05b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f88fbb896ca in start_thread (arg=0x7f88d4fe0700) at pthread_create.c:333
#4  0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7f88debd0700 (LWP 2358)):
#0  0x00007f89025e2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f8900464caf in qt_safe_select (nfds=14, fdread=fdread@entry=0x7f88d0000a78, fdwrite=fdwrite@entry=0x7f88d0000d08, fdexcept=fdexcept@entry=0x7f88d0000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f8900466754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7f88d0000f98, writefds=0x7f88d0000d08, readfds=0x7f88d0000a78, nfds=<optimized out>, this=0x7f88d00008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f88d00008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f8900466c6a in QEventDispatcherUNIX::processEvents (this=0x7f88d00008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f89004110fa in QEventLoop::exec (this=this@entry=0x7f88debcfca0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f8900236d43 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#7  0x00007f88face7c65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f890023bc68 in QThreadPrivate::start (arg=0x55cd115bdb30) at thread/qthread_unix.cpp:341
#9  0x00007f88fbb896ca in start_thread (arg=0x7f88debd0700) at pthread_create.c:333
#10 0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7f88ec932700 (LWP 2302)):
#0  0x00007f89025e10bd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f88f90e99d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f88f90e9aec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89004694ab in QEventDispatcherGlib::processEvents (this=0x7f88e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#4  0x00007f89004110fa in QEventLoop::exec (this=this@entry=0x7f88ec931c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f8900236d43 in QThread::exec (this=this@entry=0x7f8902c6fd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:500
#6  0x00007f8902bfb575 in QDBusConnectionManager::run (this=0x7f8902c6fd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:171
#7  0x00007f890023bc68 in QThreadPrivate::start (arg=0x7f8902c6fd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#8  0x00007f88fbb896ca in start_thread (arg=0x7f88ec932700) at pthread_create.c:333
#9  0x00007f89025ed0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f8902ade900 (LWP 2296)):
[KCrash Handler]
#6  __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/../multiarch/memmove-vec-unaligned-erms.S:448
#7  0x00007f88fb7307ae in KWin::GLVertexBuffer::setData (this=this@entry=0x55cd115309f0, vertexCount=36, dim=dim@entry=2, vertices=0x55cd138fa0c8, texcoords=texcoords@entry=0x0) at ./libkwineffects/kwinglutils.cpp:2060
#8  0x00007f890219186e in KWin::SceneOpenGL2::doPaintBackground (this=0x55cd115a3f80, vertices=...) at ./scene_opengl.cpp:1095
#9  0x00007f89021970e5 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x55cd115a3f80, region=...) at ./scene_opengl.cpp:813
#10 0x00007f890217fa25 in KWin::Scene::paintSimpleScreen (this=this@entry=0x55cd115a3f80, orig_mask=orig_mask@entry=0, region=...) at ./scene.cpp:371
#11 0x00007f89021917f3 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x55cd115a3f80, mask=mask@entry=0, region=...) at ./scene_opengl.cpp:1078
#12 0x00007f8902180014 in KWin::Scene::finalPaintScreen (this=0x55cd115a3f80, mask=mask@entry=0, region=..., data=...) at ./scene.cpp:201
#13 0x00007f89021a92ef in KWin::EffectsHandlerImpl::paintScreen (this=0x55cd1150e530, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:429
#14 0x00007f88ffbe509f in KWin::Effect::paintScreen (this=this@entry=0x55cd11520650, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:574
#15 0x00007f89021a929a in KWin::EffectsHandlerImpl::paintScreen (this=0x55cd1150e530, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:426
#16 0x00007f88ffbe509f in KWin::Effect::paintScreen (this=this@entry=0x55cd1158b570, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:574
#17 0x00007f89021a929a in KWin::EffectsHandlerImpl::paintScreen (this=0x55cd1150e530, mask=0, region=..., data=...) at ./effects.cpp:426
#18 0x00007f890217fc9d in KWin::Scene::paintScreen (this=this@entry=0x55cd115a3f80, mask=mask@entry=0x7ffdc7ec2f80, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffdc7ec2f50, validRegion=validRegion@entry=0x7ffdc7ec2f60, projection=...) at ./scene.cpp:151
#19 0x00007f8902197c06 in KWin::SceneOpenGL::paint (this=0x55cd115a3f80, damage=..., toplevels=...) at ./scene_opengl.cpp:731
#20 0x00007f890217281a in KWin::Compositor::performCompositing (this=0x55cd1139cdb0) at ./composite.cpp:720
#21 0x00007f8900441653 in QObject::event (this=0x55cd1139cdb0, e=<optimized out>) at kernel/qobject.cpp:1278
#22 0x00007f8900d4e8ac in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55cd1139cdb0, e=0x7ffdc7ec33d0) at kernel/qapplication.cpp:3804
#23 0x00007f8900d53d4f in QApplication::notify (this=0x7ffdc7ec3640, receiver=0x55cd1139cdb0, e=0x7ffdc7ec33d0) at kernel/qapplication.cpp:3561
#24 0x00007f89004133b0 in QCoreApplication::notifyInternal2 (receiver=0x55cd1139cdb0, event=event@entry=0x7ffdc7ec33d0) at kernel/qcoreapplication.cpp:1015
#25 0x00007f89004683ae in QCoreApplication::sendEvent (event=0x7ffdc7ec33d0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#26 QTimerInfoList::activateTimers (this=0x55cd11366cb8) at kernel/qtimerinfo_unix.cpp:637
#27 0x00007f8900466140 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x55cd11364f70) at kernel/qeventdispatcher_unix.cpp:549
#28 0x00007f8900466c3b in QEventDispatcherUNIX::processEvents (this=0x55cd11364f70, flags=...) at kernel/qeventdispatcher_unix.cpp:611
#29 0x00007f88e7b5394d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#30 0x00007f89004110fa in QEventLoop::exec (this=this@entry=0x7ffdc7ec3530, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#31 0x00007f890041990c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#32 0x00007f890075da7c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1602
#33 0x00007f8900d4b8e5 in QApplication::exec () at kernel/qapplication.cpp:2979
#34 0x00007f89028b5206 in kdemain (argc=<optimized out>, argv=0x7ffdc7ec37c8) at ./main_x11.cpp:466
#35 0x00007f89025053f1 in __libc_start_main (main=0x55cd0ffa27e0 <main>, argc=1, argv=0x7ffdc7ec37c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdc7ec37b8) at ../csu/libc-start.c:291
#36 0x000055cd0ffa281a in _start ()

An https://bugs.kde.org/ berichten
Comment 1 Martin Flöser 2017-04-02 09:12:32 UTC
Please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 2 guitar1 2017-04-02 13:23:25 UTC
As requested the output of qdbus org.kde.KWin /KWin supportInformation

https://pastebin.com/Knb0Z13i

Thanks for having a look at the problem!
Comment 3 Martin Flöser 2017-04-02 13:48:46 UTC
Version
=======
KWin version: 5.7.5
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: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11804000
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: Oxygen-Sans,10,-1,5,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: 16777250
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: 2
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 0
glPlatformInterface: 1

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

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

Screen 0:
---------
Name: DP-0
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 367.57
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50 NVIDIA
Driver: NVIDIA
Driver version: 367.57
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
X server version: 1.18.4
Linux kernel version: 4.8
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
slidingpopups
kwin4_effect_login
slide
screenshot
minimizeanimation
kwin4_effect_translucency
kwin4_effect_windowaperture
desktopgrid
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_dialogparent
presentwindows
highlightwindow
blur
contrast
logout
startupfeedback
screenedge
kscreen

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

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

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

kwin4_effect_login:

slide:

screenshot:

minimizeanimation:

kwin4_effect_translucency:

kwin4_effect_windowaperture:

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

kwin4_effect_morphingpopups:

kwin4_effect_maximize:

kwin4_effect_fade:

kwin4_effect_dialogparent:

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

highlightwindow:

blur:
blurRadius: 11
cacheTexture: true

contrast:

logout:
useBlur: true

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 4 Martin Flöser 2017-04-02 13:49:11 UTC

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