View previous topic :: View next topic |
Author |
Message |
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Thu Jan 27, 2022 12:25 am Post subject: [SOLVED] X crashes with xorg 21.1.3 (mesa crocus) |
|
|
EDIT : Fixed, I removed crocus use flag with mesa and used classic i965 driver instead. No more crash.
Hi,
After upgrading xorg-server from 1.20.14 to 21.1.3, X crashes everytime I start palemoon, here is the error in log :
Code: | [ 2179.672] Failed to compile FS: 0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
[ 2179.672] Program source:
#version 130
#ifdef GL_ES
precision mediump float;
#endif
#define RepeatNone 0
#define RepeatNormal 1
#define RepeatPad 2
#define RepeatReflect 3
#define RepeatFix 10
uniform int source_repeat_mode;
uniform int mask_repeat_mode;
vec2 rel_tex_coord(vec2 texture, vec4 wh, int repeat)
{
vec2 rel_tex;
rel_tex = texture * wh.xy;
if (repeat == RepeatFix + RepeatNone)
return rel_tex;
else if (repeat == RepeatFix + RepeatNormal)
rel_tex = floor(rel_tex) + (fract(rel_tex) / wh.xy);
else if (repeat == RepeatFix + RepeatPad) {
if (rel_tex.x >= 1.0)
rel_tex.x = 1.0 - wh.z * wh.x / 2.;
else if (rel_tex.x < 0.0)
rel_tex.x = 0.0;
if (rel_tex.y >= 1.0)
rel_tex.y = 1.0 - wh.w * wh.y / 2.;
else if (rel_tex.y < 0.0)
rel_tex.y = 0.0;
rel_tex = rel_tex / wh.xy;
} else if (repeat == RepeatFix + RepeatReflect) {
if ((1.0 - mod(abs(floor(rel_tex.x)), 2.0)) < 0.001)
[ 2179.672] (EE)
Fatal server error:
[ 2179.672] (EE) GLSL compile failure
[ 2179.672] (EE)
[ 2179.672] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 2179.672] (EE) Please also check the log file at "/home/sdauth/.local/share/xorg/Xorg.0.log" for additional information.
[ 2179.672] (EE)
[ 2179.672] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 2179.711] (EE) Server terminated with error (1). Closing log file. |
Downgrading to 1.20.14 fixes the issue. But what could be causing that ?
Thanks
Last edited by sdauth on Sat May 14, 2022 5:53 pm; edited 4 times in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Jan 27, 2022 1:41 am Post subject: |
|
|
There are two entries in the X server 21.1 release notes:
Code: | Lukas F. Hartmann (1):
glamor_init: clamp GLSL to 120 if platform doesn't have instanced arrays |
Code: | glamor: Only use dual blending with GLSL >= 1.30 |
Could the first one be related to the issue? |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Thu Jan 27, 2022 2:03 am Post subject: |
|
|
Maybe, I have no idea.
I forgot to mention that it only happens on my laptop (a Thinkpad x200), which uses an igpu. (Intel 4500MHD), the desktop computer (amd gpu) is not affected and palemoon starts just fine as usual and doesn't cause X to crash with latest xorg-server.
I will try to remove crocus from mesa to see if it is related. Very strange issue because everything else works, file manager, mpv, other graphical applications etc.. only palemoon triggers the crash. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Thu Jan 27, 2022 2:26 am Post subject: |
|
|
I removed crocus use flag (used i965 driver instead) with mesa and now latest xorg-server doesn't crash anymore when I open palemoon. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Sun May 08, 2022 8:24 am Post subject: |
|
|
Bump because with mesa 22.0.3 update, i965 driver is gone and it uses crocus now. So X crashes again with palemoon.
I'm going to fill a bug.. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Sat May 14, 2022 5:52 pm Post subject: |
|
|
It seems palemoon was the culprit here. After having updated it to v31.0.0 (latest release), X doesn't crash anymore with latest mesa stable & crocus. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Sat May 14, 2022 6:25 pm Post subject: |
|
|
I would argue that X or one of its libraries is the culprit. The browser cannot crash the X server absent a bug in the X server or a library that it has loaded. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 555 Location: Ásgarðr
|
Posted: Sun May 15, 2022 12:16 pm Post subject: |
|
|
It could be. If I downgrade palemoon to previous version (29.4.6), then X crashes again when launching palemoon :
Code: | [ 11614.298] Failed to compile FS: 0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
[ 11614.298] Program source:
#version 130
#ifdef GL_ES
precision mediump float;
#endif
#define RepeatNone 0
#define RepeatNormal 1
#define RepeatPad 2
#define RepeatReflect 3
#define RepeatFix 10
uniform int source_repeat_mode;
uniform int mask_repeat_mode;
vec2 rel_tex_coord(vec2 texture, vec4 wh, int repeat)
{
vec2 rel_tex;
rel_tex = texture * wh.xy;
if (repeat == RepeatFix + RepeatNone)
return rel_tex;
else if (repeat == RepeatFix + RepeatNormal)
rel_tex = floor(rel_tex) + (fract(rel_tex) / wh.xy);
else if (repeat == RepeatFix + RepeatPad) {
if (rel_tex.x >= 1.0)
rel_tex.x = 1.0 - wh.z * wh.x / 2.;
else if (rel_tex.x < 0.0)
rel_tex.x = 0.0;
if (rel_tex.y >= 1.0)
rel_tex.y = 1.0 - wh.w * wh.y / 2.;
else if (rel_tex.y < 0.0)
rel_tex.y = 0.0;
rel_tex = rel_tex / wh.xy;
} else if (repeat == RepeatFix + RepeatReflect) {
if ((1.0 - mod(abs(floor(rel_tex.x)), 2.0)) < 0.001)
[ 11614.298] (EE)
Fatal server error:
[ 11614.298] (EE) GLSL compile failure
[ 11614.298] (EE)
[ 11614.298] (EE) |
Very strange issue..
Well, at least it works fine with palemoon v31.0.0.. |
|
Back to top |
|
|
|