Ran into element-desktop
not being able to display the GUI inside its window when launched after the mesa 23.1.3-2
update.
Output when launched from console, lots of GLES and GLSL (shader) issues
...
[9373:0702/143637.087328:ERROR:shared_context_state.cc(81)] Skia shader compilation error
------------------------
// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;uniform float2 uAtlasSizeInv_S0;in float2 inPosition;in half4 inColor;in ushort2 inTextureCoords;noperspective out float2 vTextureCoords_S0;flat out float vTexIndex_S0;noperspective out half4 vinColor_S0;void main() {// Primitive Processor BitmapText
int texIdx = 0;float2 unormTexCoords = float2(inTextureCoords.x, inTextureCoords.y);vTextureCoords_S0 = unormTexCoords * uAtlasSizeInv_S0;vTexIndex_S0 = float(texIdx);vinColor_S0 = inColor;float2 _tmp_1_inPosition = inPosition;sk_Position = inPosition.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform sampler2D uTextureSampler_0_S0;
noperspective in float2 vTextureCoords_S0;flat in float vTexIndex_S0;noperspective in half4 vinColor_S0;void main() {// Stage 0, BitmapText
half4 outputColor_S0;outputColor_S0 = vinColor_S0;half4 texColor;{ texColor = sample(uTextureSampler_0_S0, vTextureCoords_S0).rrrr; }half4 outputCoverage_S0 = texColor;{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * outputCoverage_S0;}}
// Vertex GLSL
#version 300 es
#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
uniform highp vec4 sk_RTAdjust;
uniform highp vec2 uAtlasSizeInv_S0;
in highp vec2 inPosition;
in mediump vec4 inColor;
in mediump uvec2 inTextureCoords;
noperspective out highp vec2 vTextureCoords_S0;
flat out highp float vTexIndex_S0;
noperspective out mediump vec4 vinColor_S0;
void main() {
highp int texIdx = 0;
highp vec2 unormTexCoords = vec2(float(inTextureCoords.x), float(inTextureCoords.y));
vTextureCoords_S0 = unormTexCoords * uAtlasSizeInv_S0;
vTexIndex_S0 = float(texIdx);
vinColor_S0 = inColor;
gl_Position = vec4(inPosition, 0.0, 1.0);
gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w);
}
// Fragment GLSL
#version 300 es
#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
out mediump vec4 sk_FragColor;
uniform sampler2D uTextureSampler_0_S0;
noperspective in highp vec2 vTextureCoords_S0;
flat in highp float vTexIndex_S0;
noperspective in mediump vec4 vinColor_S0;
void main() {
mediump vec4 outputColor_S0;
outputColor_S0 = vinColor_S0;
mediump vec4 texColor;
{
texColor = texture(uTextureSampler_0_S0, vTextureCoords_S0, -0.5).xxxx;
}
mediump vec4 outputCoverage_S0 = texColor;
{
sk_FragColor = outputColor_S0 * outputCoverage_S0;
}
}
Errors:
link failed but did not provide an info log
[9373:0702/143637.087906:ERROR:shared_context_state.cc(81)] Skia shader compilation error
------------------------
// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;in float2 position;in half4 color;in float2 localCoord;flat out half4 vcolor_S0;noperspective out float2 vlocalCoord_S0;void main() {// Primitive Processor QuadPerEdgeAAGeometryProcessor
vcolor_S0 = color;vlocalCoord_S0 = localCoord;sk_Position = position.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform sampler2D uTextureSampler_0_S0;
flat in half4 vcolor_S0;noperspective in float2 vlocalCoord_S0;void main() {// Stage 0, QuadPerEdgeAAGeometryProcessor
half4 outputColor_S0;outputColor_S0 = vcolor_S0;float2 texCoord;texCoord = vlocalCoord_S0;outputColor_S0 = (blend_modulate(sample(uTextureSampler_0_S0, texCoord), outputColor_S0));const half4 outputCoverage_S0 = half4(1);{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * outputCoverage_S0;}}
// Vertex GLSL
#version 300 es
#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
uniform highp vec4 sk_RTAdjust;
in highp vec2 position;
in mediump vec4 color;
in highp vec2 localCoord;
flat out mediump vec4 vcolor_S0;
noperspective out highp vec2 vlocalCoord_S0;
void main() {
vcolor_S0 = color;
vlocalCoord_S0 = localCoord;
gl_Position = vec4(position, 0.0, 1.0);
gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w);
}
// Fragment GLSL
#version 300 es
#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
out mediump vec4 sk_FragColor;
uniform sampler2D uTextureSampler_0_S0;
flat in mediump vec4 vcolor_S0;
noperspective in highp vec2 vlocalCoord_S0;
void main() {
mediump vec4 outputColor_S0;
outputColor_S0 = vcolor_S0;
highp vec2 texCoord;
texCoord = vlocalCoord_S0;
outputColor_S0 = texture(uTextureSampler_0_S0, texCoord, -0.5) * outputColor_S0;
{
sk_FragColor = outputColor_S0;
}
}
Errors:
link failed but did not provide an info log
---
The workaround is quite easy, simply launch element-desktop
disabling the shader cache.
MESA_SHADER_CACHE_DISABLE=true element-desktop
Happy to hear anyone’s thoughts or if I am missing something else quite obvious. Otherwise hope this helps anyone else experiencing the same issue.
I haven’t had any issues launching and playing games via Steam, etc to my surprise.
System info
System:
Kernel: 6.4.1-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
Desktop: GNOME v: 44.2 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: X670E PG Lightning
serial: <superuser required> UEFI: American Megatrends LLC. v: 1.24
date: 05/23/2023
CPU:
Info: 12-core model: AMD Ryzen 9 7900X bits: 64 type: MT MCP arch: Zen 4
rev: 2 cache: L1: 768 KiB L2: 12 MiB L3: 64 MiB
Speed (MHz): avg: 3495 high: 4700 min/max: 3000/5733 boost: enabled cores:
1: 3000 2: 3000 3: 4700 4: 4700 5: 3000 6: 4700 7: 3000 8: 3000 9: 3000
10: 4700 11: 4700 12: 3000 13: 4700 14: 3000 15: 3000 16: 3000 17: 3000
18: 3000 19: 4700 20: 3000 21: 3000 22: 3000 23: 3000 24: 3000
bogomips: 225241
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX] vendor: XFX
driver: amdgpu v: kernel arch: RDNA-3 bus-ID: 03:00.0
Device-2: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Sapphire driver: vfio-pci v: N/A arch: GCN-4 bus-ID: 04:00.0
Device-3: Sunplus Innovation 1080P Webcam driver: snd-usb-audio,uvcvideo
type: USB bus-ID: 1-5:5
Display: wayland server: X.Org v: 23.1.2 with: Xwayland v: 23.1.2
compositor: gnome-shell driver: X: loaded: amdgpu
unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu
resolution: 2560x1440~60Hz
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 7900 XT (gfx1100
LLVM 15.0.7 DRM 3.52 6.4.1-3-MANJARO) direct-render: Yes
Audio:
Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 03:00.1
Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
vendor: Sapphire driver: vfio-pci bus-ID: 04:00.1
Device-3: AMD Family 17h/19h HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel bus-ID: 1b:00.6
Device-4: Blue Microphones Yeti Stereo Microphone
driver: hid-generic,snd-usb-audio,usbhid type: USB bus-ID: 1-4:3
Device-5: Sunplus Innovation 1080P Webcam driver: snd-usb-audio,uvcvideo
type: USB bus-ID: 1-5:5
Device-6: SteelSeries ApS Arctis 7
driver: hid-generic,snd-usb-audio,usbhid type: USB bus-ID: 7-1:2
API: ALSA v: k6.4.1-3-MANJARO status: kernel-api
Server-1: PipeWire v: 0.3.72 status: active
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel
port: d000 bus-ID: 11:00.0
IF: enp17s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Drives:
Local Storage: total: 3.64 TiB used: 2.28 TiB (62.5%)
ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P5SSD8 size: 931.51 GiB
temp: 48.9 C
ID-2: /dev/sda vendor: Crucial model: CT2000MX500SSD1 size: 1.82 TiB
ID-3: /dev/sdb vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
Partition:
ID-1: / size: 915.52 GiB used: 681.2 GiB (74.4%) fs: ext4 dev: /dev/dm-0
mapped: luks-d20ac551-a64c-451a-8849-4c7f7927e453
ID-2: /boot/efi size: 299.4 MiB used: 456 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: file size: 32 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
System Temperatures: cpu: 56.9 C mobo: N/A gpu: amdgpu temp: 52.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 448 Uptime: 50m Memory: available: 31.06 GiB
used: 3.44 GiB (11.1%) Init: systemd Compilers: gcc: 13.1.1 clang: 15.0.7
Packages: 1877 Shell: Zsh v: 5.9 inxi: 3.3.27
Update: Once element-desktop
is launched with the shader cache disabled, I was able to logout and relaunch as normal. Signed back in and all is well!
Update 2: This has been reported and considered an upstream issue with Chromium.