asymptote with gs 9.24 fails #73
Comments
|
Can you try out the latest git source? The issue likely has already been addressed |
|
I'm using 2.47 already, which appears to have the changes in 28bc9c7 applied. I tried the latest git source and it fails in exactly the same manner as originally reported. |
|
From the error message, it looks like a gs installation problem (Could not find default_rgb.icc). asy -V doc/Hobbycontrol -f pdf -gs=/usr/local/src/ghostscript-9.24-linux-x86_64/gs-924-linux-x86_64 -noprc -render=0 -vv (./Hobbycontrol_.tex |
|
@l2dy: I was bitten by the same problem on MacPorts. Not saying it's asy's fault, but apparently there's a GS packaging issue which must have hit everyone. |
|
To be fair, I didn't install gs-9.24 from source and only tested the binary. /usr/share/ghostscript/iccprofiles/default_rgb.icc |
|
I switched back to 9.23 and it works with that one for me as well. I checked the list of files and apart from some trivial differences there is no major difference between the list of files in the working and broken version, in particular the ICC profiles didn't change at all. I suspect there's some internal setting somewhere that prevents those files from being found by Anyway, I agree that this has probably nothing to do with asymptote. |
|
Though I don't know why, the problem can be avoided by reverting the following hunk of a commit in ghostscript: And something wrong in ghostscript. |
|
Opened ghostscript bug here: https://bugs.ghostscript.com/show_bug.cgi?id=699736 |
|
Thank you, @spotrh ! |
|
I can confirm that applying the fixes to ghostscript in these commits resolves the issue: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c8c01f8c4164 Thanks to everyone! |
|
Folks, can someone explain for the stupid how I can fix this on Windows for TeXLive 2018 where these files are somehow part of asymptote?! |
|
After a mail to the TeXLive mailing list the package has been updated. |
Fedora 29/30 have ghostscript 9.24. I get these errors when that version is present:
../asy -dir ../base -config "" -render=0 -h 2>&1 | grep -iv Asymptote > options
../asy -dir ../base -config "" -render=0 -f pdf -noprc Hobbycontrol.asy
./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_rgb.icc
| ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
Error: /rangecheck in .installpagedevice
Operand stack:
--nostringval-- --dict:206/212(ro)(L)-- --nostringval-- --nostringval-- false
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop 1936 1 3 %GPL Ghostscript 9.24: Unrecoverable error, exit code 1
oparray_pop --nostringval-- 1920 1 3 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:975/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
../base/plain_shipout.asy: 102.11: runtime: shipout failed
make: *** [Makefile:42: Hobbycontrol.pdf] Error 1
Downgrading to gs 9.23 makes this error go away, so I suspect that something that asymptote is doing in its calls to gs is no longer permitted.
The text was updated successfully, but these errors were encountered: