Bug 1186092

Summary: Invisible windows on clean Leap 15.3 beta install with gnome and wayland
Product: [openSUSE] openSUSE Distribution Reporter: xel <alex.a>
Component: GNOMEAssignee: Daike Yu <yu.daike>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alex.a, alynx.zhou, vuntz, yfjiang, yu.daike
Version: Leap 15.3Flags: yfjiang: needinfo? (alex.a)
Target Milestone: ---   
Hardware: 64bit   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Invisible opensuse welcome window

Description xel 2021-05-15 18:39:27 UTC
Created attachment 849362 [details]
Invisible opensuse welcome window

Hi,

I'm now testing Leap 15.3 beta on a clean install and many windows from new opened programs stay invisible or just have a shadow like in the attached picture. The programs itself are running as I can see them with ps and in the dash. Some windows are visible: e.g. Firefox, Thunderbird, Nautilus, Terminal.

I've traced it down that removing gnome-session-wayland solves the issue. However without it other things don't work, e.g. my 2nd Monitor stays black, terminal takes long time to open.

Before that I've upgraded from Leap 15.2 to 15.3 and gnome was crashing when opening same windows which stay invisible now (Firefox etc. worked fine).

In journalctl I see a lot of "... gnome-shell[xxxx]: Modifiers specified, but DRI is too old" entries. Seems to be related to Mesa driver (?). The versions of Mesa and Mesa-dri do not match.
Nothing interesting in dmesg.

Have never seen such issue on Leap 15.2 and Tumbleweed before.

Tried without success:
 use only one monitor, disable gnome extensions, install vendor GPU driver.

Have seen some related issues with KDE plasma: https://forums.opensuse.org/showthread.php/539874-Wayland-Plasma-Application-windows-not-showing-up-cause-session-crash
Can't use the workaround suggested there as there are no such options with gnome.


package versions:
 gnome-session-wayland 3.34.2-6.3.1
 Mesa     20.2.4-57.13
 Mesa-dri 20.2.4-57.12


My specs:
 CPU: AMD Ryzen 5 3600, GPU: AMD Radeon RX 5700
 OpenSUSE 15.3 beta  Kernel: 5.3.18-57-default x86_6
 from inxi -GxxSza:
    Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: Tul 
               driver: amdgpu v: kernel bus ID: 28:00.0 chip ID: 1002:731f 
               Display: wayland server: X.Org 1.20.3 compositor: gnome-shell driver: amdgpu,ati 
               unloaded: fbdev,modesetting,radeon,vesa display ID: :0 screens: 1 
               OpenGL: renderer: AMD Radeon RX 5700 (NAVI10 DRM 3.39.0 5.3.18-57-default LLVM 11.0.1) v: 4.6 Mesa 20.2.4 
               direct render: Yes
Comment 1 Yifan Jiang 2021-05-17 01:40:40 UTC
Hello xel,

