Bug 376065 - auto-hide panel flickers
Summary: auto-hide panel flickers
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.9.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-05 16:25 UTC by Gauthier
Modified: 2022-05-29 12:06 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video demonstrating autohide flicker (251.12 KB, video/x-matroska)
2018-05-18 08:29 UTC, Vincent Petry
Details
Video demonstrating autohide flicker with show paint effect (380.51 KB, video/x-matroska)
2018-07-06 07:29 UTC, Vincent Petry
Details
bottom edge flickering (675.35 KB, image/gif)
2022-05-29 11:43 UTC, Gauthier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gauthier 2017-02-05 16:25:29 UTC
Hello,

I have a panel set on auto-hide containing 11 application icons and placed on the top edge of the screen.

Went I open it several times consecutively (well usually even just twice is enough) and then take the cursor of it, then the panel start to flickers and keeps flickering until I go on it again one more time and then things go back to normal. It either flickers partially open or what flickers is just a line.

That doesn't seem to be happening on another auto-hide which I have on a left side edge of the screen. The one I have on the top edge is quite thick (about one and half time thicker as the default bottom one) so maybe that plays a role.

Step to reproduce:
Create a auto-hide panel on top edge, centred and auto-hide. Push the cursor on it to open it, then go away to close it, then quickly go back on it and go away to open it and close it again (may have to do that one more time for the bug to appear)

What happens:
Part of the panel stays out flickering

What should happen:
The panel should fully close itself

Using plasma 5.9 on KDE neon, the bug was also there in 5.8.x.
Comment 1 Gauthier 2017-03-03 15:02:29 UTC
Anyone?

To precise, the bug is present on both my laptops (intel graphics Ivy bridge and Skylake).
Comment 2 Alois Janíček 2017-04-03 10:46:50 UTC
Hello,

It happens to me also.
I have one panel with default set of widgets on left side of screen, set to auto hide. If I somehow interact with it; for example if I press Meta key, which activates menu widget and thus show panel and then if I then either launch some application or press Meta key again to close menu and hide panel, panel starts to flicker.
Flickering looks like there is few pixels (~20px?) flickering around whole length of panel, or just two points where two squares flicker. Those square flickers in place of menu widget and notification area widget, if it's important.
Now panel flickers in rate of typing this message or its flickering corresponds with page scrolling in Chromium browser.
Switching virtual desktop,or just switching windows with Alt-Tab or Ctrl-F10 usually quits flickering, for example.
My system is Arch Linux, plasma 5.9.4, latest version of everything to current date.
Graphics are Intel Ivy Bridge HD4000.
I did not notice this behavior few weeks ago, when I was using Plasma 5.9.x series with 3 auto-hidden panels. Then I have made re-install of my system, tried to use Gnome for a while, and now I have noticed panel's flickering.
Comment 3 Gauthier 2017-04-23 09:29:03 UTC
An update on this.

I update my Neon to hwe stack 16.04 (linux kernel 4.8 + xserver) and problem seem gone on the Skylake config and greatly improve on the Ivy Bridge (can still see a little flickering on the edge on panel when closed but the whole panel stopped flickering)

(packages I installed are: linux-generic-hwe-16.04 and xserver-xorg-hwe-16.04)
Comment 4 John Choate 2017-04-26 00:32:14 UTC
I am seeing this behavior also, and I've noticed it for a few days now.
I am using Plasma 5.8.6-LTS in Mageia 6 Cauldron, Qt 5.6.2. & KDE Frameworks 5.32.0. My graphics driver is nvidia 375.39 on an EVGA GTX780.
I have 3 auto-hide panels:
  Top: System Tray, Icon-only Task Manager, Trash, Pager, and Digital Clock
  Left: Application Menu and 10x Folder View widgets
  Bottom: ~35x application links

It is the top panel which I see flicker the most frequently (though all three do), about 2 pixels worth... the full length of the panel. Also, 2 shorter spots also flicker a few pixels taller, one on each end of the panel... each about 30 pixels wide by about 4 pixels tall.
Comment 5 Gauthier 2017-04-26 20:26:34 UTC
I was seeing exactly the same bug John and was on plasma 5.9.4, framework 5.33 and Qt 5.7.1 and kernel 4.4. Things got better after kernel update (to 4.8) and xserver upgrade.
Comment 6 c3767438 2017-12-21 19:20:35 UTC
Same

Arch Linux 4.13.12-1-ARCH
plasmashell 5.11.4, 
KDE Frameworks 5.41.0
Qt 5.10.0 (built against 5.10.0)
The xcb windowing system
intel graphics Ivy bridge
Comment 7 felipesabrahao 2018-03-25 02:26:24 UTC
Same here in openSUSE.

KDE Plasma: 5.12.2
Qt Version: 5.10
Frameworks Version: 5.43.0
XOrg: Mesa 18.0.0 and xorg-x11-server 1.19.6
Kernel: 4.15.7
Comment 8 Vincent Petry 2018-05-18 08:29:36 UTC
Created attachment 112726 [details]
Video demonstrating autohide flicker

