evince and kpdf fail to open a pdf which works in Adobe Reader 7

Bug #183271 reported by Peter Berry
6
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Invalid
Low
Unassigned

Bug Description

According to friends who have it, http://www.smile.co.uk/terms works fine in Adobe Reader 7, but it will not open in Evince or KPDF. There's no indication as to what exactly the problem is: Evince fails with the very helpful "error 2", while KPDF simply says "Could not open <filename>".

Peter Berry (pwberry)
description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, can you attach the file to the report? Which version of Ubuntu are you running?

Changed in poppler:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Peter Berry (pwberry) wrote :

Sorry... this is Gutsy.

Revision history for this message
In , Jon Leighton (jonleighton) wrote :

Poppler fails to render this file: http://www.smile.co.uk/images/pdf/CurrentAccountT&Cs.pdf

Adobe Reader renders it fine.

Revision history for this message
In , Brad Hards (bradh) wrote :

Urgh, looks like we are crashing.

Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Catalog object is wrong type (array)
Error: Couldn't read page catalog
==9733== Conditional jump or move depends on uninitialised value(s)
==9733== at 0x408E4EB: Catalog::~Catalog() (Catalog.cc:217)
==9733== by 0x40ECDC2: PDFDoc::~PDFDoc() (PDFDoc.cc:233)

Revision history for this message
In , Brad Hards (bradh) wrote :

Not crashing in poppler, just in my test tool.

Revision history for this message
In , Brad Hards (bradh) wrote :

Looks like some kind of weirdness in the startxref search.

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Yeah it has several xref and there is one that points to 120 object as catalog but 120 is not a catalog but something else, the other xref says 114 is the catalog and it is, but we pick the 120 xref because it's the last and i think that's correct behaviour.

Peter Berry (pwberry)
Changed in poppler:
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

 Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=14399

Changed in poppler:
status: New → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

there is one task that's enough

Changed in evince:
importance: Undecided → Low
status: New → Invalid
Revision history for this message
In , Albert Astals Cid (aacid) wrote :

*** Bug 14399 has been marked as a duplicate of this bug. ***

Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
TerryG (tgalati4) wrote :

Marked as Confirmed since the bug report got pushed to poppler bug tracking.

Changed in kdegraphics:
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

A poppler bug, so closing the kdegraphics task.

Changed in kdegraphics:
status: Confirmed → Invalid
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Works fine now.

Changed in poppler:
status: Confirmed → Fix Released
Changed in poppler (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Somehow it stopped working :-/

Changed in poppler:
status: Fix Released → Confirmed
Revision history for this message
In , thomasfr (thomas-freitag) wrote :

I don't know why it stopped working, but I found a solution for it: If the XRef catalog is not a dictionary, I try to reconstruct XRef and find another root reference first before returning. This works for this PDF, but I have to regtest the patch first. I'll probably do that next weekend and I'll come back then.

no longer affects: evince (Ubuntu)
no longer affects: kdegraphics (Ubuntu)
Changed in poppler (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Created attachment 66877
Try to find another rootNum if actual rootNum doesn't point to a dict

This patch solves the issue and is regtested successfully

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Commited

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
penalvch (penalvch) wrote :

Not reproducible with evince in Trusty.

Changed in poppler (Ubuntu):
status: Triaged → Invalid
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.