Bug 416219

Summary: Sometimes window stays visible after closing it
Product: [Plasma] kwin Reporter: Komorebi <markovs.i.mail>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 5.18.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Discover window is shown after closing it

Description Komorebi 2020-01-13 20:07:00 UTC
STEPS TO REPRODUCE
1. Close any window (every window has a little random chance to be affected) 
2. Sometimes it stays visible, but is not applicable, so it doesn't actually exist, but remains painted on the desktop

Suspending kwin removes window's image from the desktop:
qdbus org.kde.KWin /Compositor suspend
qdbus org.kde.KWin /Compositor resume

Operating System: KDE neon 5.17
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
Kernel Version: 5.0.0-37-generic
OS Type: 64-bit
Processors: 4 × Intel® Xeon® CPU E3-1225 V2 @ 3.20GHz
Memory: 23,5 GiB of RAM
Radeon 550 Series (POLARIS12, DRM 3.27.0, 5.0.0-37-generic, LLVM 8.0.0)
4.5 (Compatibility Profile) Mesa 19.0.8
Xsession, rendering backend - OpenGL 3.1 (will try 2.0) 

ADDITIONAL INFORMATION
Close animation - Fade
Comment 1 Komorebi 2020-01-13 20:11:18 UTC
Also never seen this before 5.17.5 upgrade
Comment 2 Nate Graham 2020-01-14 23:27:53 UTC
Never seen this FWIW.
Comment 3 Vlad Zahorodnii 2020-01-15 13:21:04 UTC
Please attach output of `qdbus org.kde.KWin /KWin supportInformation` to this bug report.
Comment 4 Christoph Feck 2020-01-21 22:52:34 UTC
If you can provide the information requested in comment 3, please add it.
Comment 5 Komorebi 2020-02-09 10:25:19 UTC
Hello, 
that never happened to me again, so I'm not able to share more details. 
Maybe it was something related to cache. Anyway, it looks like the issue is gone.
Comment 6 Christoph Feck 2020-02-09 11:11:39 UTC
Thanks for the update; changing status.

If you see this again, please add a comment or reopen the ticket.
Comment 7 Komorebi 2020-05-27 08:16:35 UTC
Created attachment 128834 [details]
Discover window is shown after closing it
Comment 8 Komorebi 2020-05-27 08:18:16 UTC
Hi, 
that happened again. Attaching screenshot and requested information. 


komorebi@komorebi-pc:~$ qdbus org.kde.KWin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. https://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 https://paste.kde.org instead of pasting into support threads.

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

Version
=======
KWin version: 5.18.5
Qt Version: 5.14.2
Qt compile version: 5.14.2
XCB compile version: 1.13

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_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12005000
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.kwin.aurorae
Theme: __aurorae__svg__Breezemite
Plugin recommends border size: No
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 5, 3, 4
decorationButtonsRight: 
borderSize: 3
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

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

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 6
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 0
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: true
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: 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:  no
Number of Screens: 1

Screen 0:
---------
Name: HDMI-A-0
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon 550 Series (POLARIS12, DRM 3.33.0, 5.3.0-53-generic, LLVM 9.0.0)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.8
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50
Driver: RadeonSI
GPU class: Arctic Islands
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 19.2.8
X server version: 1.20.5
Linux kernel version: 5.3
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
mouseclick
slidingpopups
kwin4_effect_login
kwin4_effect_logout
kwin4_effect_sessionquit
kwin4_effect_windowaperture
slide
screenshot
kwin4_effect_translucency
flipswitch
desktopgrid
coverswitch
colorpicker
kwin4_effect_fadingpopups
kwin4_effect_maximize
kwin4_effect_squash
kwin4_effect_fade
kwin4_effect_frozenapp
kwin4_effect_morphingpopups
kwin4_effect_dialogparent
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

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

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

mouseclick:
color1: #8384b4
color2: #fefafe
color3: #bce8f1
lineWidth: 18
ringLife: 500
ringSize: 60
ringCount: 1
showText: true
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
enabled: false

slidingpopups:
slideInDuration: 150
slideOutDuration: 250

kwin4_effect_login:
isActiveFullScreenEffect: false

kwin4_effect_logout:
isActiveFullScreenEffect: false

kwin4_effect_sessionquit:
isActiveFullScreenEffect: false

kwin4_effect_windowaperture:
isActiveFullScreenEffect: false

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

screenshot:

kwin4_effect_translucency:
isActiveFullScreenEffect: false

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

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

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

colorpicker:

kwin4_effect_fadingpopups:
isActiveFullScreenEffect: false

kwin4_effect_maximize:
isActiveFullScreenEffect: false

kwin4_effect_squash:
isActiveFullScreenEffect: false

kwin4_effect_fade:
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
isActiveFullScreenEffect: false

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

highlightwindow:

blur:

contrast:

startupfeedback:
type: 0

screenedge:

kscreen:
Comment 9 Vlad Zahorodnii 2020-05-27 11:05:20 UTC
Can you please post the output of `qdbus org.kde.KWin /KWin supportInformation` when there is a zombie discover window?
Comment 10 Komorebi 2020-05-27 12:31:51 UTC
Yep, already did that.
Comment 11 Vlad Zahorodnii 2020-05-27 12:44:43 UTC
Hmm, okay. This one looks suspicious

> Currently Active Effects:
> -------------------------
> kwin4_effect_squash

Have you tried disabling the squash effect?
Comment 12 Vlad Zahorodnii 2020-05-27 12:44:50 UTC
and also the fade effect
Comment 13 Komorebi 2020-05-27 16:31:25 UTC
The window was still there after disabling fade effect, but disappeared after disabling squash. I was testing it on the fly without restarting kwin.
Comment 14 Vlad Zahorodnii 2020-05-28 06:36:03 UTC
Hmm, this is really strange... The squash effect animates minimized/unminimized windows.

I had followed the instructions in STEPS TO REPRODUCE, but even after so many attempts, I haven't managed to reproduce the bug...
Comment 15 Komorebi 2020-05-28 18:27:41 UTC
Yep, I haven't faced it for 3 months or so. This is a really rare thing.
Comment 16 Nate Graham 2021-08-17 18:17:28 UTC
Also cannot reproduce.
Comment 17 Vlad Zahorodnii 2023-01-19 12:52:52 UTC

*** This bug has been marked as a duplicate of bug 441379 ***
Comment 18 Nate Graham 2023-01-19 14:24:07 UTC

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