Bug 428387

Summary: gwenview transparent view
Product: [Applications] gwenview Reporter: Germano Massullo <germano.massullo>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: abcdjdj, bugseforuns, justin.zobel, kde, nate
Priority: NOR Keywords: wayland
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: env WAYLAND_DEBUG=1 gwenview
screenshot

Description Germano Massullo 2020-10-28 12:43:03 UTC
Plasma-wayland session: when you open an image in Gwenview, it is transparent, that means that you just see other windows that are behind Gwenview.
gwenview-20.08.2-1.fc33.x86_64

qdbus org.kde.KWin /KWin supportInformation

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

Version
=======
KWin version: 5.20.1
Qt Version: 5.15.1
Qt compile version: 5.15.1
XCB compile version: 1.13.1

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: Fedora Project
Vendor Release: 12009000
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: 
Plugin recommends border size: None
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 12
font: Droid Sans [1ASC],11,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 12

Platform
==========
Name: DRM
Active: true
Atomic Mode Setting: true
Using EGL Streams: false

Options
=======
focusPolicy: 0
xwaylandCrashPolicy: 
xwaylandMaxCrashCount: 3
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
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
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
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2
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:  yes
Number of Screens: 1

Screen 0:
---------
Name: DP-3
Geometry: 0,0,3072x1728
Scale: 1.25
Refresh Rate: 59.997


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.38.0, 5.8.16-300.fc33.x86_64, LLVM 11.0.0)
OpenGL version string: 4.6 (Core Profile) Mesa 20.2.1
OpenGL platform interface: EGL
OpenGL shading language version string: 4.60
Driver: RadeonSI
GPU class: Arctic Islands
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 20.2.1
Linux kernel version: 5.8.16
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:
---------------
kwin4_effect_sessionquit
screenshot
desktopgrid
kwin4_effect_translucency
colorpicker
kwin4_effect_fullscreen
kwin4_effect_frozenapp
presentwindows
kwin4_effect_dialogparent
highlightwindow
blur
contrast
startupfeedback
kscreen

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

Effect Settings:
----------------
kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false

screenshot:

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

kwin4_effect_translucency:
pluginId: kwin4_effect_translucency
isActiveFullScreenEffect: false

colorpicker:

kwin4_effect_fullscreen:
pluginId: kwin4_effect_fullscreen
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false

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

kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

kscreen:
Comment 1 Germano Massullo 2020-10-28 13:29:03 UTC
I have noticed that the same problem happens also with obs-studio-26.0.2-2.fc33.x86_64
Comment 2 Vlad Zahorodnii 2020-10-28 19:15:57 UTC
Can you run Gwenview from the terminal as follows

    env WAYLAND_DEBUG=1 gwenview > log.txt 2>&1

and post the resulting output here? Make sure that the log output doesn't contain any sensitive data.
Comment 3 Patrick Silva 2020-10-28 23:40:08 UTC
opengl rendering does not work on Wayland, see bug 403323
Comment 4 Justin Zobel 2020-10-29 00:01:54 UTC
I can't confirm this issue on KDE Neon User Edition with a jpg or png file.

Also checked compositor and it says I'm on OpenGL 2.0.
Comment 5 Germano Massullo 2020-10-29 00:28:36 UTC
Created attachment 132849 [details]
env WAYLAND_DEBUG=1 gwenview

(In reply to Vlad Zahorodnii from comment #2)
> Can you run Gwenview from the terminal as follows
> 
>     env WAYLAND_DEBUG=1 gwenview > log.txt 2>&1
> 
> and post the resulting output here? Make sure that the log output doesn't
> contain any sensitive data.
Comment 6 Nate Graham 2020-10-29 19:09:48 UTC
Are you using Kvantum or a 3rd-party widget theme?
Comment 7 Germano Massullo 2020-10-29 19:53:58 UTC
(In reply to Nate Graham from comment #6)
> Are you using Kvantum or a 3rd-party widget theme?

I don't know what they are, but if you tell me how I can verify, I will check
Comment 8 Nate Graham 2020-10-29 20:14:31 UTC
If you don't know, you're probably not. :)
Comment 9 David Edmundson 2020-10-29 23:01:30 UTC
Can't reproduce. Can you take a screenshot / photo.

Does it happen with all images
Comment 10 Germano Massullo 2020-10-29 23:45:43 UTC
Created attachment 132878 [details]
screenshot

instead of showing the photo, it shows Libreoffice and my desktop wallpaper that are behind the Gwenview window
Comment 11 Germano Massullo 2020-10-29 23:45:57 UTC
(In reply to David Edmundson from comment #9)
> Can't reproduce. Can you take a screenshot / photo.
> 
> Does it happen with all images

yes
Comment 12 Justin Zobel 2020-10-30 00:02:14 UTC
(In reply to Germano Massullo from comment #1)
> I have noticed that the same problem happens also with
> obs-studio-26.0.2-2.fc33.x86_64

I'd suggest reporting a separate issue for this as I can confirm the transparency issue with OBS Studio on KDE Neon User Edition but not the Gwenview one.
Comment 13 David Edmundson 2020-10-30 09:53:33 UTC
Moving to gwenview until something suggests kwin is at fault.

> I can confirm the transparency issue with OBS Studio

FWIW, I fixed that in OBS.

It was caused by the client creating a window from a widget. 

This is almost certainly the case here:

[1295222,105]  -> wl_subcompositor@15.get_subsurface(new id wl_subsurface@50, wl_surface@47, wl_surface@36)

it's randomly creating a new subsurface, which means it's creating a sub QWindow.
Comment 14 David Edmundson 2020-10-30 10:06:31 UTC
Aha, the subsurface is actually deliberate

This bug appears when using "animations" == "opengl" in the settings.
Comment 15 Germano Massullo 2020-10-30 10:23:19 UTC
(In reply to David Edmundson from comment #13)
> Moving to gwenview until something suggests kwin is at fault.
> 
> > I can confirm the transparency issue with OBS Studio
> 
> FWIW, I fixed that in OBS.
> 
> It was caused by the client creating a window from a widget. 
> 
> This is almost certainly the case here:
> 
> [1295222,105]  -> wl_subcompositor@15.get_subsurface(new id
> wl_subsurface@50, wl_surface@47, wl_surface@36)
> 
> it's randomly creating a new subsurface, which means it's creating a sub
> QWindow.

Ok so I can avoid filling a bugreport in OBS Studio right?
Comment 16 Madhav Kanbur 2021-02-11 18:11:17 UTC

*** This bug has been marked as a duplicate of bug 403323 ***