[Wayland] (Re-)plugging a monitor on GNOME 3.36 results in artifacts on Alt-Tab or Overview
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: intelfx, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: nightly-community)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Steps to reproduce:
- Use GNOME 3.36 / Wayland
- get a laptop w/ Intel integrated graphics (tested on X1 Carbon 6th) and an external HiDPI (4K) display
- close the laptop lid and connect it to an external display, OR
- keeping the laptop lid closed, unplug and replug an external display
Or in prose: under GNOME 3.36 / Wayland, connecting my laptop (X1 Carbon 6th) to an external display after closing the laptop lid, or re-plugging the external display while the laptop lid is closed, causes visual artifacts to appear every time I Alt-Tab into a Firefox window or enter/exit the Overview.
Actual results:
Visual artifacts and flickering occurs every time I enter or exit Overview or Alt-Tab into a Firefox window:
- https://intelfx.name/files/persistent/2020-06-04%20firefox%20artifacts/artifacts%201.webm
- https://intelfx.name/files/persistent/2020-06-04%20firefox%20artifacts/artifacts%202.webm
Sometimes, major artifacts occur in Overview (that is, rapid flickering outside of the Firefox window preview), but I was unable to capture any occurrence of these.
Expected results:
No visual artifacts (compare):
https://intelfx.name/files/persistent/2020-06-04%20firefox%20artifacts/normal.webm
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Looks like Firefox gets confused about different buffer scales. Do your monitors (the internal one and the external one) have different scales set in the Gnome display settings? Could you check if the same reproduces if both are set to 100%?
Reporter | ||
Comment 3•4 years ago
|
||
(In reply to Robert Mader [:rmader] from comment #2)
Looks like Firefox gets confused about different buffer scales. Do your monitors (the internal one and the external one) have different scales set in the Gnome display settings? Could you check if the same reproduces if both are set to 100%?
Both monitors are 200%, and the bug indeed does not manifest itself when both are configured to 100%.
But I think I can shed some more light on the problem. After I replug the external monitor, all Wayland windows start to exhibit slightly problematic behavior (but less pronounced than Firefox). Specifically, upon entering Overview, the window content gets blurred, as if the window renders at 100% and is then upscaled to 200%. Observe:
- https://intelfx.name/files/persistent/2020-06-05%20gnome-terminal%20artifacts/before.webm
- https://intelfx.name/files/persistent/2020-06-05%20gnome-terminal%20artifacts/after.webm
So I'd say there are two bugs, one somewhere on GNOME side and one in Firefox, and the former exacerbates the latter.
Comment 4•4 years ago
|
||
https://intelfx.name/files/persistent/2020-06-05%20gnome-terminal%20artifacts/after.webm
Wow, even the mouse cursor switches between scales. This looks very much like a bug in GS - maybe FF also has bugs, maybe it just shows stronger symptoms. Mind creating an issue at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests ?
Ah and before you do, could you test if the same happens with the experimental/fractional GS scaling? It generally works more reliable - would already help to know for debugging (gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
)
Reporter | ||
Comment 5•4 years ago
|
||
(In reply to Robert Mader [:rmader] from comment #4)
https://intelfx.name/files/persistent/2020-06-05%20gnome-terminal%20artifacts/after.webm
Wow, even the mouse cursor switches between scales. This looks very much like a bug in GS - maybe FF also has bugs, maybe it just shows stronger symptoms. Mind creating an issue at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests ?
Ah and before you do, could you test if the same happens with the experimental/fractional GS scaling? It generally works more reliable - would already help to know for debugging (
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
)
Done: https://gitlab.gnome.org/GNOME/mutter/-/issues/1286
For the record, gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
does not appear to help.
Reporter | ||
Comment 6•4 years ago
|
||
More severe visual artifacts that happen occasionally within described situation:
- https://intelfx.name/files/persistent/2020-06-04%20firefox%20artifacts/IMG_1641.MOV
- https://intelfx.name/files/persistent/2020-06-04%20firefox%20artifacts/IMG_1642.MOV
(I apologize for a camera capture — those artifacts disappear when screencasting)
Comment 7•4 years ago
|
||
Robert, I think this is mutter bug, right?
Thanks.
Comment 9•3 years ago
|
||
Ivan, do you still see it? Looks like an issue with mutter subsurface. I can't reproduce it. Please try latest mutter version available and reopen if you still see it.
Reporter | ||
Comment 10•3 years ago
|
||
Yes, the bug does not appear anymore since a few months ago.
Description
•