stack overflow with large PS file 
Author Message
 stack overflow with large PS file

Hello!

i want to print a very large ps file (>10mb)

Error: /stackoverflow in -file-
Operand stack:
   --nostringval--
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
   %.runexec2   --nostringval--   --nostringval--   --nostringval--   2
   %%stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1037/1476(ro)(G)--   --dict:0/20(G)--   --dict:68/200(L)--   --dict:257/302(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 6053406
GNU Ghostscript 6.53: Unrecoverable error, exit code 1

what have i done:

i have included many eps files into this ps file, and for each eps file
i have written a "wrapper" around it in the following form:

/DrawEPS_XYZ123 {
...
data from eps file...
...

Quote:
} bind def

and call DrawEPS_XYZ123 when the EPS should occour on the page(s)

i have done this because it can be that the same eps file have to be
included several times into this ps file. so i check this out and have
only to place the second+ call to the eps file which is now a postscript
procedure. i have also tried to initiate garbage collection with "2
vmreclaim" and set the packaging of arrays to "true setpacking", but
with no reasonable success...

have anybody some ideas on how to go?

thx, Chris

--
KNAPP Logistics Automation   http://www.*-*-*.com/
Ing. Christian J?lly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Gnter-Knapp-Stra?e 5-7     A-8075 Hart bei Graz



Sun, 12 Dec 2004 01:39:45 GMT  
 stack overflow with large PS file
Quote:

> Hello!

> i want to print a very large ps file (>10mb)

> Error: /stackoverflow in -file-
> Operand stack:
>    --nostringval--
> [...]

> what have i done:

> i have included many eps files into this ps file, and for each eps file
> i have written a "wrapper" around it in the following form:

> /DrawEPS_XYZ123 {
> ...
> data from eps file...
> ...
> } bind def

> and call DrawEPS_XYZ123 when the EPS should occour on the page(s)

Whatever you put between the "{" and "}" is put onto the operand stack.
Only the closing
"}" converts this possibly huge bunch ov tokens into one object - an
executable array.

Helge

--





Sun, 12 Dec 2004 22:28:26 GMT  
 stack overflow with large PS file


Quote:
>i want to print a very large ps file (>10mb)

These days you have to have a file > 4Gb to get bragging rights;-)

Quote:
>i have included many eps files into this ps file, and for each eps file
>i have written a "wrapper" around it in the following form:

>/DrawEPS_XYZ123 {
>...
>data from eps file...
>...
>} bind def

>and call DrawEPS_XYZ123 when the EPS should occour on the page(s)

This is in general A Bad Thing to do.  There are a number of circumstances in
which the file will simply fail - for example if the EPS files contain any
scanned images, and quite often if they contain any smooth shading.  I also
have a feeling that you're going to get problems with EPS procset conflicts by
doing it this way.

Just interpolate the EPS files into the document in the way that the PLRM
recommends, and dont' try to be clever about it.  That ought to help.

If you want to be clever (e.g. because the EPS file represents a logotype or
similar, and is repeated many times), there are one or two apps out there which
will take an EPS file and convert it into a Form resource, which you can then
download into your RIP.  Sadly, I can't now remember the names of these.

Quote:
>have anybody some ideas on how to go?

Purifire from Repro Precision is pretty good at pre-processing files that fail
because they are genuinely too big or too complex.  Of course, it's unlikely to
help if you've actually introduced errors into your file.:-)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish                   18 Durham Close, Biggleswade, Beds SG18 8HZ, UK

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
``Behind every successful organisation stands one person who knows the secret
  of how to keep the managers away from anything truly important.''



Mon, 13 Dec 2004 01:39:04 GMT  
 stack overflow with large PS file

Quote:

>> Error: /stackoverflow in -file-
>> i have included many eps files into this ps file, and for each eps file
>> i have written a "wrapper" around it in the following form:
>> /DrawEPS_XYZ123 {
>> data from eps file...
>> } bind def
>> and call DrawEPS_XYZ123 when the EPS should occour on the page(s)

> Whatever you put between the "{" and "}" is put onto the operand stack.
> Only the closing
> "}" converts this possibly huge bunch ov tokens into one object - an
> executable array.

jep. i have managed to read the redbook carefully and came to the same
conclusio :-) now the ps files are 3times or more bigger but prints
without problems ;-)

thx guys, Chris

--
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian J?lly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Gnter-Knapp-Stra?e 5-7     A-8075 Hart bei Graz



Mon, 13 Dec 2004 22:52:52 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Nobody Knows????

2. PLEEEEEASE Help - Pentium II and protected mode BP7

3. Stack overflow (by what units is stack measured)?

4. stack overflow on 1 comp but not another.

5. jscript stack overflow

6. IE5 Stack Overflow

7. IE & Netscape Stack Overflow Error HELP

8. Another Stack Overflow Question

9. stack overflow

10. Stack Overflow : 'error ASP 0107 : 80004005'

11. Stack overflow error using Ghostview

12. Send Data, Stack Overflow

 

 
Powered by phpBB® Forum Software