[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Xorg crashes when opening certain programs
From:       Olivier Fourdan <fourdan () gmail ! com>
Date:       2022-04-15 8:32:57
Message-ID: CACxMwBg8ON=AdstPs86e8HRxsSYdnfp0g5FTa28pqFSjfS3ZYA () mail ! gmail ! com
[Download RAW message or body]

Hi,

On Fri, 15 Apr 2022 at 10:09, DdP Lombard <ddp@lombards.xyz> wrote:

> Hey,
> I'm currently using the new "Crocus" driver for my GMA4500MHD, but
> unfortunately Xorg crashes, when I open certain images, display certain
> websites or simply open some programs. I think some GLSL functions
> are being called that my GPU can't offer. Here is my xorg.log
>
>
>
> [  3751.392] 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
>
> [  3751.392] 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)
> [  3751.392] (EE)
> Fatal server error:
> [  3751.395] (EE) GLSL compile failure
> [  3751.395] (EE)
> [  3751.395] (EE)
> Please consult the The X.Org Foundation support
>          at http://wiki.x.org
>  for help.
> [  3751.395] (EE) Please also check the log file at
> "/home/lombard/.local/share/xorg/Xorg.0.log" for additional
> information. [  3751.395] (EE) [  3751.396] (II) AIGLX: Suspending
> AIGLX clients for VT switch [  3751.444] (EE) Server terminated with
> error (1). Closing log file.
>

That's glamor (in glamor_create_composite_fs() function), please file an
issue in gitlab [1] and attach the relevant logs
("/home/lombard/.local/share/xorg/Xorg.0.log").

I suspect this is with the latest xserver 21.1? I wonder if commit
 a9552868 [2] could possibly be related, maybe try with xserver 1.20 to see
if it has the same issue?

Meanwhile, as a workaround, you may want to disable glamor in your
xorg.conf, it will be slower but it shouldn't crash.

HTH
Cheers
Olivier

[1] https://gitlab.freedesktop.org/xorg/xserver/-/issues
[2] https://gitlab.freedesktop.org/xorg/xserver/-/commit/a95528686

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr">Hi,<br><br></div><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Fri, 15 Apr 2022 at 10:09, DdP Lombard &lt;<a \
href="mailto:ddp@lombards.xyz">ddp@lombards.xyz</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hey,<br> I&#39;m currently using the new \
&quot;Crocus&quot; driver for my GMA4500MHD, but<br> unfortunately Xorg crashes, when \
I open certain images, display certain<br> websites or simply open some programs. I \
think some GLSL functions<br> are being called that my GPU can&#39;t offer. Here is \
my xorg.log<br> <br>
<br>
<br>
[   3751.392] Failed to compile FS: 0:1(10): error: GLSL 1.30 is not<br>
supported. Supported versions are: 1.10, 1.20, and 1.00 ES<br>
<br>
[   3751.392] Program source:<br>
#version 130<br>
#ifdef GL_ES<br>
precision mediump float;<br>
#endif<br>
#define RepeatNone                                          0<br>
#define RepeatNormal                                1<br>
#define RepeatPad                                    2<br>
#define RepeatReflect                              3<br>
#define RepeatFix                                            10<br>
uniform int                                source_repeat_mode;<br>
uniform int                                mask_repeat_mode;<br>
vec2 rel_tex_coord(vec2 texture, vec4 wh, int repeat) <br>
{<br>
            vec2 rel_tex; <br>
            rel_tex = texture * wh.xy; <br>
            if (repeat == RepeatFix + RepeatNone)<br>
                        return rel_tex; <br>
            else if (repeat == RepeatFix + RepeatNormal) <br>
                        rel_tex = floor(rel_tex) + (fract(rel_tex) / wh.xy); <br>
            else if (repeat == RepeatFix + RepeatPad) { <br>
                        if (rel_tex.x &gt;= 1.0) <br>
                                    rel_tex.x = 1.0 - wh.z * wh.x / 2.; <br>
                        else if (rel_tex.x &lt; 0.0) <br>
                                    rel_tex.x = 0.0; <br>
                        if (rel_tex.y &gt;= 1.0) <br>
                                    rel_tex.y = 1.0 - wh.w * wh.y / 2.; <br>
                        else if (rel_tex.y &lt; 0.0) <br>
                                    rel_tex.y = 0.0; <br>
                        rel_tex = rel_tex / wh.xy; <br>
            } else if (repeat == RepeatFix + RepeatReflect) {<br>
                        if ((1.0 - mod(abs(floor(rel_tex.x)), 2.0)) &lt; 0.001)<br>
[   3751.392] (EE) <br>
Fatal server error:<br>
[   3751.395] (EE) GLSL compile failure<br>
[   3751.395] (EE) <br>
[   3751.395] (EE) <br>
Please consult the The X.Org Foundation support <br>
              at <a href="http://wiki.x.org" rel="noreferrer" \
target="_blank">http://wiki.x.org</a><br>  for help. <br>
[   3751.395] (EE) Please also check the log file at<br>
&quot;/home/lombard/.local/share/xorg/Xorg.0.log&quot; for additional<br>
information. [   3751.395] (EE) [   3751.396] (II) AIGLX: Suspending<br>
AIGLX clients for VT switch [   3751.444] (EE) Server terminated with<br>
error (1). Closing log file.<br></blockquote><div><br></div>That&#39;s glamor (in \
glamor_create_composite_fs() function), please file an issue in gitlab [1] and attach \
the relevant logs (&quot;/home/lombard/.local/share/xorg/Xorg.0.log&quot;).<br><br>I \
suspect this is with the latest xserver 21.1? I wonder if commit   a9552868 [2] could \
possibly be related, maybe try with xserver 1.20 to see if it has the same \
issue?<br><br><div>Meanwhile, as a workaround, you may want to disable glamor in your \
xorg.conf, it will be slower but it shouldn&#39;t crash.<span \
class="sew5ozbx428uod3"></span><span \
class="sew5ozbx428uod3"></span></div><br>HTH<br>Cheers<br>Olivier<br><br>[1] <a \
href="https://gitlab.freedesktop.org/xorg/xserver/-/issues">https://gitlab.freedesktop.org/xorg/xserver/-/issues</a><br><div>[2] \
<a href="https://gitlab.freedesktop.org/xorg/xserver/-/commit/a95528686">https://gitlab.freedesktop.org/xorg/xserver/-/commit/a95528686</a> \
</div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic