Window minimize animation flickers and appears in the wrong place

Bug #1969140 reported by Cristiano
124
This bug affects 22 people
Affects Status Importance Assigned to Milestone
Dash to dock
New
Unknown
Mutter
New
Unknown
mutter (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Graphical glitches appears while minimizing or maximizing apps in x11 session randomly, screencast below

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.0-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
Date: Thu Apr 14 17:07:49 2022
DisplayManager: gdm3
GsettingsChanges:

InstallationDate: Installed on 2022-04-12 (2 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Daily amd64 (20220409)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 42.0-3ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Cristiano (donncrs) wrote :
Revision history for this message
Daniel Smith (ask-daniel-smith) wrote :

I reported this as well, however, they think that it is issue with my device. https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1967471

Revision history for this message
Cristiano (donncrs) wrote :

As mentioned by @vanvugt in https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1967471, i attached lscpi and journal

description: updated
Revision history for this message
Cristiano (donncrs) wrote :
Revision history for this message
Cristiano (donncrs) wrote :
description: updated
summary: - graphic glitches when minimizing and maximizing apps
+ Graphical glitches when minimizing and maximizing apps
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Graphical glitches when minimizing and maximizing apps

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
summary: - Graphical glitches when minimizing and maximizing apps
+ Window minimize animation flickers and appears in the wrong place
Revision history for this message
Anas Bushnaq (doughbag) wrote :

Changing the refresh rate on my display seems to have fixed this issue for me.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

What refresh rates fail/work?

Revision history for this message
Cristiano (donncrs) wrote :

in my case glitches appear with any refresh rate

Revision history for this message
Cristiano (donncrs) wrote (last edit ):

I may have found the cause of the problem. if you look, the second animation is actually the animation that gnome shell runs when you minimize windows. gnome shell minimize application to the "activities" button while dash to dock tend to override to bottom, left or right depending on where you put the dock

we need to disable the gnome shell animation and I emphasize that this glitch does not occur in wayland session

summary: - Window minimize animation flickers and appears in the wrong place
+ Window minimize animation flickers and appears in the wrong place in
+ Xorg sessions
Revision history for this message
Eugene (sakralbar) wrote : Re: Window minimize animation flickers and appears in the wrong place in Xorg sessions

In my case, the animation problem was in both the xorg session and the wayland session.
Ubuntu 22.04
AMD rx-460 card.

Here is a screen recording showing the problem https://disk.yandex.ru/i/GdSWT1-LO2i7kA
The monitor runs at 60Hz, the video frame rate is also 60.

Installing the kernel 5.17.5-051705-generic solves the problem in case of use wayland session. With xorg problem still exist for me.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please try disabling the 'Desktop Icons NG' extension, in case it's related to bug 1966659.

Revision history for this message
Eugene (sakralbar) wrote (last edit ):

With the extension disabled, there are no problems on both kernels (5.15.0-27-generic and 5.17.5-051705-generic) in the case of the wayland session.

After enabling and updating (I'm not sure if the extension has been updated, but I tried updating it on the page extensions.gnome.org) the extension, the problem disappeared also on the 5.15.0-27-generic kernel.

Revision history for this message
Cristiano (donncrs) wrote (last edit ):

disabling the extension seems to solved the problem only when using only one window

if i open brave browser and then nautilus, if i minimize nautilus the glitch appears once again

Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Revision history for this message
Patryk Skorupa (skoruppa) wrote :

Can confirm the issue on my PC. Ubuntu 22.04, Intel + Nvidia, Xorg.

I can reproduce it with and without ding extension enabled

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like we need to keep bug 1966659 separate then.

Revision history for this message
Chengyuan Ma (chengyuanma) wrote :

Can confirm on my laptop too. Ubuntu 22.04, AMD + Nvidia, 165Hz, Xorg, DING disabled, kernel 5.15.0-39-generic. This is a cosmetic issue but it's really annoying when seeing it in action.

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Revision history for this message
Coeur Noir (coeur-noir) wrote :

Hi,

I can see "flickering" animation too :
https://i.ibb.co/7WytBXj/anim-minimize-glitch.gif

This is on Ubuntu 22.04, with :

  *-display
       description: VGA compatible controller
       produit: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
       fabricant: Intel Corporation
       identifiant matériel: 2
       information bus: pci@0000:00:02.0
       nom logique: /dev/fb0
       version: 06
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: msi pm vga_controller bus_master cap_list rom fb
       configuration : depth=32 driver=i915 latency=0 resolution=1920,1080
       ressources : irq:32 mémoire:f7800000-f7bfffff mémoire:e0000000-efffffff portE/S:f000(taille=64) mémoire:c0000-dffff

This happens ONLY on Xorg.

This happens both while DiNG extension ENABLED or DISABLED.

This happens whatever gnome-shell extensions are ENABLED or DISABLED.

Revision history for this message
Coeur Noir (coeur-noir) wrote :

For reference : https://forum.ubuntu-fr.org/viewtopic.php?id=2072646

Don't know if it helps, the only option regarding i965 intel driver to have an influence (among the 3 tested there) on the animation of the Nautilus window is "TearFree".

But the problem it introduces (tearing in Firefox) is far more annoying than the problem it solves (the jolting window minimizing animation).

It seems to happen mostly with Nautilus window.

Revision history for this message
James Rennie (jamesdrennie) wrote :

My findings so far, system configuration attached:

- Occurs with any number of windows open.
- The minimise animation seems more broken than the restore animation.
- DING enabled/disabled does not affect the animation behaviour.
- I agree with the findings of comment #10, as the minimise animation shows multiple flickering frames where a thumbnail of the minimising window can be seen shrinking and moving to the top right hand corner of the screen. The expected minimising animation, where the window shrinks down into the dock icon (set to the bottom of the screen on my machine) still occurs while this is happening.
- The restore animation sometimes (but not always) displays a frame where the errant window thumbnail can be seen above and to the left of the window position, presumably the reverse of the errant 'shrink to top left' minimise animation, but for some reason with less visible errant frames and occurs less consistently.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Allard Pruim (allardp) wrote :

I'm having the same problem with the minimize animation. On my computer I recently switched from a Nvidia to a AMD GPU since then I have this problem. Glad I'm not alone.

However my laptop with a AMD GPU runs just fine.

Revision history for this message
tom (gcvl) wrote (last edit ):

After using GNOME 43 Xorg with Debian Bookworm 5.19, I rebooted into Ubuntu 22.04 Xorg 5.15, did some checks and found out that on my Ryzen laptop this was caused by the amd_pstate scaling driver which lowers the minimum CPU frequency down to 400 Mhz instead of the 1400 Mhz default on the acpi_cpufreq which Debian uses.

Debian (acpi_cpufreq) behaved perfectly on both Xorg and Wayland, so I enabled the amd_pstate scaling driver and this issue came up the exact same way as in Ubuntu: it seems that scaling down to a much lower cpu frequency and then back up all the times can cause some performance penalties and glitches.
To me it's fine because in the Xorg session I disabled the animations and the battery life is noticeably better with the amd_pstate scaling driver, but as usual ymmv!

Changed in mutter:
status: Unknown → New
no longer affects: nautilus (Ubuntu)
no longer affects: gnome-shell-extension-ubuntu-dock (Ubuntu)
Changed in dash-to-dock:
status: Unknown → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It looks like this affects both Xorg sessions, and Xwayland apps in Wayland sessions?

summary: - Window minimize animation flickers and appears in the wrong place in
- Xorg sessions
+ Window minimize animation flickers and appears in the wrong place
tags: added: mantic
Revision history for this message
Michael Leetz (michael-leetz) wrote :

Unfortunately the bug is still present in Ubuntu 24.04 beta. Could it be solved, before the final version is released?

Revision history for this message
Michael Leetz (michael-leetz) wrote :

The bug is still present in Ubuntu 24.04 final release.

tags: added: noble
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.