Bug 429834 - Panel and windows flickering
Summary: Panel and windows flickering
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 429825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-30 00:04 UTC by Germano Massullo
Modified: 2022-10-09 08:54 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kwin gdb (39.01 KB, text/plain)
2020-11-30 00:04 UTC, Germano Massullo
Details
xsession-errors (68.15 KB, text/plain)
2020-11-30 00:04 UTC, Germano Massullo
Details
KWin supportInformation (6.42 KB, text/plain)
2022-10-09 08:40 UTC, arief r
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2020-11-30 00:04:17 UTC
Created attachment 133742 [details]
kwin gdb

Panel started to massively flickering and then also some windows started to have some kind of flickering. It's the first time I see this problem, and I don't think I will be able to easily reproduce it again. A user on IRC helped suggested me to gammaray->plasmashell process->quick scenes->(PanelView) scene graph: the panel got black and only a few application blinked, like konversation, gammaray, firefox (later konversation ceased to blink). He said that this proves is a KWin problem.
I logged with SSH into my machine and got a GDB trace against the running kwin_x11 process (see attachment)


$ qdbus org.kde.KWin /KWin supportInformation 

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

Version
=======
KWin version: 5.20.3
Qt Version: 5.15.1
Qt compile version: 5.15.1
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_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: 14
font: Droid Sans [1ASC],11,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

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

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: 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: DisplayPort-2
Geometry: 0,0,3840x2160
Scale: 1
Refresh Rate: 59.996


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.39.0, 5.9.8-200.fc33.x86_64, LLVM 11.0.0)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.2.2
OpenGL platform interface: GLX
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.2
Linux kernel version: 5.9.8
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:
---------------
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-11-30 00:04:38 UTC
Created attachment 133743 [details]
xsession-errors
Comment 2 Nate Graham 2020-12-01 17:12:16 UTC
*** Bug 429825 has been marked as a duplicate of this bug. ***
Comment 3 Germano Massullo 2021-06-03 14:31:54 UTC
I have to
$ kwin_x11 --replace &
many times cause I often experience this problem. Is there any other information I can provide to help debugging?
Comment 4 Vlad Zahorodnii 2021-06-07 06:54:47 UTC
It will be very helpful if somebody else is able to reproduce the issue. Have you found a reliable way to trigger flickering?
Comment 5 Germano Massullo 2021-06-09 18:13:52 UTC
(In reply to Vlad Zahorodnii from comment #4)
> It will be very helpful if somebody else is able to reproduce the issue.
> Have you found a reliable way to trigger flickering?

I right now have a Firefox windows that is "stuck" and the only way to get it to normal is to restart kwin.
Before doing that I would like to retrieve some useful infos, could you please help me?
Comment 6 Vlad Zahorodnii 2021-06-10 08:14:36 UTC
(In reply to Germano Massullo from comment #5)
> (In reply to Vlad Zahorodnii from comment #4)
> > It will be very helpful if somebody else is able to reproduce the issue.
> > Have you found a reliable way to trigger flickering?
> 
> I right now have a Firefox windows that is "stuck" and the only way to get
> it to normal is to restart kwin.
> Before doing that I would like to retrieve some useful infos, could you
> please help me?

Hmm, that sounds like https://bugzilla.mozilla.org/show_bug.cgi?id=1714199
Comment 7 Germano Massullo 2021-06-13 22:31:18 UTC
(In reply to Vlad Zahorodnii from comment #6)
> (In reply to Germano Massullo from comment #5)
> > (In reply to Vlad Zahorodnii from comment #4)
> > > It will be very helpful if somebody else is able to reproduce the issue.
> > > Have you found a reliable way to trigger flickering?
> > 
> > I right now have a Firefox windows that is "stuck" and the only way to get
> > it to normal is to restart kwin.
> > Before doing that I would like to retrieve some useful infos, could you
> > please help me?
> 
> Hmm, that sounds like https://bugzilla.mozilla.org/show_bug.cgi?id=1714199


No it's a different problem https://bugzilla.mozilla.org/show_bug.cgi?id=1714199#c15
Comment 8 Ryan 2021-08-13 23:54:57 UTC
Debian Bullseye user here.  Just installed elisa for the first time with

sudo apt install elisa --install recommends

and upon first run it is constantly flickering.

Not a KDE/plasma user, I just use OpenBox.
Comment 9 Ryan 2021-08-13 23:56:17 UTC
sorry for that last comment, I thought I was looking at elisa bugzilla
Comment 10 David Edmundson 2021-08-20 22:03:16 UTC
Is it on Nvidia and always after suspend and resume?
Comment 11 Germano Massullo 2021-08-25 12:18:35 UTC
(In reply to David Edmundson from comment #10)
> Is it on Nvidia and always after suspend and resume?

Hello, who is this message for?
Comment 12 Bug Janitor Service 2021-09-09 04:36:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2021-09-24 04:35:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 14 Germano Massullo 2022-09-28 10:21:28 UTC
Almost everyday I have to 
$ kwin --replace &
can we resume this bugreport?
Thank you
Comment 15 Vlad Zahorodnii 2022-09-28 10:25:26 UTC
(In reply to Germano Massullo from comment #14)
> Almost everyday I have to 
> $ kwin --replace &
> can we resume this bugreport?

It's already reopened.
Comment 16 arief r 2022-10-09 08:40:08 UTC
Created attachment 152656 [details]
KWin supportInformation
Comment 17 arief r 2022-10-09 08:54:35 UTC
(In reply to David Edmundson from comment #10)
> Is it on Nvidia and always after suspend and resume?

I experience this bug on Plasma 5.25.5 on Wayland (info attached).
Using Prime offload, with Amd Vega as default sink and Nvidia 515.76, with relatively fresh install of archlinux.

The flicker occurs after resume from sleep, spesificly after half hour sleep, short sleep does not seems to be affected.
It affects both panels I have (1 on top, 1 window can cover).
The flicker is not so fast but also not slow, i guest it is between 10 to 25fps.

The flicker stop when mouse cursor enter the panel area.