Bug 690456 - dictstackoverflow when printing over 499 pages
Summary: dictstackoverflow when printing over 499 pages
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: 8.64
Hardware: PC other
: P4 major
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 06:58 UTC by James A. Dillon
Modified: 2009-05-21 20:30 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Page500 (10.91 KB, application/pdf)
2009-04-29 15:42 UTC, James A. Dillon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James A. Dillon 2009-04-29 06:58:24 UTC
Error 1007: An error while running Ghostscript 
%%[Error: dictstackoverflow; OffendingCommand: begin ]%%

Used Bullzip and CutePDF printers, both gave me the same results.  However I am
using Windows 7.7077 x32

I make it to the save as but when it tries to save I am not sure if it is the
Interpreter or the writer crashing.  CutePDF Writer will write the file with
page 500 being junk but "Bullzip PDF Printer 6.0.0.766" wont actually write the
file.
Comment 1 Alex Cherepanov 2009-04-29 07:29:48 UTC
Please re-visit the bug report and attach your sample file.
Comment 2 James A. Dillon 2009-04-29 15:42:29 UTC
Created attachment 4981 [details]
Page500

This is page 500, I can not include the first 499 due to its an ebook I own.  I
was just converting it to a portable format by the print function.
Comment 3 Alex Cherepanov 2009-04-29 16:02:49 UTC
The attached page shows an error message generated by some PS to PDF
converter. The file lists "Bullzip PDF Printer / www.bullzip.com"
as a Producer. Unless it uses Ghostscript internally, I don't see how
this problem is related to Ghostscript.

To analyze the problem further I need the PS file that was converted to PDF.
You can mart the attachment private to restrict the access to the file
to a small team of Artifex employees and contractors.
 

Comment 4 Alex Cherepanov 2009-04-29 16:05:06 UTC
s/mart/mark/
Comment 5 Alex Cherepanov 2009-05-01 06:56:22 UTC
"Bullzip PDF Printer" uses Ghostscript internally. By default Ghostscript limits the size of the dictionary
stack to 500 elements. Apparently, your file leaves a dictionary on the dictionary stack for every
page. On page  500 the stack gets used up, assuming that the job prologue also pushes 1 dictionary.

This is a bug in your PS file. You can request a large dictionary stack size for your file by
including the following line at the beginning of your PS file.
<</MaxDictStack 50000>> setuserparams

Please confirm that the proposed work-around solves the problem.

Comment 6 Alex Cherepanov 2009-05-21 20:30:57 UTC
I'm closing this bug report because:
- a sample ps file has not been provided
- the match between 500 elements of the default dictionary size and
  the failure on the page 499 suggest that every page leaves a dictionary
  on the stack, i.e. a bug in the ps file
- there was no follow-up comments from the user.