I'm also experiencing the flickering on my setup:
- openSUSE Tumbleweed 20180502
- intel GPU (Haswell-ULT Integrated Graphics Controller) using i915 module 
- plasma5-workspace-5.12.4-4.1.x86_64
- xorg options:
```
Section "Device"
        Identifier      "Intel Graphics"
        Driver          "intel"
        Option          "DRI"  "3"
        Option          "AccelMethod" "sna"
EndSection
```


At some point I had different accelmethod and xorg options but the problem still existed, so likely unrelated.


Please watch the video and see how annoying it is:
1) Sometimes the panel disappears completely, fine
2) Sometimes the panel disappears but leaves a few rows of pixels, and flickers continuously
3) Sometimes the panel disappears but leaves a few rows and flickers only when typing in the console (maybe some redraw thing)


Disabling desktop effects solves the problem as the panel hides without animation.

I suspect that maybe the animation has a rounding error somewhere when calculating the height/position ? Or the auto-hide animation doesn't end properly ?
Comment 9 Vincent Petry 2018-05-25 07:43:33 UTC
Also happens with external monitor from the same laptop as from my previous comment (which is a Dell XPS 13 9333 by the way).

On my other desktop computer with a NVidia GPU the flickering doesn't happen, so it seems it's specific to Intel GPU.



Can everyone confirm whether you have an Intel GPU or are others affected as well ?
Comment 10 Wladimir Mutel 2018-05-30 11:08:00 UTC
I use Kubuntu and Plasma panel set to auto-hide.
All my Linux hardware I run on built-in Intel graphics, with i915 kernel module and xorg-modesetting or xorg-intel video driver.
Like, Asus B85M-G + Core i3-4130T, Asus X302LA + Core i5-5200U, Asus H81M-R + Core i5-4440
And I confirm that I see this effect since long ago, at lest with Intel graphics
The last non-flickering panel I had with Kubuntu 16.04 (Plasma 5.5)

The easiest way to reproduce this behaviour is : open some window with blinking cursor or other animated controls, then pull the mouse down to expose the taskbar, then pull it back up to hide the taskbar again, and you have it - flickering taskbar.

I also noticed that when I switch between two full-screen windows by Alt+Tab, the flickering stops - until the next expose of the taskbar over the window with blinking/animated control.
Comment 11 Vincent Petry 2018-07-06 07:29:47 UTC
Created attachment 113792 [details]
Video demonstrating autohide flicker with show paint effect

While looking for a way to disable the autohide animation, I found the "show paint" effect.

I've attached another video where you can see the repainted zones with that effect. I hope it can be useful.

Is there a way to disable the autohide animation by commenting out code ? I'd be willing to try that. (still need to find out where the code for this is located)
Comment 12 felipesabrahao 2019-06-07 17:10:53 UTC
Any news on this bug?
It still remains on my openSUSE Leap.

Plasmashell 5.12
Qt 5.9
Frameworks Version: 5.43.0
XOrg: Mesa 18.1.7 and xorg-x11-server 1.19.6
Kernel: 4.14
Comment 13 felipesabrahao 2019-06-07 22:40:43 UTC
Current problem manifestation:

Reproducibility:
(Always) When choosing OpenGL 2.0 or 3.1 as compositor under animation speed 1 or 2. In fact, the faster you set the animation speed the worse the problem.


Workaround:
On OpenGL 2.0 or 3.1, set the animation speed 3 or higher fix completely the problem.
If one chooses Xrender as the compositer, the problem is completely solved under any animation speed.
Comment 14 Alex 2021-01-28 16:21:27 UTC
Does this bug still exist? I can't reproduce it, and I'm on AMD graphics in a Wayland session on Plasma 5.21 Beta.

If its exclusive to Intel graphics, this sounds like a driver bug, in which case, we should probably report it upstream.
Comment 15 Chris 2021-07-24 16:30:15 UTC
I am experiencing the bug.
Linux is Debian/unstable.
Plasma is 5.21. Plasma, Framework and Gear are from experimental.
"Compositor" is wayland.
gpu is integrated-intel, on a 3rd gen i5.
Small auto-hide panel in the upper left corner. When It's flickering it really makes me sick in the stomach.
Clicking on the panel several time, or moving away the windows that are close to it, might or might not fix it.
Fixing things by magic dances is not very satisfactory.
Comment 16 Gauthier 2022-05-29 11:43:25 UTC
Created attachment 149311 [details]
bottom edge flickering

Noticing a light flickering at the bottom edge of the panel during the hide/unhide animation. See the attached GIF. I believe this is the flickering issues reported here: https://youtu.be/lm0LIy0yv5Y?t=107

I tried on both X11 and wayland with same result.

Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.13.0-44-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 17 Gauthier 2022-05-29 12:06:42 UTC
Mesa 21.2.6