Bug 325340 - Window title decoration text/border/etc becomes graphically corrupted on unfocus sometimes
Summary: Window title decoration text/border/etc becomes graphically corrupted on unfo...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: http://i.imgur.com/mmwLOyD.png
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-26 19:38 UTC by Andrew Udvare
Modified: 2016-08-29 10:46 UTC (History)
0 users

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 Andrew Udvare 2013-09-26 19:38:01 UTC
Just to note, using kernel driver and Intel HD 4000 on a MacBook air.

In System Settings, in Desktop Effects, in the Advanced tab, ever since I swapped to OpenGL 3.1 and then went back to OpenGL 2.0 (or any version) under the Compositing type option, graphics have been messing up for me only regarding the window title area. I am using the Keramik theme but I have tried others and they too seem to mess up at times rendering.

Sometimes the text becomes corrupted and mixes with other text, other times the background of the text becomes black, and other times a rainbowy effect occurs mixed with the text (usually sign of graphical corruption).

This seems to happen mostly when I unfocus a window (clicking on another window).

Had no idea what to put this under since this does not seem to do 100% with compositing either, since I turned that off and it still could happen.

Reproducible: Always

Steps to Reproduce:
1. Same hardware? In System Settings, in Desktop Effects, in the Advanced tab:
Compositing type: OpenGL 3.1
Qt graphics system: Native
Keep window thumbnails: Only for Shown Windows
Scale method: Accurate
Suspend desktop effects for fullscreen windows: NOT checked
Tearing Prevention (VSync): Automatic
Enable color correction: NOT checked
2. Restart compositing? (Alt+Shift+F12)
3. Click around some windows until the effect occurs
Actual Results:  
Graphical corruption occurs in the title area of the window decoration.

Expected Results:  
No graphical corruption.

I have a system at home with the same settings (possibly OpenGL 2.0 however), but it has a relatively recent Nvidia graphics card.

Don't think this applies but both machines have this patch applied to KWin: https://github.com/Tatsh/tatsh-overlay/blob/master/kde-base/kwin/files/kwin-4.11.0-grip-fix.patch
Comment 1 Martin Flöser 2013-09-27 08:45:35 UTC
please provide output of qdbus org.kde.kwin /KWin supportInformation

and try switching to raster - it's the better option for OpenGL
Comment 2 Thomas Lübking 2013-09-27 13:15:37 UTC
This sounds familiar - had you brought it up on the forum or mailing list or in a different bug before?
Comment 3 Andrew Udvare 2013-09-27 17:10:20 UTC
`qdbus org.kde.kwin /KWin supportInformation` output:
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.11.1
KDE SC version (runtime): 4.11.1
KDE SC version (compile): 4.11.1
Qt Version: 4.8.4

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
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick:                                                      
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                                                                                                                                                                                                                                                                                                                                                          
unredirectFullscreen: false                                                                                                                                                                                                                                                                                                                                                
glSmoothScale: 2                                                                                                                                                                                                                                                                                                                                                           
colorCorrected: false                                                                                                                                                                                                                                                                                                                                                      
xrenderSmoothScale: false                                                                                                                                                                                                                                                                                                                                                  
maxFpsInterval: 16666666                                                                                                                                                                                                                                                                                                                                                   
refreshRate: 0                                                                                                                                                                                                                                                                                                                                                             
vBlankTime: 6000000                                                                                                                                                                                                                                                                                                                                                        
glDirect: true                                                                                                                                                                                                                                                                                                                                                             
glStrictBinding: false                                                                                                                                                                                                                                                                                                                                                     
glStrictBindingFollowsDriver: true                                                                                                                                                                                                                                                                                                                                         
glLegacy: false                                                                                                                                                                                                                                                                                                                                                            
glCoreProfile: true                                                                                                                                                                                                                                                                                                                                                        
glPreferBufferSwap: 101                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                           
Screen Edges                                                                                                                                                                                                                                                                                                                                                               
============                                                                                                                                                                                                                                                                                                                                                               
desktopSwitching: false                                                                                                                                                                                                                                                                                                                                                    
desktopSwitchingMovingClients: true                                                                                                                                                                                                                                                                                                                                        
cursorPushBackDistance:                                                                                                                                                                                                                                                                                                                                                    
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: 2
Screen 0 Geometry: 0,0,2560x1440
Screen 1 Geometry: 2560,0,1440x900

Decoration
==========
Current Plugin: kwin3_keramik
Shadows: no
Alpha: no
Announces Alpha: no
Tabbing: no
Frame Overlap: no
Blur Behind: no

Compositing
===========
Qt Graphics System: native
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string: 3.1 (Core Profile) Mesa 9.2.0
OpenGL shading language version string: 1.40
Driver: Intel
GPU class: SandyBridge
OpenGL version: 3.1
GLSL version: 1.40
Mesa version: 9.2
X server version: 1.13.4
Linux kernel version: 3.10.7
Direct rendering: yes
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:
---------------
kwin4_effect_login
kwin4_effect_minimizeanimation
kwin4_effect_scalein
kwin4_effect_slide
kwin4_effect_flipswitch
kwin4_effect_translucency
kwin4_effect_resize
kwin4_effect_maximize
kwin4_effect_presentwindows
kwin4_effect_logout
kwin4_effect_screenedge
kwin4_effect_startupfeedback
kwin4_effect_kscreen

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

Effect Settings:
----------------
kwin4_effect_login:

kwin4_effect_minimizeanimation:

kwin4_effect_scalein:

kwin4_effect_slide:

kwin4_effect_flipswitch:
tabBox: true
tabBoxAlternative: false
duration: 100
angle: 30
xPosition: 0.330000013113022
yPosition: 1
windowTitle: true

kwin4_effect_translucency:

kwin4_effect_resize:
textureScale: true
outline: false

kwin4_effect_maximize:

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

kwin4_effect_logout:
useBlur: true

kwin4_effect_screenedge:

kwin4_effect_startupfeedback:

kwin4_effect_kscreen:
Comment 4 Andrew Udvare 2013-09-27 17:10:42 UTC
(In reply to comment #2)
> This sounds familiar - had you brought it up on the forum or mailing list or
> in a different bug before?

Don't recall doing so. Also searched for similar bugs and was not able to find one.
Comment 5 Andrew Udvare 2013-09-27 17:11:48 UTC
(In reply to comment #1)
> please provide output of qdbus org.kde.kwin /KWin supportInformation
> 
> and try switching to raster - it's the better option for OpenGL

Tried this and it looks like every thing is back to normal. Will report back if anything goes wrong again.
Comment 6 Martin Flöser 2016-08-29 10:46:31 UTC
Given that we don't have any further comments, I assume switching to raster did the trick.