RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1976132 - EGLStream: Xwayland windows turn black sometimes when resizing
Summary: EGLStream: Xwayland windows turn black sometimes when resizing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: xorg-x11-server-Xwayland
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Olivier Fourdan
QA Contact: Peter Kopec
URL:
Whiteboard:
Depends On: 1976780
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-25 09:35 UTC by Olivier Fourdan
Modified: 2021-11-10 00:27 UTC (History)
2 users (show)

Fixed In Version: xorg-x11-server-Xwayland-21.1.1-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:37:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:4234 0 None None None 2021-11-09 18:37:26 UTC

Description Olivier Fourdan 2021-06-25 09:35:10 UTC
Description of problem:

This is NVIDIA proprietary driver an EGLStream, with Xwayland 21.1.1-4 and agl-wayland 1.1.7 (which contains https://github.com/NVIDIA/egl-wayland/commit/0d12001c7fb6951fe5cb7c832811340b6f8ef102).

When resizing an X11 window such as xterm, the whole window surface sometime turn black.

Version-Release number of selected component (if applicable):

mutter-3.32.2-57.el8

How reproducible:

Always

Steps to Reproduce:
1. On a system with NVIDIA hardware and proprietary driver
2. Start xterm
3. Resize the xterm window

Actual results:

The window sometimes turns completely black

Expected results:

The window content remains visible while resizing

Additional info:

Reason I suspect a bug in mutter and not Xwayland is because the same version of Xwayland with the exact same set of patches with egl-wayladn 1.1.7 works fine on Fedora 34. The only difference I can think of here is mutter.

FWIW I tried backporting GNOME/mutter!942 (the “allow commit” property) and also 
the “wayland/egl-stream: Cache texture snippet” from master, but to no avail unfortunately.

The list of patches I tried to backport so far:

https://gitlab.gnome.org/GNOME/mutter/-/commit/bac188b568f8948a41c1d6fda0fcd3e2c4033743
https://gitlab.gnome.org/GNOME/mutter/-/commit/845157c11138ed189221f5c8164fb17945d1d493
https://gitlab.gnome.org/GNOME/mutter/-/commit/10796e672619347848d0f66f40cd9cde32994e20
https://gitlab.gnome.org/GNOME/mutter/-/commit/4ae9953607c82166e2bc7f342d2663d38314f6bd
https://gitlab.gnome.org/GNOME/mutter/-/commit/53fce8e988e4e61acdd7ea51e16e20d11265c906
https://gitlab.gnome.org/GNOME/mutter/-/commit/c3c54e8ce66764ca4e85da1b3cee3284db55eae7
https://gitlab.gnome.org/GNOME/mutter/-/commit/aa017383ace0281397866f2296e0375b266f11d7
https://gitlab.gnome.org/GNOME/mutter/-/commit/d7a7af1ff200626f9cba9abae2eb4b1ed3efa7a5
https://gitlab.gnome.org/GNOME/mutter/-/commit/df5a5d279d1ec9757881304f6cb3ca546a3743a0
https://gitlab.gnome.org/GNOME/mutter/-/commit/a2e2cfe43714df656e451ef525b97c24fa786fed
https://gitlab.gnome.org/GNOME/mutter/-/commit/76ee026caa1ab0215be389e4a33a6994ce3d26fc

But none of those seem to solve the issue.

Comment 1 Olivier Fourdan 2021-06-25 13:03:41 UTC
OK, I have the fix, I was missign a couple of commits, but it works fine now.

It's ~12 backport patches (with some adaptations) but resizes are butter smooth now.

Comment 2 Olivier Fourdan 2021-06-25 13:44:34 UTC
(In reply to Olivier Fourdan from comment #1)
> OK, I have the fix, I was missign a couple of commits, but it works fine now.
> 
> It's ~12 backport patches (with some adaptations) but resizes are butter
> smooth now.

Sorry I take that back, it still happens, so this is definitely not GNOME/mutter!942

Comment 3 Olivier Fourdan 2021-06-28 07:40:22 UTC
All my apologies, but the problem is with Xwayland - If I install the el8 package on FEdora I can reproduce there as well.

Moving to Xwayland

Comment 4 Olivier Fourdan 2021-06-28 08:14:25 UTC
There it is, clearly visible in the journalct logs:

> Jun 28 09:58:57 xxxx org.gnome.Shell.desktop[2352]: EGL_NV_stream_flush not available, this may cause visible corruption.

We **need** to update libepoxy in el8!

Comment 5 Peter Kopec 2021-06-30 10:31:22 UTC
tested with xorg-x11-server-Xwayland-21.1.1-5.el8
The window content remained visible while resizing

Comment 8 Peter Kopec 2021-07-15 17:36:05 UTC
based on Comment 5 moving on verified

Comment 10 errata-xmlrpc 2021-11-09 18:37:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (mesa and related packages bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:4234


Note You need to log in before you can comment on or make changes to this bug.