Bug 333249

Summary: KWin has problems with MESA 10 (9) and Intel Ivy / Sandy bridge GPU
Product: [Plasma] kwin Reporter: Tom Kijas <t.kijas>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fernandojorgeleal, t.kijas
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of white stripes

Description Tom Kijas 2014-04-09 21:18:32 UTC
On computers with INTEL video card (Ivy bridge), Ubuntu 12.04.4 (KDE4.8) and 14.04 (KDE4.11.x?) I can see graphical corruption: white stripes, 3D games like HeroesOfNewerth have graphical corruptions too. Sometimes it scramble even cursor of mouse.
With Unity these problems do not appear. There are no corruption, even not in games (strange, right?)

I tried to downgrade the mesa in 12.04 to MESA 8 and it resolved it. But in Ubuntu 14.04 I cannot do that.

Reproducible: Always

Steps to Reproduce:
1. Install Ubuntu 12.04.4 or 14.04
2. Install KDE
3. Use KDE and look at white-stripped graphical corruption and in-games graphical corruption.
Actual Results:  
You can see white stripes corruption in KDE and strange rectangular corruption in 3D games.
In Unity nothing like this - without graphical glitches, no problems in games.

Expected Results:  
To work like in Unity - without graphical corruption )
Comment 1 Thomas Lübking 2014-04-09 21:52:57 UTC
please post the output of
   qdbus org.kde.kwin /KWin supportInformation
(you might have to "export QT_SELECT=qt4" to resolve qdbus)

different results might stem from various reasons (egl / glx; glsl / gl1.4; ...)
Comment 2 Tom Kijas 2014-04-09 21:53:45 UTC
Created attachment 86025 [details]
Screenshot of white stripes
Comment 3 Thomas Lübking 2014-04-12 15:42:51 UTC
ping?
Comment 4 Tom Kijas 2014-04-15 21:24:11 UTC
tomas@tomas-Lenovo-Z580:~$  qdbus org.kde.kwin /KWin supportInformation
Error: org.freedesktop.DBus.Error.UnknownMethod
No such method 'supportInformation' in any interface at object path '/KWin' (signature '')
tomas@tomas-Lenovo-Z580:~$ export QT_SELECT=qt4
tomas@tomas-Lenovo-Z580:~$ qdbus org.kde.kwin /KWin supportInformation
Error: org.freedesktop.DBus.Error.UnknownMethod
No such method 'supportInformation' in any interface at object path '/KWin' (signature '')
tomas@tomas-Lenovo-Z580:~$
Comment 5 Thomas Lübking 2014-04-15 21:26:23 UTC
KDE4.8 is too old for this, please try on Ubuntu 14.04
Comment 6 Fernando J. Leal 2014-04-18 22:54:02 UTC
Greetings!

Same problem here on a HP Envy 15-j101sp system running KDE 4.11 on Debian Jessie. Information about video card, as reported by lspci, is:


00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev ff)


(Optimus system according to nVidia if I recall correctly.)

qdbus org.kde.kwin /KWin supportInformation returns:


Version
=======
KWin version: 4.11.8
KDE SC version (runtime): 4.11.5
KDE SC version (compile): 4.11.5
Qt Version: 4.8.6

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: false
glPreferBufferSwap: 101

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
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: 1
Screen 0 Geometry: 0,0,1920x1080

Decoration
==========
Current Plugin: kwin3_oxygen
Shadows: yes
Alpha: yes
Announces Alpha: yes
Tabbing: yes
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) Haswell Mobile 
OpenGL version string: 3.0 Mesa 10.1.0
OpenGL shading language version string: 1.30
Driver: Intel
GPU class: Haswell
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 10.1
X server version: 1.15
Linux kernel version: 3.13
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_zoom
kwin4_effect_slidingpopups
kwin4_effect_login
kwin4_effect_coverswitch
kwin4_effect_minimizeanimation
kwin4_effect_cubeslide
kwin4_effect_screenshot
kwin4_effect_cube
kwin4_effect_desktopgrid
kwin4_effect_flipswitch
kwin4_effect_translucency
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_dialogparent
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_screenedge
kwin4_effect_startupfeedback
kwin4_effect_kscreen

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_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_login:

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

kwin4_effect_minimizeanimation:

kwin4_effect_cubeslide:
rotationDuration: 500
dontSlidePanels: true
dontSlideStickyWindows: false
usePagerLayout: true
useWindowMoving: false

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_desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

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

kwin4_effect_translucency:

kwin4_effect_maximize:

kwin4_effect_fade:

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_dialogparent:

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_screenedge:

kwin4_effect_startupfeedback:

kwin4_effect_kscreen:


Setting the compositing type to XRender solves the problem, but hurts the performance and some effects (like the cube) that require OpenGL become unavailable.
Comment 7 Thomas Lübking 2014-04-19 00:37:51 UTC
Please try to
- set the compositing backend to GL 1.3
- disable the blur effect
- set scaling to "smooth" (not accurate)
- run "export KWIN_USE_BUFFER_AGE=0; kwin --replace &"
Comment 8 Martin Flöser 2015-01-14 09:07:59 UTC
no feedback on whether the tests from comment #7 improved the situation.
Comment 9 Andrew Crouthamel 2018-09-25 03:55:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-10-27 03:44:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!