Asymptote binary shouldn't be configured with --enable-offscreen
Description:
I was asked to forward this issue from https://github.com/vectorgraphics/asymptote/issues/392, since account registration is currently disabled. The current Asymptote binary distributed is apparently configured with --enable-offscreen
, which "is only intended for headless servers with no GPU card" and "If Arch Linux is accidentally distributing a headless version of Asymptote that is a mistake that should be reported".
Additional info:
- package version(s): 2.86git
- config and/or log files: see below.
- link to upstream bug report, if any: https://github.com/vectorgraphics/asymptote/issues/392
Steps to reproduce:
$ cat offscreen.asy
settings.outformat="png";
settings.render = 16;
import three;
size(1cm,0);
draw((0, 0, 0) -- (1, 1, 1), linewidth(2pt));
$ asy offscreen.asy
Error initializing offscreen context: Depth=0
$ asy --version
Asymptote version 2.86git [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
ENABLED OPTIONS:
V3D 3D vector graphics output
WebGL 3D HTML rendering
OpenGL 3D OSMesa offscreen rendering
SSBO GLSL shader storage buffer objects
GSL GNU Scientific Library (special functions)
FFTW3 Fast Fourier transforms
XDR External Data Representation (portable binary file format for V3D)
CURL URL support
LSP Language Server Protocol
Readline Interactive history and editing
Sigsegv Distinguish stack overflows from segmentation faults
GC Boehm garbage collector
threads Render OpenGL in separate thread
DISABLED OPTIONS:
Eigen Eigenvalue library
Using asymptote-git
from the AUR with the default PKGBUILD does indeed resolve the issue:
$ asy --version
Asymptote version 2.87-35 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
ENABLED OPTIONS:
V3D 3D vector graphics output
WebGL 3D HTML rendering
OpenGL 3D OpenGL rendering
SSBO GLSL shader storage buffer objects
GSL GNU Scientific Library (special functions)
FFTW3 Fast Fourier transforms
XDR External Data Representation (portable binary file format for V3D)
CURL URL support
LSP Language Server Protocol
Readline Interactive history and editing
Sigsegv Distinguish stack overflows from segmentation faults
GC Boehm garbage collector
threads Render OpenGL in separate thread
DISABLED OPTIONS:
Eigen Eigenvalue library
$ asy offscreen.asy
warning [version]: using possibly incompatible version 2.85 of plain.asy