Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] X crashes with xorg 21.1.3 (mesa crocus)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Thu Jan 27, 2022 12:25 am    Post subject: [SOLVED] X crashes with xorg 21.1.3 (mesa crocus) Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Jan 27, 2022 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Thu Jan 27, 2022 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Thu Jan 27, 2022 2:26 am    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Sun May 08, 2022 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Sat May 14, 2022 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Sat May 14, 2022 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 555
Location: Ásgarðr

PostPosted: Sun May 15, 2022 12:16 pm    Post subject: Reply with quote

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.. :o
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum