#1003091 xwayland: Xwayland uses glamor and shows black screens

Package:
xwayland
Source:
xwayland
Description:
X server for running X clients under Wayland
Submitter:
Gert van de Kraats
Date:
2024-03-23 11:33:02 UTC
Severity:
important
Tags:
#1003091#5
Date:
2022-01-03 21:23:28 UTC
From:
To:
Dear Maintainer,

I am using graphics:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and
945GT Express Memory Controller Hub (rev 03)
Subsystem: Dell Mobile 945GM/PM/GMS, 943/940GML and 945GT Express
Memory Controller Hub
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS,
943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Dell Mobile 945GM/GMS, 943/940GML Express Integrated
Graphics Controller
Kernel driver in use: i915
Kernel modules: i915
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME,
943/940GML
Express Integrated Graphics Controller (rev 03)
Subsystem: Dell Mobile 945GM/GMS/GME, 943/940GML Express Integrated
Graphics Controller

It is intel gen 3 and supports GL1.4 and ES2.0.

At Debian (testing) Bookworm this recently was working without problem,
using ES2.0 hardware driver at Wayland and automatically
galamor was disabled and the llvmpipe software driver at Xwayland
wa selected, because version GL1.4 is too low.
The latest Xwayland package now tries to use ES2.0 with glamor at
Xwayland. This causes blackscreen (Java8, Chromium), xeyes and not working
es2_info end glxinfo.
Errors at startup of user session at syslog:
Jan 2 01:27:47 debian org.gnome.Shell.desktop[9925]: Supported GL version is
not sufficient (required 21, found 14)
Jan 2 01:27:47 debian org.gnome.Shell.desktop[9925]: (EE) glamor0: GL error:
GL_INVALID_VALUE in glTexImage2D(internalFormat=GL_R8)
Jan 2 01:27:47 debian org.gnome.Shell.desktop[9925]: (EE)
Jan 2 01:27:47 debian org.gnome.Shell.desktop[9925]: (EE) Backtrace:
Jan 2 01:27:47 debian dbus-daemon[528]: [system] Activating via systemd:
service name='org.freedesktop.realmd' unit='realmd.service' requested by
':1.492' (uid=117 pid=9895 comm="/usr/bin/gnome-shell ")
Jan 2 01:27:47 debian systemd[1]: Starting Realm and Domain Configuration...
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 0:
/usr/bin/Xwayland
(0x4b9000+0x161813) [0x61a813]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 1:
/usr/bin/Xwayland
(0x4b9000+0x31596) [0x4ea596]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 2:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x1f6175) [0xb63ba175]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 3:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x25d5f1) [0xb64215f1]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 4:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x31f955) [0xb64e3955]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 5:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x320076) [0xb64e4076]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 6:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x3225fa) [0xb64e65fa]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 7:
/usr/bin/Xwayland
(0x4b9000+0x31758) [0x4ea758]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 8:
/usr/bin/Xwayland
(0x4b9000+0x32d27) [0x4ebd27]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 9:
/usr/bin/Xwayland
(0x4b9000+0x2b3cc) [0x4e43cc]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 10:
/usr/bin/Xwayland (0x4b9000+0x25eac) [0x4deeac]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 11:
/usr/bin/Xwayland (0x4b9000+0x8f759) [0x548759]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 12:
/usr/bin/Xwayland (0x4b9000+0x1f584) [0x4d8584]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 13:
/usr/bin/Xwayland (0x4b9000+0x93715) [0x54c715]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 14:
/usr/bin/Xwayland (0x4b9000+0x1ed3b) [0x4d7d3b]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 15:
/lib/i386-linux-
gnu/libc.so.6 (__libc_start_main+0xe5) [0xb7942905]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 16:
/usr/bin/Xwayland (0x4b9000+0x1ed81) [0x4d7d81]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE)
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: glamor: Test fbo for
depth 8 incomplete. Falling back to software.
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: glamor: Implementation
returned 0x1908/0x8366 read format/type for depth 15, expected
0x1908/0x8034.
Falling back to software.
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: glamor: Implementation
returned 0x80e1/0x1401 read format/type for depth 24, expected
0x1908/0x1401.
Falling back to software.
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: glamor: Implementation
returned 0x80e1/0x1401 read format/type for depth 32, expected
0x1908/0x1401.
Falling back to software.
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) glamor0: GL error:
GL_INVALID_OPERATION in glTexImage2D(format = GL_RGBA, type =
GL_UNSIGNED_INT_2_10_10_10_REV, internalformat = GL_RGB10_A2)
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE)
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) Backtrace:
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 0:
/usr/bin/Xwayland
(0x4b9000+0x161813) [0x61a813]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 1:
/usr/bin/Xwayland
(0x4b9000+0x31596) [0x4ea596]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 2:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x1f6175) [0xb63ba175]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 3:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x25d5f1) [0xb64215f1]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 4:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x31a75e) [0xb64de75e]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 5:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x31fc18) [0xb64e3c18]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 6:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x320076) [0xb64e4076]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 7:
/usr/lib/i386-linux-gnu/dri/i915_dri.so (0xb61c4000+0x3225fa) [0xb64e65fa]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 8:
/usr/bin/Xwayland
(0x4b9000+0x31758) [0x4ea758]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 9:
/usr/bin/Xwayland
(0x4b9000+0x32dfe) [0x4ebdfe]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 10:
/usr/bin/Xwayland (0x4b9000+0x2b3cc) [0x4e43cc]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 11:
/usr/bin/Xwayland (0x4b9000+0x25eac) [0x4deeac]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 12:
/usr/bin/Xwayland (0x4b9000+0x8f759) [0x548759]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 13:
/usr/bin/Xwayland (0x4b9000+0x1f584) [0x4d8584]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 14:
/usr/bin/Xwayland (0x4b9000+0x93715) [0x54c715]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 15:
/usr/bin/Xwayland (0x4b9000+0x1ed3b) [0x4d7d3b]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 16:
/lib/i386-linux-
gnu/libc.so.6 (__libc_start_main+0xe5) [0xb7942905]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE) 17:
/usr/bin/Xwayland (0x4b9000+0x1ed81) [0x4d7d81]
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: (EE)
Jan 2 01:27:48 debian org.gnome.Shell.desktop[9925]: glamor: Test fbo for
depth 30 incomplete. Falling back to software.

Problem disappears by using environment var: XWAYLAND_NO_GLAMOR=1

#1003091#10
Date:
2022-01-21 18:49:55 UTC
From:
To:
I reported the bug upstream for Xwayland:

https://gitlab.freedesktop.org/xorg/xserver/-/issues/1288

It will be fixed.

#1003091#15
Date:
2024-03-23 11:23:28 UTC
From:
To:
Hi,

Could you update this bug with its status?
I got the impression that it is fixed upstream, but IIUC the commit that fixed
it is as of yet only in the 'master' branch and (thus) not part of an upstream
released version. But it also seems that this issue resulted in fixes in
several projects? It appears that you were on top of (all the) things, so I
figured it's better to ask you then trying to figure it out myself.

Cheers,
  Diederik