TechEnclave
New Tech Posts
New Market Posts
TechEnclave RuleBook



Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 14 Jan 10, 11:45 AM
raksrules's Avatar
Explosive Member
 
Join Date: Aug 2007
Location: Mumbai <-> Pune
Age: 26
Posts: 2,228
raksrules is highly Admirable raksrules is highly Admirable raksrules is highly Admirable raksrules is highly Admirable raksrules is highly Admirable raksrules is highly Admirable
Default Error in using GS (ghostscript) command in Unix

I am sometimes facing issues while using the gs command in Unix.
PFB the explanation of the issue

1. Assume we are using the following command to merge few .out files to make a single .pdf file

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile= ABCD.pdf A.out B.out C.out D.out

2. This command ends up in error as follows (which makes no sense to us)

ERROR: /rangecheck in --cvrs--
Operand stack:
--dict:7/7(L)-- F1 9.0 --dict:6/6(L)-- --dict:6/6(L)-- OUMRXC+Albany WT J --dict:10/12(ro)(G)-- --nostringval-- --dict:7/7(L)-- --dict:7/7(L)-- 1445 --dict:7/7(L)-- --nostringval-- FontMatrix --nostringval-- FontBBox --nostringval-- FontName -2147483647 16 (\000\000\000\000\000\000\000\000)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1119/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200(L)-- --dict:107/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:25/32(L)-- --dict:33/50(ro)(G)-- --dict:24/40(L)--
Current allocation mode is local
ESP Ghostscript 815.02: Unrecoverable error, exit code 1


3. Now the file ABCD.pdf has been created with size of few Kbs. It was found that the file ABCD.pdf is a merged output of files A.out and B.out which meant that there is some issue with the file C.out

4. So now we run the command again with C.out removed from the list as follows and it works without any error and we also get the output ABCD.pdf as merged from A.out B.out and D.out

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile= ABCD.pdf A.out B.out D.out

5. On opening the C.out file looks just fine like others but we really don’t understand what problem is there with this file causing the command to fail. Even the attributes of the file C.out is same as others.
6. Bottom line is that having the file C.out in the list anywhere causes this error.

Any pointers in this regard will be appreciated.
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search TechEnclave
Register on TechEnclave to Remove the ads and the sidebar
Have some Fun!


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2