[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1012778: asymptote: Asymptote can't render static images



Package: asymptote
Version: 2.83+ds-1+b1

Dear Maintainer,

I tried this simple example from the manual in a test3D.asy file:

   import three;
   currentprojection=orthographic(5,4,2,center=true);
   size(5cm);
   size3(3cm,5cm,8cm);
   draw(unitbox);
   dot(unitbox,red);
   label("$O$",(0,0,0),NW);
   label("(1,0,0)",(1,0,0),S);
   label("(0,1,0)",(0,1,0),E);
   label("(0,0,1)",(0,0,1),Z);


>From a bash shell, I launched:

    asy test3D.asy


The file didn't compile correctly and I obtained this message:

    X Error of failed request:  GLXBadFBConfig
      Major opcode of failed request:  152 (GLX)
      Minor opcode of failed request:  0 ()
      Serial number of failed request:  46
      Current serial number in output stream:  46


I tried your proposal with:

    export MESA_GL_VERSION_OVERRIDE=4.5
    asy test3D.asy

Then the asy file didn't compile correctly and I obtained the following message:


    0:1(10): error: GLSL 3.00 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 1.00 ES, and 3.00 ES
    
    GL Compile error
    1: #version 300
    2: #extension GL_ARB_uniform_buffer_object : enable
    3: #define MATERIAL
    4: #define ORTHOGRAPHIC
    5: #define Nlights 1
    6: #define Nmaterials 48
    7: #define WIDTH
    8: in vec3 position;
    9: 
    10: #ifdef NORMAL
    11: 
    12: #ifndef ORTHOGRAPHIC
    13: uniform mat4 viewMat;
    14: out vec3 ViewPosition;
    15: #endif
    16: 
    17: uniform mat3 normMat;
    18: in vec3 normal;
    19: out vec3 Normal;
    20: 
    21: #endif
    22: 
    23: #ifdef MATERIAL
    24: in int material;
    25: flat out int materialIndex;
    26: #endif
    27: 
    28: #ifdef COLOR
    29: in vec4 color;
    30: out vec4 Color;
    31: #endif
    32: 
    33: #ifdef WIDTH
    34: in float width;
    35: #endif
    36: 
    37: uniform mat4 projViewMat;
    38: 
    39: void main()
    40: {
    41:   vec4 v=vec4(position,1.0);
    42:   gl_Position=projViewMat*v;
    43: #ifdef NORMAL
    44: #ifndef ORTHOGRAPHIC
    45:   ViewPosition=(viewMat*v).xyz;
    46: #endif
    47:   Normal=normalize(normal*normMat);
    48: #endif
    49: 
    50: #ifdef COLOR
    51:   Color=color;
    52: #endif
    53: 
    54: #ifdef WIDTH
    55:   gl_PointSize=width;
    56: #endif
    57: 
    58: #ifdef MATERIAL
    59:   materialIndex=material;
    60: #endif
    61: }


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-3-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages asymptote depends on:
ii  ghostscript                      10.0.0~dfsg-6
ii  imagemagick                      8:6.9.11.60+dfsg-1.3+b4
ii  imagemagick-6.q16 [imagemagick]  8:6.9.11.60+dfsg-1.3+b4
ii  libboost-filesystem1.74.0        1.74.0-17
ii  libc6                            2.36-4
ii  libcurl3-gnutls                  7.86.0-1
ii  libfftw3-double3                 3.3.8-2
ii  libgc1                           1:8.2.2-3
ii  libgcc-s1                        12.2.0-9
ii  libgl1                           1.5.0-1
ii  libglew2.2                       2.2.0-4+b1
ii  libglut3.12                      3.4.0-1
ii  libglx0                          1.5.0-1
ii  libgsl27                         2.7.1+dfsg-3+b1
ii  libreadline8                     8.2-1.1
ii  libsigsegv2                      2.14-1
ii  libstdc++6                       12.2.0-9
ii  libtinfo6                        6.3+20220423-2
ii  libtirpc3                        1.3.3+ds-1
ii  python3                          3.10.6-1
ii  tex-common                       6.18
ii  texlive-binaries                 2022.20220321.62855-4+b1
ii  texlive-latex-base               2022.20220923-2
ii  texlive-plain-generic            2022.20220923-3
ii  texlive-pstricks                 2022.20220923-3
ii  xdg-utils                        1.1.3-4.1
ii  zlib1g                           1:1.2.11.dfsg-4.1

Versions of packages asymptote recommends:
ii  asymptote-doc  2.83+ds-1

Versions of packages asymptote suggests:
ii  asymptote-x11  2.83+ds-1

-- no debconf information


Reply to: