Bug 322148 - Rendering goes wrong - some windows miss decorations some black
Summary: Rendering goes wrong - some windows miss decorations some black
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-09 11:21 UTC by davidblunkett
Modified: 2023-10-31 15:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davidblunkett 2013-07-09 11:21:35 UTC
Some times (frequency 1-2 times a day) compositing goes wrong and I get a range of problems from individual windows missing borders or decorations or windows (or parts of windows) being rendered as black boxes. The problem can fix itself (usually a few minutes) or persist until I turn off compositing (alt-shift-F12).  Mostly it is fixed if I reenable compositing.

Reproducible: Sometimes

Steps to Reproduce:
I do not know what causes the problem - it doesn't seem to be associated with anything I do.
Actual Results:  
Sometimes compositing goes wrong, some or all windows lose decorations and some windows or parts present as black boxes including the panel and previews.

Expected Results:  
windows always render correctly

composting type - opengl
QT graphics system -native
This problem has been around for me for a while - it is often difficult to capture because a lot of the time it fixes itself.  This time I captured the problem with ksnapshot (a clue in itself). Image available on request.
Comment 1 Martin Flöser 2013-07-09 11:44:43 UTC
Please provide output of:

qdbus org.kde.kwin /KWin supportInformation
Comment 2 davidblunkett 2013-07-14 21:41:00 UTC
qdbus org.kde.kwin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 4.10.4
KDE SC version (runtime): 4.10.4
KDE SC version (compile): 4.10.4
Qt Version: 4.8.4

Options
=======
focusPolicy: 2
nextFocusPrefersMouse: false
clickRaise: false
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement: 4
focusPolicyIsReasonable: false
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 0
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 1
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 5
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorders: false
electricBorderDelay: 150
electricBorderCooldown: 350
electricBorderPushbackPixels: 1
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
unredirectFullscreen: false
glSmoothScale: 1
glVSync: true
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 17
refreshRate: 0
vBlankTime: 6144
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false

Screens
=======
Multi-Head: no
Number of Screens: 2
Screen 0 Geometry: 0,0,1600x1200
Screen 1 Geometry: 1600,0,1600x1200

Compositing
===========
Qt Graphics System: native
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro 600/PCIe/SSE2
OpenGL version string: 4.2.0 NVIDIA 304.88
Driver: NVIDIA
Driver version: 304.88
GPU class: Unknown
OpenGL version: 4.2
X server version: 1.13.3
Linux kernel version: 3.8
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_login
kwin4_effect_slidingpopups
kwin4_effect_coverswitch
kwin4_effect_translucency
kwin4_effect_screenshot
kwin4_effect_cube
kwin4_effect_boxswitch
kwin4_effect_desktopgrid
kwin4_effect_fade
kwin4_effect_dialogparent
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_outline
kwin4_effect_startupfeedback

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

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

kwin4_effect_login:
fadeToBlack: false

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_coverswitch:
animationDuration: 200
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 900
dynamicThumbnails: true
thumbnailWindows: 8
primaryTabBox: true
secondaryTabBox: false

kwin4_effect_translucency:
decoration: 1
moveResize: 0.8
dialogs: 1
inactive: 1
comboboxPopups: 1
menus: 1
individualMenuConfig: false
dropDownMenus: 1
popupMenus: 1
tornOffMenus: 1

kwin4_effect_screenshot:

kwin4_effect_cube:
cubeOpacity: 0.800000011920929
opacityDesktopOnly: false
displayDesktopName: true
reflection: true
rotationDuration: 500
backgroundColor: #000000
capColor: #d6d2d0
paintCaps: true
closeOnMouseRelease: false
zPosition: 100
useForTabBox: false
invertKeys: false
invertMouse: false
capDeformationFactor: 0
useZOrdering: false
texturedCaps: true

kwin4_effect_boxswitch:

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

kwin4_effect_fade:

kwin4_effect_dialogparent:
changeTime: 300

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_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
dragToClose: false

kwin4_effect_blur:
blurRadius: 12
cacheTexture: true

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_outline:

kwin4_effect_startupfeedback:
Comment 3 davidblunkett 2013-07-14 21:45:54 UTC
Ahem... sorry - since my post I've got a new computer - running exactly the same system as before but slightly different hardware so the information above might be wrong (previous system had an nvidia card as well).  I've also not seen the rendering problem yet but I've only had the machine running for a few hours so I'm not sure.  I think it would be fair to say that unless I see this problem again (in which case I will report it) we can close this.

Sorry about this!
Comment 4 Thomas Lübking 2013-07-15 07:29:33 UTC
Nevermind, If you got a chance to test on the other system again, try setting the graphicssystem to "raster"
Comment 5 davidblunkett 2013-07-15 10:19:17 UTC
Ok will do - the old system will be brought back in a week or so...
Comment 6 davidblunkett 2013-07-18 11:40:41 UTC
Okay I can confirm that with the new system (and the settings given above) I have the still have this problem.  To date I have only seen the black box for a window (but not the loss of window decorations). As before it can be captured on ksnapshot and turinging of compositing fixes the problem.
Comment 7 davidblunkett 2013-07-26 13:01:59 UTC
This problem is getting ridiculous now - four times today either with no borders on some windows or blank panes.  Just now every single window was a black pane until I turned off compositing.
Comment 8 Thomas Lübking 2013-07-26 13:53:18 UTC
"qdbus org.kde.kwin /KWin supportInformation" of the new system?
Comment 9 davidblunkett 2013-07-28 09:36:02 UTC
==========================

Version
=======
KWin version: 4.10.5
KDE SC version (runtime): 4.10.5
KDE SC version (compile): 4.10.5
Qt Version: 4.8.4

Options
=======
focusPolicy: 2
nextFocusPrefersMouse: false
clickRaise: false
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: false
placement: 4
focusPolicyIsReasonable: false
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 0
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 1
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 5
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorders: false
electricBorderDelay: 150
electricBorderCooldown: 350
electricBorderPushbackPixels: 1
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
unredirectFullscreen: false
glSmoothScale: 1
glVSync: true
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 17
refreshRate: 0
vBlankTime: 6144
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false

Screens
=======
Multi-Head: no
Number of Screens: 2
Screen 0 Geometry: 0,0,1600x1200
Screen 1 Geometry: 1600,0,1600x1200

Compositing
===========
Qt Graphics System: native
Compositing is not active

eye know:lunesta:85 qdbus org.kde.kwin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 4.10.5
KDE SC version (runtime): 4.10.5
KDE SC version (compile): 4.10.5
Qt Version: 4.8.4

Options
=======
focusPolicy: 2
nextFocusPrefersMouse: false
clickRaise: false
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: false
placement: 4
focusPolicyIsReasonable: false
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 0
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 1
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 5
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorders: false
electricBorderDelay: 150
electricBorderCooldown: 350
electricBorderPushbackPixels: 1
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
unredirectFullscreen: false
glSmoothScale: 1
glVSync: true
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 17
refreshRate: 0
vBlankTime: 6144
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false

Screens
=======
Multi-Head: no
Number of Screens: 2
Screen 0 Geometry: 0,0,1600x1200
Screen 1 Geometry: 1600,0,1600x1200

Compositing
===========
Qt Graphics System: native
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro 600/PCIe/SSE2
OpenGL version string: 4.2.0 NVIDIA 304.88
Driver: NVIDIA
Driver version: 304.88
GPU class: Unknown
OpenGL version: 4.2
X server version: 1.13.3
Linux kernel version: 3.8
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_login
kwin4_effect_slidingpopups
kwin4_effect_coverswitch
kwin4_effect_translucency
kwin4_effect_screenshot
kwin4_effect_cube
kwin4_effect_boxswitch
kwin4_effect_desktopgrid
kwin4_effect_fade
kwin4_effect_dialogparent
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_outline
kwin4_effect_startupfeedback

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

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

kwin4_effect_login:
fadeToBlack: false

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_coverswitch:
animationDuration: 200
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 900
dynamicThumbnails: true
thumbnailWindows: 8
primaryTabBox: true
secondaryTabBox: false

kwin4_effect_translucency:
decoration: 1
moveResize: 0.8
dialogs: 1
inactive: 1
comboboxPopups: 1
menus: 1
individualMenuConfig: false
dropDownMenus: 1
popupMenus: 1
tornOffMenus: 1

kwin4_effect_screenshot:

kwin4_effect_cube:
cubeOpacity: 0.800000011920929
opacityDesktopOnly: false
displayDesktopName: true
reflection: true
rotationDuration: 500
backgroundColor: #000000
capColor: #d6d2d0
paintCaps: true
closeOnMouseRelease: false
zPosition: 100
useForTabBox: false
invertKeys: false
invertMouse: false
capDeformationFactor: 0
useZOrdering: false
texturedCaps: true

kwin4_effect_boxswitch:

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

kwin4_effect_fade:

kwin4_effect_dialogparent:
changeTime: 300

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_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
dragToClose: false

kwin4_effect_blur:
blurRadius: 12
cacheTexture: true

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_outline:

kwin4_effect_startupfeedback:


The problem only occurs when compositing is turned on.  The missing borders / decorations usually resolve themselves after a short time (few seconds-minute) but the black windows never seem to fix themselves even if minimised resized etc etc.  turning compositing off resolves all the problems.
Comment 10 Thomas Lübking 2013-07-28 11:07:32 UTC
It's both times
> OpenGL renderer string: Quadro 600/PCIe/SSE2
> OpenGL version string: 4.2.0 NVIDIA 304.88

So not the same, but equal systems? (or was that the output of the original system again and the first, uncomposited, on the new one only?)

1. Have you meanwhile tried using the raster graphicsystem?
2. Try "kwriteconfig --file kwinrc --group Compositing --key --GLStrictBinding true" and "kwin --replace"
3. This is a 10bpc GPU, what's the output of "xwininfo | grep -i depth" and "xprop | grep COLOR" on such completely black window?
4. Does it also happen on a single screen config?
Comment 11 davidblunkett 2013-07-28 18:51:14 UTC
Sorry for the confusion - they both for the new system (hence my earlier apology "Ahem... sorry - since my post I've got a new computer"). I forgot to mention this when asked for the specs the second time so both sets of specs are for the (same) new system.  The previous (old) system was running an nvidia 8800-something I think.

(1) Haven't tried yet - running now.
(2) I'll try this after giving (1) a few days
(3) I'll run these tests next time I see such a window (everything is 24bpp now).
(4) Good question - I have various similar systems and I've only seen this problem on the dual head one - I did see a something similar on another nvidia dualhead system last week (window decorations and panel gone, mouse and windows still working) but it wasn't mine machine and I don't know how frequent the problem was.

Because the problem is intermittent  it makes it hard to try some tests - I can sometimes go for several days without seeing the problem - (4) is difficult to do for this reason.
Comment 12 davidblunkett 2013-07-28 18:54:30 UTC
When trying (1) I got a load of errors:

Blur effect failed to load due to unknown reason
Box Switch...
Cover...
Desktop...
...
Zoom effect

I get the same for raster or native - probably isn't relevant but I thought I'd mention it.
Comment 13 Thomas Lübking 2013-07-28 18:59:11 UTC
False positive output. Changing the graphicssystem requires to restart kwin and when the dialog asks whether everything works, kwin has not finished the compositor (we're starting threaded), thus believes things failed.
Ensure the setting is still correct afterwards.

About the dualscreen: make a window wiiide (ie full 3200px of both screens) -> does that increase the blackness likelihood?
Comment 14 davidblunkett 2013-07-29 18:22:15 UTC
I only use 3200x1200 on occasion but it doesn't seem to be linked to the problems I'm describing.  I've not noticed the problem with very wide windows - I think every time they've been with normal sized windows but since it is rare for me to used >1600px wide I can't be certain.
Comment 15 davidblunkett 2013-08-24 21:28:18 UTC
I've been running with Raster (as opposed to native) rendering for sometime now and I have not noticed any of these problems - I guess this narrows the problem to "native". I don't really know what any of this means but I'll be happy to close this for now-

Thomas - Thanks for your help (and patience)!
Comment 16 Martin Flöser 2016-11-02 14:14:41 UTC
With the switch to Qt 5 KWin does not provide the raster/native options any more and we only have what used to be raster. In addition we have a new decoration system which is more reliable for OpenGL rendering and also we have some fixes for the black window on NVIDIA issue.

So overall I'm quite confident that we fixed this bug for good :-)
Comment 17 davidblunkett 2016-11-10 12:25:17 UTC
Actually I had forgotten about this bug - I've not seen it for eons so it must be fixed! happy to see this closed. - thanks