Summary: | tiffsep crashes in Version 9 (missing lab.icc) | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | ademmler <news> |
Component: | General | Assignee: | Alex Cherepanov <alex> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | henry.stiles |
Priority: | P4 | ||
Version: | 0.00 | ||
Hardware: | Macintosh | ||
OS: | MacOS X | ||
Customer: | Word Size: | --- | |
Attachments: | testpage in pdf format |
Description
ademmler
2010-12-29 09:07:19 UTC
Please attach your test file. With another test file, (examples/colorcir.ps), the tiffsep device works. Note, this may have been fixed. Created attachment 7095 [details] testpage in pdf format Ray Johnston <ray.johnston@artifex.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|support@artifex.com |michael.vrhel@artifex.com --- Comment #1 from Ray Johnston <ray.johnston@artifex.com> 2011-01-06 16:21:07 UTC --- Please attach your test file. With another test file, (examples/colorcir.ps), the tiffsep device works. Note, this may have been fixed. I did the same test with colorcirc.ps and get the same error. May it is a problem with the build coming from macports . . . sws:Desktop ademmler$ gs -sDEVICE=tiffsep -r75 -sICCProfilesDir=/opt/local/share/ghostscript/9.00/iccprofiles/ -o test colorcir.ps GPL Ghostscript 9.00 (2010-09-14) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:706: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:805: set_lab_icc(): cannot find default lab icc profile sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:706: gsicc_open_search(): Could not find %rom%iccprofiles/default_rgb.icc | ./base/gsicc_manage.c:842: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .setdistillerparams Operand stack: --nostringval-- --nostringval-- --nostringval-- --nostringval-- false --nostringval-- PreserveHalftoneInfo false Binding Left DefaultRenderingIntent Default PreserveEPSInfo true GrayImageDownsampleThreshold 1.5 ParseDSCComments true AntiAliasGrayImages false ColorImageDepth -1 EmitDSCWarnings false MonoImageDepth -1 PreserveCopyPage true AutoPositionEPSFiles true AutoRotatePages PageByPage ConvertImagesToIndexed true .NeverEmbed --nostringval-- GrayImageDict --nostringval-- Optimize false AntiAliasColorImages false TransferFunctionInfo Preserve CalRGBProfile None ColorConversionStrategy LeaveColorUnchanged DownsampleMonoImages false MaxSubsetPct 100 PDFXBleedBoxToTrimBoxOffset --nostringval-- AutoFilterGrayImages true CompressPages true GrayACSImageDict --nostringval-- GrayImageDepth -1 OffOptimizations 0 .AlwaysEmbed --nostringval-- SubsetFonts true CalGrayProfile None ColorACSImageDict --nostringval-- DownsampleGrayImages false UCRandBGInfo Preserve LockDistillerParams false PDFXSetBleedBoxToMediaBox true AutoFilterColorImages true ColorImageFilter DCTEncode EmbedAllFonts true EncodeMonoImages true MonoImageFilter CCITTFaxEncode CalCMYKProfile None DownsampleColorImages false PreserveOverprintSettings true ImageMemory 524288 PDFXTrimBoxToMediaBoxOffset --nostringval-- ASCII85EncodePages false UsePrologue false ColorImageDownsampleThreshold 1.5 DoThumbnails false EncodeGrayImages true MonoImageDownsampleThreshold 1.5 sRGBProfile None CannotEmbedFontPolicy Warning DetectBlends true PreserveOPIComments true GrayImageFilter DCTEncode ParseDSCCommentsForDocInfo true AntiAliasMonoImages false UseFlateCompression true ColorImageDict --nostringval-- OPM 1 CreateJobTicket false EncodeColorImages true MonoImageDict --nostringval-- sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:706: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:805: set_lab_icc(): cannot find default lab icc profile This works for me. I would suggest updating to the trunk. There were a few issues with the original 9.0 release that have been fixed with respect to paths and finding the profiles. hi GS developers, macports now have 9.02 in the repos, but the problem descripted here still exists. thx Alexander ## from my test Done RIP: GPL Ghostscript 9.02 (2011-03-30) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:819: set_lab_icc(): cannot find default lab icc profile sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find %rom%iccprofiles/default_rgb.icc | ./base/gsicc_manage.c:881: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .setdistillerparams Operand stack: --nostringval-- --nostringval-- --nostringval-- --nostringval-- false --nostringval-- OffOptimizations 0 .AlwaysEmbed --nostringval-- SubsetFonts true CalGrayProfile None ColorACSImageDict --nostringval-- DownsampleGrayImages false UCRandBGInfo Preserve LockDistillerParams false PDFXSetBleedBoxToMediaBox true AutoFilterColorImages true ColorImageFilter DCTEncode EmbedAllFonts true EncodeMonoImages true MonoImageFilter CCITTFaxEncode CalCMYKProfile None DownsampleColorImages false PreserveOverprintSettings true ImageMemory 524288 PDFXTrimBoxToMediaBoxOffset --nostringval-- ASCII85EncodePages false UsePrologue false ColorImageDownsampleThreshold 1.5 DoThumbnails false EncodeGrayImages true MonoImageDownsampleThreshold 1.5 sRGBProfile None CannotEmbedFontPolicy Warning DetectBlends true PreserveOPIComments true GrayImageFilter DCTEncode ParseDSCCommentsForDocInfo true AntiAliasMonoImages false UseFlateCompression true ColorImageDict --nostringval-- CreateJobTicket false EncodeColorImages true MonoImageDict --nostringval-- PreserveHalftoneInfo false Binding Left DefaultRenderingIntent Default PreserveEPSInfo true GrayImageDownsampleThreshold 1.5 ParseDSCComments true AntiAliasGrayImages false OPM 1 ColorImageDepth -1 EmitDSCWarnings false MonoImageDepth -1 PreserveCopyPage true AutoPositionEPSFiles true AutoRotatePages PageByPage ConvertImagesToIndexed true .NeverEmbed --nostringval-- GrayImageDict --nostringval-- Optimize false AntiAliasColorImages false TransferFunctionInfo Preserve CalRGBProfile None ColorConversionStrategy LeaveColorUnchanged DownsampleMonoImages false MaxSubsetPct 100 PDFXBleedBoxToTrimBoxOffset --nostringval-- AutoFilterGrayImages true CompressPages true GrayACSImageDict --nostringval-- GrayImageDepth -1 sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:819: set_lab_icc(): cannot find default lab icc profile Assigning to alex for verification, we thought this was fixed. You stated that your -h output showed the first Search Path was: /opt/local/share/ghostscript/9.00/Resource/Init Ghostscript 9.00 and later requires that either you explicitly set the directory for the ICC profiles using -sICCProfilesDir= or that the 'iccprofiles' directory is a sibling to the first path on the search path list. Thus the ICC profiles are expected to be in: /opt/local/share/ghostscript/9.00/iccprofiles Please 'ls' this directory on you system and confirm that it is installed and contains the 'lab.icc' file. # Please not, as I wrote before I have installed Version 9.02 now (prior it was 9.00). Therefore here the actual searchpaths from "gs-h": Search path: /opt/local/share/ghostscript/9.02/Resource/Init : /opt/local/share/ghostscript/9.02/lib : /opt/local/share/ghostscript/9.02/Resource/Font : /opt/local/share/ghostscript/fonts : /opt/local/share/fonts/default/ghostscript : /opt/local/share/fonts/default/Type1 : /opt/local/share/fonts/default/TrueType : /usr/lib/DPS/outline/base : /usr/openwin/lib/X11/fonts/Type1 : /usr/openwin/lib/X11/fonts/TrueType For more information, see /opt/local/share/ghostscript/9.02/doc/Use.htm. Please report bugs to bugs.ghostscript.com. # As far as I can see all profiles are in place. Here is the listing for the command "ls -l /opt/local/share/ghostscript/9.02/iccprofiles/": total 1168 -rw-rw-rw- 2 root admin 557168 18 Apr 23:28 default_cmyk.icc -rw-rw-rw- 2 root admin 394 18 Apr 23:28 default_gray.icc -rw-rw-rw- 2 root admin 3144 18 Apr 23:28 default_rgb.icc -rw-rw-rw- 2 root admin 1972 18 Apr 23:28 lab.icc -rw-rw-rw- 2 root admin 5340 18 Apr 23:28 ps_cmyk.icc -rw-rw-rw- 2 root admin 416 18 Apr 23:28 ps_gray.icc -rw-rw-rw- 2 root admin 564 18 Apr 23:28 ps_rgb.icc -rw-rw-rw- 2 root admin 394 18 Apr 23:28 sgray.icc -rw-rw-rw- 2 root admin 3144 18 Apr 23:28 srgb.icc #When I specify the -sICCProfilesDir=GS fails also.I have tried twice once with a trailing / once without. #sws:~ ademmler$ gs -sDEVICE=tiffsep -r75 -sICCProfilesDir=/opt/local/share/ghostscript/9.02/iccprofiles -o test /opt/local/share/ghostscript/9.02/examples/colorcir.ps GPL Ghostscript 9.02 (2011-03-30) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find /opt/local/share/ghostscript/9.02/iccprofilesdefault_cmyk.icc | ./base/gsicc_manage.c:881: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .putdeviceprops Operand stack: --nostringval-- --nostringval-- true --nostringval-- HWResolution --nostringval-- PageSize --nostringval-- sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find default_gray.icc | ./psi/zusparam.c:599: set_default_gray_icc(): cannot find default gray icc profile #sws:~ ademmler$ gs -sDEVICE=tiffsep -r75 -sICCProfilesDir=/opt/local/share/ghostscript/9.02/iccprofiles/ -o test /opt/local/share/ghostscript/9.02/examples/colorcir.ps GPL Ghostscript 9.02 (2011-03-30) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:819: set_lab_icc(): cannot find default lab icc profile sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find %rom%iccprofiles/default_rgb.icc | ./base/gsicc_manage.c:881: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .setdistillerparams Operand stack: --nostringval-- --nostringval-- --nostringval-- --nostringval-- false --nostringval-- Optimize false AntiAliasColorImages false TransferFunctionInfo Preserve CalRGBProfile None ColorConversionStrategy LeaveColorUnchanged DownsampleMonoImages false MaxSubsetPct 100 PDFXBleedBoxToTrimBoxOffset --nostringval-- AutoFilterGrayImages true CompressPages true GrayACSImageDict --nostringval-- GrayImageDepth -1 OffOptimizations 0 .AlwaysEmbed --nostringval-- OPM 1 SubsetFonts true CalGrayProfile None ColorACSImageDict --nostringval-- DownsampleGrayImages false UCRandBGInfo Preserve LockDistillerParams false PDFXSetBleedBoxToMediaBox true AutoFilterColorImages true ColorImageFilter DCTEncode EmbedAllFonts true EncodeMonoImages true MonoImageFilter CCITTFaxEncode CalCMYKProfile None DownsampleColorImages false PreserveOverprintSettings true ImageMemory 524288 PDFXTrimBoxToMediaBoxOffset --nostringval-- ASCII85EncodePages false UsePrologue false ColorImageDownsampleThreshold 1.5 DoThumbnails false EncodeGrayImages true MonoImageDownsampleThreshold 1.5 sRGBProfile None CannotEmbedFontPolicy Warning DetectBlends true PreserveOPIComments true GrayImageFilter DCTEncode ParseDSCCommentsForDocInfo true AntiAliasMonoImages false UseFlateCompression true ColorImageDict --nostringval-- CreateJobTicket false EncodeColorImages true MonoImageDict --nostringval-- PreserveHalftoneInfo false Binding Left DefaultRenderingIntent Default PreserveEPSInfo true GrayImageDownsampleThreshold 1.5 ParseDSCComments true AntiAliasGrayImages false ColorImageDepth -1 EmitDSCWarnings false MonoImageDepth -1 PreserveCopyPage true AutoPositionEPSFiles true AutoRotatePages PageByPage ConvertImagesToIndexed true .NeverEmbed --nostringval-- GrayImageDict --nostringval-- sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:709: gsicc_open_search(): Could not find lab.icc | ./psi/zusparam.c:819: set_lab_icc(): cannot find default lab icc profile #One extra note. I have tried other tiffdevices, which are working. So for me it seems to be a problem only with tiffsep and tiffsep1 devices . . . may you can confirm this. I hope you will find some solution. I wont hesitate to use "-c" option to set some postscript option to overcome this problem soon. thx in advance Alex This problem has been already fixed in the current development version by the following commit. http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=4ddefa258ee17e359429c901ef8a0a8f3b234083 The problem was not limited to Mac but any platform that doesn't compile initialization files into the executable. Hi Alex and Team, thx for working on this and all your efforts. So I am looking forward for the next release. Alexander |