Bug#1025049: asymptote: Error in shipout3
Am 20.01.2023 um 13:06 teilte Picca Frédéric-Emmanuel mit: Dear Frédéric, as I'm not able to reproduce the issue (due to different software constellation on the Desktop): would you be so kind to forward that issue to upstream by your own? The upstream tracker is on https://github.com/vectorgraphics/asymptote/issues I case of questions regarding the Debian package feel free to contact us. Many thanks, Hilmar Here the backtrace generated after the crash, it seems that there is an Arithmetic Exception. the gl parameter at line 23 seems strange #23 0x5591db410072 in gl::glrender (prefix="", pic=0x2, format=, width=5.3049894774131808e-315, height=0, angle=2.3978552443441112e-312, zoom=5.3982412455708344e-315, m=..., M=..., shift=..., margin=..., t=0x7ffc641f9990, background=0x5591db748b90, nlightsin=3, lights=0x7f31c6fb10e8, diffuse=0x7f31c6fb1070, specular=0x7f31c6fb1000, view=false, oldpid=0) at ./glrender.cc:2207 -- sigfault
Bug#1025049: asymptote: Error in shipout3
Package: asymptote Version: 2.83+ds-1+b1 Followup-For: Bug #1025049 X-Debbugs-Cc: pi...@debian.org Dear Maintainer, Here the backtrace generated after the crash, it seems that there is an Arithmetic Exception. the gl parameter at line 23 seems strange #23 0x5591db410072 in gl::glrender (prefix="", pic=0x2, format=, width=5.3049894774131808e-315, height=0, angle=2.3978552443441112e-312, zoom=5.3982412455708344e-315, m=..., M=..., shift=..., margin=..., t=0x7ffc641f9990, background=0x5591db748b90, nlightsin=3, lights=0x7f31c6fb10e8, diffuse=0x7f31c6fb1070, specular=0x7f31c6fb1000, view=false, oldpid=0) at ./glrender.cc:2207 here the full stack Core was generated by `/usr/bin/asy -config -d -render=4 -f png -o 3S+1D.png 3S+1D.asy'. Program terminated with signal SIGFPE, Arithmetic exception. #0 0x7f31c46d42b2 in fs_reg_alloc::set_spill_costs (this=this@entry=0x7ffc641f7f20) at ../src/intel/compiler/brw_fs_reg_allocate.cpp:1077 Download failed: Argument invalide. Continuing without source file ./build/../src/intel/compiler/brw_fs_reg_allocate.cpp. 1077../src/intel/compiler/brw_fs_reg_allocate.cpp: Aucun fichier ou dossier de ce type. [Current thread is 1 (Thread 0x7f31ca49de40 (LWP 39687))] (gdb) bt #0 0x7f31c46d42b2 in fs_reg_alloc::set_spill_costs (this=this@entry=0x7ffc641f7f20) at ../src/intel/compiler/brw_fs_reg_allocate.cpp:1077 #1 0x7f31c46d6f14 in fs_reg_alloc::choose_spill_reg (this=0x7ffc641f7f20) at ../src/intel/compiler/brw_fs_reg_allocate.cpp:1088 #2 fs_reg_alloc::assign_regs (this=this@entry=0x7ffc641f7f20, allow_spilling=allow_spilling@entry=true, spill_all=spill_all@entry=false) at ../src/intel/compiler/brw_fs_reg_allocate.cpp:1331 #3 0x7f31c46d725b in fs_visitor::assign_regs (this=this@entry=0x5591dc668370, allow_spilling=allow_spilling@entry=true, spill_all=spill_all@entry=false) at ../src/intel/compiler/brw_fs_reg_allocate.cpp:1381 #4 0x7f31c469c890 in fs_visitor::allocate_registers (this=0x5591dc668370, allow_spilling=true) at ../src/intel/compiler/brw_fs.cpp:6493 #5 0x7f31c46a1d13 in fs_visitor::run_cs (this=0x5591dc668370, allow_spilling=) at ../src/intel/compiler/brw_fs.cpp:6942 #6 0x7f31c46a2057 in brw_compile_cs (compiler=compiler@entry=0x5591db7fa830, mem_ctx=mem_ctx@entry=0x5591dd0ffc30, params=params@entry=0x7ffc641f8270) at ../src/intel/compiler/brw_fs.cpp:7748 #7 0x7f31c4820bb4 in crocus_compile_cs (ice=ice@entry=0x5591db767a30, ish=ish@entry=0x5591dbf17620, key=key@entry=0x7ffc641f83a0) at ../src/gallium/drivers/crocus/crocus_program.c:2573 #8 0x7f31c4820f7b in crocus_create_compute_state (ctx=0x5591db767a30, state=) at ../src/gallium/drivers/crocus/crocus_program.c:2936 #9 0x7f31c3982dea in st_create_nir_shader (st=st@entry=0x5591db83cc40, state=state@entry=0x7ffc641f85e0) at ../src/mesa/state_tracker/st_program.c:559 #10 0x7f31c398319d in st_create_common_variant (st=st@entry=0x5591db83cc40, prog=prog@entry=0x5591dbf3e890, key=key@entry=0x7ffc641f8980) at ../src/mesa/state_tracker/st_program.c:754 #11 0x7f31c3983a94 in st_get_common_variant (st=st@entry=0x5591db83cc40, prog=prog@entry=0x5591dbf3e890, key=key@entry=0x7ffc641f8980) at ../src/mesa/state_tracker/st_program.c:807 #12 0x7f31c3984082 in st_precompile_shader_variant (prog=0x5591dbf3e890, st=0x5591db83cc40) at ../src/mesa/state_tracker/st_program.c:1273 #13 st_finalize_program (st=0x5591db83cc40, prog=0x5591dbf3e890) at ../src/mesa/state_tracker/st_program.c:1334 #14 0x7f31c3b40399 in st_link_nir (ctx=0x7f31bc589010, shader_program=) at ../src/mesa/state_tracker/st_glsl_to_nir.cpp:940 #15 0x7f31c3b3d4e5 in link_shader (prog=, ctx=0x7f31bc589010) at ../src/mesa/state_tracker/st_glsl_to_ir.cpp:97 #16 st_link_shader (ctx=0x7f31bc589010, prog=) at ../src/mesa/state_tracker/st_glsl_to_ir.cpp:112 #17 0x7f31c3b2bb5c in _mesa_glsl_link_shader (ctx=ctx@entry=0x7f31bc589010, prog=prog@entry=0x5591dbf3e1a0) at ../src/mesa/program/link_program.cpp:91 #18 0x7f31c3b032bb in link_program (no_error=, shProg=, ctx=) at ../src/mesa/main/shaderapi.c:1332 #19 link_program_error (ctx=0x7f31bc589010, shProg=0x5591dbf3e1a0) at ../src/mesa/main/shaderapi.c:1443 #20 0x5591db4139e1 in compileAndLinkShader (shaders=std::vector of length 1622480, capacity 1958168 = {...}, defineflags=, ssbo=false, interlock=144, compute=65) at ./shaders.cc:40 #21 0x5591db40a698 in gl::initComputeShaders () at ./glrender.cc:575 #22 0x5591db40c33f in gl::initShaders () at ./glrender.cc:640 #23 0x5591db410072 in gl::glrender (prefix="", pic=0x2, format=, width=5.3049894774131808e-315, height=0, angle=2.3978552443441112e-312, zoom=5.3982412455708344e-315, m=..., M=..., shift=..., margin=..., t=0x7ffc641f9990, background=0x5591db748b90, nlightsin=3, lights=0x7f31c6fb10e8, diffuse=0x7f31c6fb1070, specular=0x7f31c6fb1000, view=false, oldpid=0) at ./glrender.cc:2207 #24 0x5591db160a6f in camp::picture::shi
Bug#1025049: asymptote: Error in shipout3
Am 30.11.2022 um 07:48 teilte picca mit: Hello, I imagine that the zzz1.asy file is my B_b3_y.asy, right ? Yes, correct. if so, something must be different between your environment and mine. I use the latest unstable with ghostscript 10 and you ? Some here. Pure Debian unstable, w/ gs 10 installed. hille@sid-amd64:~$ dpkg -l ghost* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ NameVersion Architecture Description +++-===-=--> ii ghostscript 10.0.0~dfsg-7 amd64interpreter for the PostScri> ii ghostscript-x:amd64 10.0.0~dfsg-7 amd64interpreter for the PostScri> Is it possible to have a more informative debug message than this one ? Does [1] help you somehow? H. [1] https://tex.stackexchange.com/questions/592394/using-asymptote-for-3d-plots -- sigfault
Bug#1025049: asymptote: Error in shipout3
Le 2022-11-29 23:46, Hilmar Preuße a écrit : Am 29.11.2022 um 10:02 teilte Picca Frédéric-Emmanuel mit: Hello, I imagine that the zzz1.asy file is my B_b3_y.asy, right ? if so, something must be different between your environment and mine. I use the latest unstable with gostscript 10 and you ? Is it possible to have a more informative debug message than this one ? shipout3(prefix,f,preview ? nativeformat() : format, ^ thanks for your help. Frederic
Bug#1025049: asymptote: Error in shipout3
Am 29.11.2022 um 10:02 teilte Picca Frédéric-Emmanuel mit: Hi, sorry I'm failing to reproduce the issue. For me that command line works: hille@sid-amd64:~/devel/TeXLive$ asy -config "" -d -render=4 -f png -o zzz1.png zzz1.asy hille@sid-amd64:~/devel/TeXLive$ ls -l zzz1.* -rw-r--r-- 1 hille hille 812 Nov 29 21:55 zzz1.asy -rw-r--r-- 1 hille hille 16444 Nov 29 23:42 zzz1.eps -rw-r--r-- 1 hille hille 16663 Nov 29 23:45 zzz1.png H. while working on the hkl package I found that asy doe snot compile anymore my files. /usr/bin/asy -config "" -d -render=4 -f png -o 3S+1D.png 3S+1D.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_b3_y.png B_b3_y.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_a.png B_a.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_b.png B_b.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ -- sigfault
Bug#1025049: asymptote: Error in shipout3
Package: asymptote Version: 2.83+ds-1+b1 Severity: normal X-Debbugs-Cc: pi...@debian.org Dear Maintainer, while working on the hkl package I found that asy doe snot compile anymore my files. /usr/bin/asy -config "" -d -render=4 -f png -o 3S+1D.png 3S+1D.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_b3_y.png B_b3_y.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_a.png B_a.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ /usr/share/asymptote/three.asy: 2896.13: runtime: /usr/bin/asy -config "" -d -render=4 -f png -o B_b.png B_b.asy shipout3(prefix,f,preview ? nativeformat() : format, ^ ... on bullseye, I do not have this issue. So I attached a file in order to reproduce this error. Cheers Frédéric -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.0.0-4-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-7 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.01.74.0-17+b2 ii libc62.36-6 ii libcurl3-gnutls 7.86.0-2 ii libfftw3-double3 3.3.8-2 ii libgc1 1:8.2.2-3 ii libgcc-s112.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.2 ii libsigsegv2 2.14-1 ii libstdc++6 12.2.0-9 ii libtinfo66.3+20220423-2 ii libtirpc31.3.3+ds-1 ii python3 3.10.6-3 ii tex-common 6.18 ii texlive-binaries 2022.20220321.62855-4+b1 ii texlive-latex-base 2022.20221123-1 ii texlive-plain-generic2022.20221123-1 ii texlive-pstricks 2022.20221123-1 ii xdg-utils1.1.3-4.1 ii zlib1g 1:1.2.13.dfsg-1 Versions of packages asymptote recommends: ii asymptote-doc 2.83+ds-1 Versions of packages asymptote suggests: pn asymptote-x11 -- no debconf information import three; currentprojection=orthographic(1,0,0); currentlight=White; size(6cm); triple b1 = (1, 0, 0); triple b2 = (.31, .95, 0); triple b3 = (.4, .5, 0.76); triple a1 = cross(b2, b3); triple a2 = cross(b3, b1); triple a3 = cross(b1, b2); // orthonormal coordinates draw(Label("$\vec{x}$", 1, S), O--(2*X), gray, Arrow3()); draw(Label("$\vec{y}$", 1), O--(2*Y), gray, Arrow3()); draw(Label("$\vec{z}$", 1), O--(2*Z), gray, Arrow3()); // real space draw(Label("$\vec{b_1}$", 1, E), O--b1, blue, Arrow3()); draw(Label("$\vec{b_2}$", 1), O--b2, red, Arrow3()); draw(Label("$\vec{b_3}$", 1), O--b3, green, Arrow3()); // reciprocal space draw(Label("$\vec{a_1}$", 1), O--a1, cyan, Arrow3()); draw(Label("$\vec{b_2}$", 1), O--a2, magenta, Arrow3()); draw(Label("$\vec{c_3}$", 1), O--a3, yellow, Arrow3());