Bug 374290 - kwin often hangs
Summary: kwin often hangs
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (show other bugs)
Version: 5.8.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-29 13:57 UTC by Martin Koller
Modified: 2021-11-06 20:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: Intel+


Attachments
kwin backtrace while hanging (5.86 KB, text/plain)
2016-12-29 13:57 UTC, Martin Koller
Details
backtrace with more symbols (7.80 KB, text/plain)
2016-12-31 17:26 UTC, Martin Koller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2016-12-29 13:57:45 UTC
Created attachment 103061 [details]
kwin backtrace while hanging

It happens here (openSuse 42.2, intel GPU) often (at least once a day) that kwin just hangs and I can not interact with anything anymore on the desktop.
I just see the mouse moving but no click is acting anything, even Ctrl-Alt-Esc X11 Server kill mode can not be activated.
I then switch to a VT console and kill -9 the kwin_x11 process. A normal kill does not help.

In the last recent case this happened, I created a backtrace while in the VT, which is attached here.


kwin dbus developer info:

Version
=======
KWin version: 5.8.3
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: 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: 12
font: Noto Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 12

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: 5002
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: false
electricBorderTiling: false
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: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 101
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: LVDS1
Geometry: 0,0,1600x900
Refresh Rate: 59.9782


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string: 2.1 Mesa 11.2.2
OpenGL platform interface: GLX
OpenGL shading language version string: 1.20
Driver: Intel
GPU class: i965
OpenGL version: 2.1
GLSL version: 1.20
Mesa version: 11.2.2
X server version: 1.18.3
Linux kernel version: 4.9
Direct rendering: Requires strict binding: yes
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
screenshot
minimizeanimation
desktopgrid
kwin4_effect_maximize
presentwindows
highlightwindow
startupfeedback
kscreen

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

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:

screenshot:

minimizeanimation:

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

kwin4_effect_maximize:

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:

startupfeedback:
type: 1

kscreen:
Comment 1 Martin Flöser 2016-12-29 15:49:50 UTC
There is a wait towards the x server in the Intel driver. Unfortunately the backtrace does not include the debug symbols for the driver - KWin side is fine. But it means that we don't see why the driver blocks towards X.
Comment 2 Martin Koller 2016-12-31 17:26:29 UTC
Created attachment 103119 [details]
backtrace with more symbols

Added a new backtrace with more symbols from a hang today
Comment 3 Martin Koller 2016-12-31 17:27:01 UTC
New backtrace added
Comment 4 Christoph Feck 2016-12-31 17:35:02 UTC
Please check if newer Mesa fixes the issue. You have a fresh kernel, but outdated Mesa version.
Comment 5 Martin Flöser 2017-01-01 09:33:49 UTC
Another idea I have:

> DRI2GetBuffersWithFormat 

Try enabling DRI3 - if your GPU supports it.
Comment 6 Martin Koller 2017-01-01 13:23:01 UTC
How can I do this ? Is that an x server setting ?

P.S.: I updated now to Mesa 13.0.2 and everything else from openSuse XOrg repo ...
Comment 7 Martin Flöser 2017-01-01 15:22:58 UTC
> How can I do this ? Is that an x server setting ?

Yes, it should be a setting in xorg.conf, though I don't know exactly how to do it.
Comment 8 kde.org 2021-11-06 18:13:38 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 9 Martin Koller 2021-11-06 20:33:30 UTC
I did not see this recently, but I'm now on a different openSuse version (TW) and probably also a different Laptop.
Closing