Since you mentioned "many windows from new opened programs stay invisible", except for the "opensuse welcome window" would you elaborate some other programs with this problem as well. I wonder if it only happens on QT windows. Thanks!
Comment 2 Alynx Zhou 2021-05-17 01:46:10 UTC
Hi, about "remove gnome-session-wayland", do you mean you are fine with X11 session? Can you check what's your session with `echo $XDG_SESSION_TYPE`?
Comment 3 Daike Yu 2021-05-17 06:04:24 UTC
Likely a duplicate of boo#1184906. Would you mind also try the fix given in that bug report to see if it fixes the issue for you? Thanks in advance.
Comment 4 xel 2021-05-17 09:17:17 UTC
(In reply to Yifan Jiang from comment #1)
> Hello xel,
> 
> Since you mentioned "many windows from new opened programs stay invisible",
> except for the "opensuse welcome window" would you elaborate some other
> programs with this problem as well. I wonder if it only happens on QT
> windows. Thanks!

What works: Firefox, Thunderbird, Terminal (console), Nautilus, celluliod, inkscape, Libreoffice ...

What DOESN'T work: okular, nextcloud client, blender, gimp, Torbrowser-launcher, eclipse¹, gparted¹, vlc¹, mumble¹, Qt-creator¹ ...   (¹ = there are shadows around the window, no window itself)

You could be right that it has something to do with Qt as the Torbrowser-launcher first opens a small connect(?) window before opening the browser itself, as a child of firefox (I assume). Same is true for eclipse and Qt-creator: small window first, editor afterwards. However nothing happens there, so the windows are not just invisible but also the programs stop to work.
Comment 5 xel 2021-05-17 09:19:11 UTC
(In reply to Alynx Zhou from comment #2)
> Hi, about "remove gnome-session-wayland", do you mean you are fine with X11
> session? Can you check what's your session with `echo $XDG_SESSION_TYPE`?

with gnome-session-wayland  $XDG_SESSION_TYPE=wayland
without                     $XDG_SESSION_TYPE=x11

I may find a fix for the second monitor to work, but would like to work with wayland if it's possible.
Comment 6 xel 2021-05-17 09:28:56 UTC
(In reply to Daike Yu from comment #3)
> Likely a duplicate of boo#1184906. Would you mind also try the fix given in
> that bug report to see if it fixes the issue for you? Thanks in advance.

Unfortunately your xorg-x11-server package doesn't fix my issue. The windows stay invisible/are not responding.

However with Leap 15.2 and Tumbleweed I've never seen this issue. So something in between was changed produce this and was fixed afterwards for Tumbleweed.

I've tried to install newer gnome-session-wayland package but it depends on many others which conflicts with again other packages.
Comment 7 Daike Yu 2021-05-17 12:50:12 UTC
(In reply to xel from comment #6)
> (In reply to Daike Yu from comment #3)
> > Likely a duplicate of boo#1184906. Would you mind also try the fix given in
> > that bug report to see if it fixes the issue for you? Thanks in advance.
> 
> Unfortunately your xorg-x11-server package doesn't fix my issue. The windows
> stay invisible/are not responding.
> 
> However with Leap 15.2 and Tumbleweed I've never seen this issue. So
> something in between was changed produce this and was fixed afterwards for
> Tumbleweed.
> 
> I've tried to install newer gnome-session-wayland package but it depends on
> many others which conflicts with again other packages.

Did you installed xorg-x11-server only, or all of the packages in the project (especially xorg-x11-server-wayland)?
Comment 8 xel 2021-05-17 15:58:07 UTC
I did it first only with xorg-x11-server.

Now installed all 5 packages and the windows are visible again. Many thanks!
Saw at first only the one package. You might post the link here as well, or mind if I do?

Is there a possibility to merge them into the official build?

(will close this post after some testing time)
Comment 9 Daike Yu 2021-05-18 00:22:55 UTC
(In reply to xel from comment #8)
> I did it first only with xorg-x11-server.
> 
> Now installed all 5 packages and the windows are visible again. Many thanks!
> Saw at first only the one package. You might post the link here as well, or
> mind if I do?
> 
> Is there a possibility to merge them into the official build?
> 
> (will close this post after some testing time)

Thanks for the report! Guess I should have given more details :)

Don't worry about the integration, we'll take care of it :)
Comment 10 Daike Yu 2021-05-18 03:48:09 UTC
Marking as a duplicate of boo#1184906

*** This bug has been marked as a duplicate of bug 1184906 ***
Comment 12 Yifan Jiang 2021-05-31 00:49:56 UTC
*** Bug 1186624 has been marked as a duplicate of this bug. ***
Comment 13 Swamp Workflow Management 2021-06-10 13:49:34 UTC
SUSE-RU-2021:1934-1: An update that has two recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1184906,1186092
CVE References: 
JIRA References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 15-SP3 (src):    xorg-x11-server-1.20.3-22.5.33.1
SUSE Linux Enterprise Workstation Extension 15-SP2 (src):    xorg-x11-server-1.20.3-22.5.33.1
SUSE Linux Enterprise Module for Development Tools 15-SP3 (src):    xorg-x11-server-1.20.3-22.5.33.1
SUSE Linux Enterprise Module for Development Tools 15-SP2 (src):    xorg-x11-server-1.20.3-22.5.33.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    xorg-x11-server-1.20.3-22.5.33.1
SUSE Linux Enterprise Module for Basesystem 15-SP2 (src):    xorg-x11-server-1.20.3-22.5.33.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 14 Swamp Workflow Management 2021-07-11 14:16:10 UTC
openSUSE-RU-2021:1934-1: An update that has two recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1184906,1186092
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    xorg-x11-server-1.20.3-22.5.33.1
Comment 15 OBSbugzilla Bot 2022-11-07 17:35:15 UTC
This is an autogenerated message for OBS integration:
This bug (1186092) was mentioned in
https://build.opensuse.org/request/show/1034269 Factory / xorg-x11-server