Evince fails to open "damaged" PDF file

Bug #16973 reported by Darren Adams
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

[Apologies, there appears to be no "evince" package listed]

Evince crashes when attempting to the attached PDF file and Evince's PDF
thumbnailer refuses to create a thumbnail for it.

Steps to reproduce:

* Start evince, either from the Applications menu or by typing evince from a
terminal
* Open the attached file
* After a short period, evince crashes, instead of instantly displaying the
first page of the document. On occasion you sometimes see the text "Xlib:
unexpected async reply..." when running evince from a terminal

One thing I did notice when looking through my ~/.xsession-errors file was the
following text. I believe that this came from when Evince's PDF thumbnailer
tried to generate a thumbnail image from the affected file.

Error: May not be a PDF file (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

Both XPDF and Acrobat Reader 7 are able to read the affected file without
problems, which I will attach shortly. So far, every other type of PDF file I
have encountered so far has not produced any problems.

I am using Evince 0.3.0, and the Breezy branch of Ubuntu. I will attach the file
that appears to crash Evince. The PDF files in question can also be found at
http://www.princecharlescinema.com/ (under the "Weekly Leaflet" section on the
left hand side of the page)

Revision history for this message
Darren Adams (darrenadams) wrote :

Created an attachment (id=2264)
PDF file that cannot be read by Evince

Revision history for this message
Darren Adams (darrenadams) wrote :

A few days ago, I updated my Evince and Poppler (libpoppler) packages, and the
problem described here seems to have fixed itself. So for the time being I will
mark this bug as fixed.

Revision history for this message
Sebastien Bacher (seb128) wrote :

sorry for not replying before. I was waiting to upload the new version to
comment on the bug and it got dropped somewhat on my list of bugs. Thanks for
following up on it

Revision history for this message
Tom Gillam (tgilla) wrote :

Problem occurring again, Evince 0.8.1 Ubuntu Feisty. From running on terminal:

Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error (518356): Unexpected end of file in flate stream
Error (526528): Unexpected end of file in flate stream
Error (502574): Unexpected end of file in flate stream
Error (518356): Unexpected end of file in flate stream
Error (526528): Unexpected end of file in flate stream
Error (502574): Unexpected end of file in flate stream

The pdf file seems to preview fine in nautilus. I don't have acrobat installed to test the file, so it is attached.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.