Bug 362131 - Heavily dIstorted graphics when running KDE on Wayland
Summary: Heavily dIstorted graphics when running KDE on Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-wayland (show other bugs)
Version: 5.6.95
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-23 10:59 UTC by Theodore
Modified: 2016-11-02 20:27 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of distortion - wayland session (1.07 MB, image/jpeg)
2016-06-19 11:27 UTC, Miroslav Spehar
Details
One Picture I took (1.37 MB, image/jpeg)
2016-07-02 20:21 UTC, Theodore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Theodore 2016-04-23 10:59:27 UTC
When I try to run KDE on Wayland the desktop area and launcher are heavily distorted. I can click the buttons and launch applications. The applications launched look perfectly fine. The logs I found say:

plasmashell[2314]: org.kde.kf5.kwindowsystem.kwayland: This plugin does not support changing SkipPager window state

I am not very familiar with Linux so this is the only log I could find(using Journalctl). I can provide any additional logs.

Sometimes in the desktop area I can see other windows I had open before logging out or the SDDM screen!

Reproducible: Always

Steps to Reproduce:
1.Launch a KDE 

Actual Results:  
Distorted graphics

Expected Results:  
Normal graphics

I have a Sapphire R9 380.
Comment 1 Marco Martin 2016-05-04 11:32:02 UTC
can you provide a screenshot? (even an actual screen photo would do as it's still a bit more difficult to take screenshots)
Comment 2 Miroslav Spehar 2016-06-19 11:27:20 UTC
Created attachment 99603 [details]
screenshot of distortion - wayland session

spectacle doesn't work, so here's a picture taken with phone

not sure if this is the same thing, but i have similar experience using saphire r9 380

one additional note, not all apps are shown correctly. e.g. settings for changing resolution is also distorted, but not the controls, but the representation of the monitor in that window. if needed, i can also send the screenshot.

the issue happens on both, 5.6 and 5.7 beta.
Comment 3 Buovjaga 2016-07-02 20:13:11 UTC
I'll go ahead and assume it is the same issue, setting to CONFIRMED.
Theodore: it would be great, if you could attach a screenshot/photo as well.
Comment 4 Theodore 2016-07-02 20:21:41 UTC
Created attachment 99811 [details]
One Picture I took
Comment 5 Martin Flöser 2016-08-12 11:10:30 UTC
could you please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 6 Miroslav Spehar 2016-08-12 14:21:03 UTC
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: 5.7.3
Qt Version: 5.7.0
Qt compile version: 5.7.0
XCB compile version: 1.12

Operation Mode: Xwayland

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: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 14
font: Noto Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

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: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 0
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2

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: SAM U28D590
Geometry: 0,0,3840x2160
Refresh Rate: 59.997


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TONGA (DRM 3.2.0 / 4.7.0-1-ARCH, LLVM 3.8.1)
OpenGL version string: 4.1 (Core Profile) Mesa 12.0.1
OpenGL platform interface: EGL
OpenGL shading language version string: 4.10
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.1
GLSL version: 4.10
Mesa version: 12.0.1
Linux kernel version: 4.7
Direct rendering: 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:
---------------
zoom
slidingpopups
kwin4_effect_login
slide
screenshot
magiclamp
kwin4_effect_translucency
flipswitch
kwin4_effect_windowaperture
desktopgrid
kwin4_effect_eyeonscreen
coverswitch
kwin4_effect_fade
kwin4_effect_dialogparent
highlightwindow
blur
contrast
logout
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
blur
contrast

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

slidingpopups:
fadeInTime: 75
fadeOutTime: 125

kwin4_effect_login:

slide:

screenshot:

magiclamp:
animationDuration: 125

kwin4_effect_translucency:

flipswitch:
tabBox: false
tabBoxAlternative: true
duration: 100
angle: 30
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

kwin4_effect_windowaperture:

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

kwin4_effect_eyeonscreen:

coverswitch:
animationDuration: 100
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 900
primaryTabBox: false
secondaryTabBox: false

kwin4_effect_fade:

kwin4_effect_dialogparent:

highlightwindow:

blur:
blurRadius: 12
cacheTexture: true

contrast:

logout:
useBlur: true

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 7 Miroslav Spehar 2016-09-12 21:15:27 UTC
Maybe this can help: 

[m@i5 ~]$ kwin_wayland --xwayland
No backend specified through command line argument, trying auto resolution
kglobalaccel-runtime: Failed to register service org.kde.kglobalaccel
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 Gallium 0.4 on AMD TONGA (DRM 3.2.0 / 4.7.2-1-ARCH, LLVM 3.8.1)
OpenGL version string:                  3.0 Mesa 12.0.2
OpenGL shading language version string: 1.30
Driver:                                 Unknown
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           1.30
Mesa version:                           12.0.2
Linux kernel version:                   4.7.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
glamor: EGL version 1.4 (DRI2):
X-Server started on display :1
Configuring Lock Action
Session path: "/org/freedesktop/login1/session/c2"
This plugin does not support raise()
Couldn't find node arrow-left. Skipping rendering.
Couldn't find node arrow-right. Skipping rendering.
Couldn't find node arrow-up. Skipping rendering.
Couldn't find node arrow-down. Skipping rendering.
org.kde.kwindowsystem.keyserver.x11: X11 implementation of KKeyServer accessed from non-X11 platform! This is an application bug.
Comment 8 João Bóia 2016-09-17 00:57:38 UTC
Still present on 5.7.95
AMD RX460 on amdgpu 1.1.1 + Mesa 12.0.3
Comment 9 B. Ha 2016-10-15 08:52:57 UTC
Same for 5.8.1. AMD RX 470 Mesa 12.0.3
Comment 10 João Bóia 2016-11-02 19:10:19 UTC
Tried wayland again today, and this bug appear to be fixed for me. 

Not exactly sure what fixed it since last time. I think either Mesa 13 or Plasma 5.8.3

Still experiencing graphical corruption when launching a game while it loads for example, but that's probably not Plasma's fault.
Comment 11 Buovjaga 2016-11-02 19:27:56 UTC
João: that's great!

Theodore & pals: can you confirm it is fixed with Plasma 5.8.3 and Mesa 13? This could then be set to worksforme.
Comment 12 Miroslav Spehar 2016-11-02 19:59:08 UTC
Desktop doesn't have distorted graphics anymore.

Didn't try to load any games, so can't comment on that one.
Comment 13 Buovjaga 2016-11-02 20:27:01 UTC
Thanks. Now we have two confirmations, so I will set to WFM.