Discussion:
[gs-bugs] [Bug 698800] - Ghostscript - gs hangs reading PDF
b***@artifex.com
2017-12-04 23:07:50 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698800

Bug ID: 698800
Summary: gs hangs reading PDF
Product: Ghostscript
Version: 9.14
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: blocker
Priority: P4
Component: PDF Interpreter
Assignee: ***@artifex.com
Reporter: ***@hotmail.com
QA Contact: gs-***@ghostscript.com
Word Size: ---

Created attachment 14511
--> http://bugs.ghostscript.com/attachment.cgi?id=14511&action=edit
PDF file not supported by GS

We are using:

convert 'documento-1335140.pdf' '%d.png'

and gs throws:

**** Error reading a content stream. The page may be incomplete.

**** File has unbalanced q/Q operators (too many Q's) ****

and hangs.

Easy to reproduce with attached PDF file.

Is there any option to avoid gs to hang at least?
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-12-05 08:08:17 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698800

Ken Sharp <***@artifex.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|UNCONFIRMED |RESOLVED
Severity|blocker |normal

--- Comment #1 from Ken Sharp <***@artifex.com> ---
(In reply to Christopher from comment #0)
Created attachment 14511 [details]
PDF file not supported by GS
convert 'documento-1335140.pdf' '%d.png'
**** Error reading a content stream. The page may be incomplete.
**** File has unbalanced q/Q operators (too many Q's) ****
and hangs.
Easy to reproduce with attached PDF file.
Is there any option to avoid gs to hang at least?
Sure, just set the 'NOBUGS' command line switch.... Oh yes, sorry we haven't
managed to fully implement that yet.

Or don't use buggy PDF files.

Or at the very least try a current version of the software before reporting a
bug. Version 9.16 onwards (so that's any version less than 2 years old) don't
seem to suffer from the problem. Presumably because we've added code to work
around this specific kind of invalid PDF file.

Note that 'convert' is an ImageMagick tool, you should always try to reproduce
Ghostscript bugs using *Ghostscript*, and provide the command line
configuration which reproduces the problem.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Loading...