Bug 405123

Summary: Empty windows after restoring the session
Product: [Plasma] kwin Reporter: misha <mikivo>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde
Priority: NOR    
Version First Reported In: 5.14.5   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Not rendering windows

Description misha 2019-03-05 22:21:04 UTC
SUMMARY
The windows contents are blank (only headers are visible) when after restarting the session I use alt-tab or "All windows" effect on restored windows.
After I open the restored windows, the problem disappears.

STEPS TO REPRODUCE
1. Open multiple windows.
2. Restart Plasma.
3. Use alt-tab or "All windows"

OBSERVED RESULT
When using alt-tab or "All windows", the restored windows are empty.

EXPECTED RESULT
Anything except for the void. It is impossible to alt-tab empty windows.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Buster 4.19.0-2
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION
The bug isn't critical but such behavior seems a bit inconvenient for alt-tab and All windows users
Comment 1 Vlad Zahorodnii 2019-03-06 10:19:18 UTC
What exactly is the "All windows" effect?
Comment 2 misha 2019-03-06 10:32:15 UTC
(In reply to Vlad Zagorodniy from comment #1)
> What exactly is the "All windows" effect?

Sorry for the misunderstanding. I switched to English. The correct desktop effect name is "Present windows". It's not the problem of the effect because the same issue is present when I use task switching with alt+tab.
Comment 3 Martin Flöser 2019-03-06 16:16:25 UTC
Could it be that the windows are shaded?
Comment 4 misha 2019-03-06 16:27:12 UTC
(In reply to Martin Flöser from comment #3)
> Could it be that the windows are shaded?

No, they are not rendered at all.
It is impossible to take a screenshot while "Present windows" is active, so I took two photos (I will attach it here).
Comment 5 misha 2019-03-06 16:27:22 UTC
Created attachment 118598 [details]
Not rendering windows

I powered up Plasma and activated "Present windows", all the windows are blank.
Comment 6 misha 2019-03-06 16:29:42 UTC
(In reply to Martin Flöser from comment #3)
> Could it be that the windows are shaded?

Sorry, I didn't understand how the attachment works. There is a photo which when I powered up Plasma and activates "Present windows".
Comment 7 Vlad Zahorodnii 2019-03-14 08:29:39 UTC
could you please post output of `qdbus org.kde.KWin /KWin supportInformation`?
Comment 9 Vlad Zahorodnii 2019-03-18 09:52:13 UTC
Информационная поддержка KWin:
Следующая информация должна быть предоставлена при запросе поддержки,например, на http://forum.kde.org.
Она предоставляет сведения о текущем запущенном экземпляре программы, о том, какие опции используются,
какой OpenGL драйвер и эффекты запущены.
Пожалуйста, размещайте информацию, приведенную ниже , в сервис Pastebin,
например, на http://paste.kde.org вместо вставки напрямую в темы форума .

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

Version
=======
KWin version: 5.14.5
Qt Version: 5.11.3
Qt compile version: 5.11.3
XCB compile version: 1.13.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: 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: 12003000
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: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 16
font: Noto Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 4
largeSpacing: 16

Platform
==========
Name: KWin::X11StandalonePlatform

Options
=======
focusPolicy: 1
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: true
autoRaiseInterval: 750
delayFocusInterval: 300
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 2
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: true
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 1
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: eDP-1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60.0079


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) 
OpenGL version string: 4.5 (Core Profile) Mesa 18.3.4
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50
Driver: Intel
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 18.3.4
X server version: 1.20.3
Linux kernel version: 4.19
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
kwin4_effect_translucency
mousemark
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_logout
kwin4_effect_fade
kwin4_effect_frozenapp
kwin4_effect_login
kwin4_effect_dialogparent
kwin4_effect_windowaperture
slidingpopups
slide
screenshot
minimizeanimation
flipswitch
desktopgrid
cube
coverswitch
colorpicker
presentwindows
highlightwindow
blur
contrast
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

kwin4_effect_translucency:

mousemark:
width: 5
color: #8080ff

kwin4_effect_morphingpopups:

kwin4_effect_maximize:

kwin4_effect_logout:

kwin4_effect_fade:

kwin4_effect_frozenapp:

kwin4_effect_login:

kwin4_effect_dialogparent:

kwin4_effect_windowaperture:

slidingpopups:
slideInDuration: 150
slideOutDuration: 250

slide:
duration: 500
horizontalGap: 45
verticalGap: 20
slideDocks: false
slideBackground: true

screenshot:

minimizeanimation:

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

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

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

coverswitch:
animationDuration: 200
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: false
zPosition: 807
primaryTabBox: false
secondaryTabBox: false

colorpicker:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: true
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 5
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 3

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 10 Patrick Silva 2019-04-26 18:31:28 UTC
I see the same problem on my system.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Comment 11 David Edmundson 2023-05-11 08:38:20 UTC
Kwin can't render a window until the window renders, the window won't render until the first expose event which doesn't happen for mulitple desktops.

This is not an issue on wayland. Marking as fixed by wayland.