Bug 699736 - 9.24 prevents asymptote from working properly
Summary: 9.24 prevents asymptote from working properly
Status: RESOLVED DUPLICATE of bug 699722
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-06 13:25 UTC by tcallawa
Modified: 2020-10-16 22:01 UTC (History)
3 users (show)

See Also:
Customer:
Word Size: ---


Attachments
A test script: converting from an eps to pdfwrite (703 bytes, text/x-sh)
2018-09-06 13:44 UTC, Lemures Lemniscati
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tcallawa 2018-09-06 13:25:11 UTC
Fedora 29/30 has moved to Ghostscript 9.24, and asymptote no longer works properly. When trying to run "make all", this is the output:

../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

Reverting to the 9.23 packages resolves this issue. Additionally, I was able to confirm that the iccprofiles are present (and world readable) in /usr/share/ghostscript/iccprofiles/

I opened a bug against asymptote, where someone else discovered that reverting a specific commit in gsicc_manage.cc resolves this issue:

https://github.com/vectorgraphics/asymptote/issues/73#issuecomment-419074351
Comment 1 Lemures Lemniscati 2018-09-06 13:44:11 UTC
Created attachment 15572 [details]
A test script: converting from an eps to pdfwrite
Comment 2 Chris Liddell (chrisl) 2018-09-06 15:55:06 UTC

*** This bug has been marked as a duplicate of bug 699722 ***