Bug 394873 - OSD flicker when overlapping window edge
Summary: OSD flicker when overlapping window edge
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.12.5
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-30 20:23 UTC by Krešimir Čohar
Modified: 2018-06-28 11:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A preview of both (328.63 KB, video/mp4)
2018-05-30 20:23 UTC, Krešimir Čohar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krešimir Čohar 2018-05-30 20:23:40 UTC
Created attachment 112967 [details]
A preview of both

The Plasma OSD popup that shows up when changing the volume or to an external display (Super+P) starts to flicker most of the time when fading out if it's overlapping a window partially (not when it does so entirely), or if it overlies multiple windows.
Comment 1 Filip Fila 2018-05-30 20:31:35 UTC
I can reproduce this bug quite often, although for me it can also happen while the OSD is dead centered in front of a window so not just when there is overlapping.

KDE Plasma Version: 5.12.5
KWin Version: 5.12.5
KDE Frameworks version: 5.46.0
Qt Version: 5.10.1
OS: Manjaro
GPU Driver: intel
Comment 2 Krešimir Čohar 2018-05-30 20:41:44 UTC
(In reply to Rooty from comment #0)
> Created attachment 112967 [details]
> A preview of both
> 
> The Plasma OSD popup that shows up when changing the volume or to an
> external display (Super+P) starts to flicker most of the time when fading
> out if it's overlapping a window partially (not when it does so entirely),
> or if it overlies multiple windows.

oh yeah sorry guys i forgot to mention

KDE Plasma Version: 5.12.5
KWin Version: 5.12.5
KDE Frameworks version: 5.46.0
Qt Version: 5.11.0
OS: Manjaro
GPU Driver: nouveau
Comment 3 Filip Fila 2018-05-30 20:47:15 UTC
Here is the proof I can offer for the flickering even when there is no window overlapping:

https://youtu.be/-Scsx3hg0zI

Sorry for the mobile phone recording - whichever screen recording program and presets I use, the windows flicker crazily in the recording (but not when actually shooting the video).
Comment 4 Martin Flöser 2018-05-31 06:50:12 UTC
Please provide the output of qdbus org.kde.KWin /KWin supportInformation
Comment 5 Krešimir Čohar 2018-05-31 07:29:50 UTC
(In reply to Martin Flöser from comment #4)
> Please provide the output of qdbus org.kde.KWin /KWin supportInformation

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.12.5
Qt Version: 5.11.0
Qt compile version: 5.11.0
XCB compile version: 1.13

Operation Mode: X11 only

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: 11906000
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, 9
decorationButtonsRight: 3, 4, 5
borderSize: 0
gridUnit: 10
font: Cabin,10,-1,5,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: 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
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
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-1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: NVD9
OpenGL version string: 3.0 Mesa 18.0.4
OpenGL platform interface: GLX
OpenGL shading language version string: 1.30
Driver: Nouveau
GPU class: Unknown
OpenGL version: 3.0
GLSL version: 1.30
Mesa version: 18.0.4
X server version: 1.19.6
Linux kernel version: 4.16.12
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_frozenapp
kwin4_effect_morphingpopups
kwin4_effect_fade
kwin4_effect_scalein
kwin4_effect_maximize
kwin4_effect_logout
kwin4_effect_login
kwin4_effect_windowaperture
kwin4_effect_dialogparent
slidingpopups
slide
screenshot
minimizeanimation
desktopgrid
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_frozenapp:

kwin4_effect_morphingpopups:

kwin4_effect_fade:

kwin4_effect_scalein:

kwin4_effect_maximize:

kwin4_effect_logout:

kwin4_effect_login:

kwin4_effect_windowaperture:

kwin4_effect_dialogparent:

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

slide:

screenshot:

minimizeanimation:

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

colorpicker:

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:
blurRadius: 12
cacheTexture: true

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:


hope it helps
Comment 6 Krešimir Čohar 2018-05-31 07:34:16 UTC
(In reply to Martin Flöser from comment #4)
> Please provide the output of qdbus org.kde.KWin /KWin supportInformation

my apologies i didn't see the paste.kde.org part :D
Comment 7 Filip Fila 2018-05-31 08:32:54 UTC
(In reply to Martin Flöser from comment #4)
> Please provide the output of qdbus org.kde.KWin /KWin supportInformation

Here is my output: https://paste.kde.org/pvscjwa02
Comment 8 Martin Flöser 2018-05-31 11:06:28 UTC
In both cases the detection of vsync seems to not work, which I think is the main issue here. For the nouveau user I suggest to switch to the proprietary Nvidia driver. It's still better.
Comment 9 Krešimir Čohar 2018-05-31 13:02:43 UTC
(In reply to Martin Flöser from comment #8)
> In both cases the detection of vsync seems to not work, which I think is the
> main issue here. For the nouveau user I suggest to switch to the proprietary
> Nvidia driver. It's still better.

https://paste.kde.org/pi2t5akai here's the output with the proprietary nvidia drivers on, no change, flicker's still present

i also have this issue on an old lenovo computer with the radeon driver
Comment 10 Krešimir Čohar 2018-05-31 13:25:47 UTC
(In reply to Martin Flöser from comment #8)
> In both cases the detection of vsync seems to not work, which I think is the
> main issue here. For the nouveau user I suggest to switch to the proprietary
> Nvidia driver. It's still better.

by the way i don't know if it helps but i had sync to vblank and force full composition pipeline turned on in the nvidia settings
Comment 11 Filip Fila 2018-06-28 11:30:23 UTC
I have not observed this since switching to 5.13. Maybe it was a bug with the old blur effect, who knows.
Comment 12 Krešimir Čohar 2018-06-28 11:34:01 UTC
me neither, i think it's gone, i'm gonna mark this as resolved