Bug 375177

Summary: Redrawing sometimes fails
Product: [Plasma] kwin Reporter: Dan Dart <kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.8.5   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-12219-0.html

Description Dan Dart 2017-01-17 10:56:21 UTC
I'm not sure what component, so have added to kwin/general.
This could even be an X11/freedesktop bug but I don't know enough about it to know.

Problem: Often interacting with a window does not show the effects of interaction (e.g. scrolling) until the window is minimised or another window is put over the top of it, at which point the window is again drawn.

I suspect this is something to do with the window manager not realising or forgetting that it's active.

This often happens without warning and is not easily reproducable.

I have Skylake integrated graphics (i965, 520) with oibaf graphics drivers on Mint 18 if this helps narrow it down.

It's happened with Firefox, Konqueror and Amarok before, and I've only noticed it happening one window at a time. The rest of the desktop is unaffected.

I have to close the app and restart it for it to return to normal behaviour.

Any logs you need to see about this?

Cheers
Comment 1 Martin Flöser 2017-01-17 12:12:42 UTC
Created attachment 103461 [details]
attachment-12219-0.html

Please provide the output of
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Dan Dart 2017-01-17 13:02:48 UTC
Here it is

https://paste.kde.org/pzdcszps1

Cheers
Comment 3 Martin Flöser 2017-01-17 15:51:03 UTC
Pastes expire, thus copy here:
Version
=======
KWin version: 5.8.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: false
alphaChannelSupported: false
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: 2
useCompositing: false
compositingInitialized: false
hiddenPreviews: 1
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 97
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: eDP1
Geometry: 0,0,1366x768
Refresh Rate: 60.3185


Compositing
===========
Compositing is not active
Comment 4 Martin Flöser 2017-01-17 15:51:26 UTC
Compositing is disabled, KWin is not responsible for the issues you experience
Comment 5 Dan Dart 2017-01-17 15:56:06 UTC
Whoops - I think that was a copy of after it crashed and decided to turn it off. I'll grab you another. I definitely have KDE desktop effects usually.

If it's still not compositing's problem, what else could it have been?
Comment 6 Dan Dart 2017-01-17 17:38:45 UTC
Would it have deliberately turned off compositing after one crash? I think that could be good for the issue but not for the good window management.
Comment 7 Martin Flöser 2017-01-17 21:14:33 UTC
After two days in a row compositing gets disabled. Or if the crash happened while setting up compositing. Basically protecting against a crash restart loop. Unfortunately the quality of drivers is so low that one needs such quirks.