Alt+Tab produces visual artefacts when a modal dialog is open [with mismatched mutter packages installed]

Bug #1822857 reported by Amr Ibrahim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Steps to reproduce:

0. Change the default Alt+Tab to switch windows
1. Have some windows open to switch between them
2. Start Thunderbird
3. Go to Account Settings, which is a child window for account settings (or any child window of another app)
4. Press Alt+Tab to switch windows

Going through Alt+Tab produces visual artefacts. See the attached screencast.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-shell 3.28.3+git20190124-0ubuntu18.04.1
ProcVersionSignature: Ubuntu 4.18.0-16.17~18.04.1-generic 4.18.20
Uname: Linux 4.18.0-16-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 2 18:35:42 2019
DisplayManager: gdm3
InstallationDate: Installed on 2018-11-29 (123 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :
tags: added: regression-proposed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. I am also using

  gnome-shell 3.28.3+git20190124-0ubuntu18.04.1
  mutter 3.28.3+git20190124-0ubuntu18.04.1

but cannot reproduce this bug. In particular I can't see any option to "0. Change the default Alt+Tab to switch windows".

Please:

 1. Detail how to "0. Change the default Alt+Tab to switch windows".

 2. Try uninstalling all your extensions and tell us if the bug still happens:

 "b'org.gnome.shell' b'enabled-extensions' b"['<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>']"

summary: - Alt+Tab produces visual artefacts when a child window is open
+ Alt+Tab produces visual artefacts when a modal dialog is open
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote : Re: Alt+Tab produces visual artefacts when a modal dialog is open

To change Alt+Tab behaviour:

1. Open Settings → Devices → Keyboard → Keyboard Shortcuts
2. Scroll down to Navigation, you will find the default for "Switch applications" is Alt+Tab
3. Change "Switch applications" to Super+Tab
4. Change "Switching windows" to Alt+Tab

I can still reproduce the bug after disabling all extensions.

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. I still can't reproduce the problem using that alternate switcher.

Can you please try uninstalling all extensions and then rebooting? Just disabling them doesn't completely remove them from gnome-shell's code paths unfortunately.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please also run:

  dpkg -l > allpackages.txt

and send us the file 'allpackages.txt'.

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

Oh, are you using multiple monitors at all? If so then it would be the same problem as was fixed in https://gitlab.gnome.org/GNOME/mutter/merge_requests/511

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I purged all extensions, restarted and I can still reproduce the bug.

No, I don't use multi-monitors.

Remember that you have to start Alt+Tabbing from the modal dialogue, if you start switching from a normal window, you will not reproduce the bug.

The file is attached.

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks.

Please try these separately (and reboot after each one) in /etc/environment:

  CLUTTER_PAINT=disable-culling

or

  CLUTTER_PAINT=disable-offscreen-redirect

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

CLUTTER_PAINT=disable-culling: no change, bug is reproducible

CLUTTER_PAINT=disable-offscreen-redirect: no change, bug is reproducible

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you try if that's an issue in disco for you? what videocard/driver do you use?

Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I'm using Intel UHD Graphics 620 (Kabylake GT2).

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Here is another severe screencast on Bionic, other windows appear momentarily behind the modal dialogue while switching.
Note that you have to start switching from the modal dialogue to trigger the bug, and Alt+Tab has to be configured to switch windows not applications. I believe the default beyond Bionic is for Alt+Tab to switch windows.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Hum, is that issue specific to the updates in proposed? If so it's likely a duplicate of the issue discussed on the SRU bug #1811900

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I cannot reproduce this bug in an up-to-date Disco.

OK, I think I discovered something, when I updated mutter in bionic-proposed, it didn't pull the updated version of libmutter-2-0 and gir1.2-mutter-2. So I had a mix of:
mutter 3.28.3+git20190124-0ubuntu18.04.1
mutter-common 3.28.3+git20190124-0ubuntu18.04.1
gir1.2-mutter-2 3.28.3-2~ubuntu18.04.2
libmutter-2-0 3.28.3-2~ubuntu18.04.2

Now I cannot reproduce this bug after I manually installed libmutter-2-0 and gir1.2-mutter-2 from bionic-proposed.

So I think the problem is mixing old and new versions of mutter packages. This bug could be closed unless there is a need not to.

Thanks everyone.

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

That's still a bug because it shouldn't be possible to successfully install different packages which cause bugs like this. But it's also a bug that we are unlikely to ever encounter again or fix.

Changed in gnome-shell (Ubuntu):
status: New → Opinion
status: Opinion → Won't Fix
summary: - Alt+Tab produces visual artefacts when a modal dialog is open
+ Alt+Tab produces visual artefacts when a modal dialog is open [with
+ mismatched mutter packages installed]
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I found the upstream bug and attached it. The bug symptoms are the same.

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
Changed in mutter:
status: Unknown → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. I'm glad to have fixed it already then :)

https://gitlab.gnome.org/GNOME/mutter/merge_requests/117

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.