evince crash when read pdf file

Bug #419777 reported by tri m s
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
evince (Fedora)
Won't Fix
Medium
poppler (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: evince

Ubuntu 9.04
evince 2.26.1-0ubuntu1

when i tried to open a pdf, in just 2 second evince will crash.

here is the error message that i got when run evince from terminal:

Error (0): Call to Object where the object was type 5, not the expected type 8
Aborted

seems it same like report at https://bugzilla.redhat.com/show_bug.cgi?id=512701

Revision history for this message
tri m s (trims) wrote :

Binary package hint: evince

Ubuntu 9.04
evince 2.26.1-0ubuntu1

when i tried to open a pdf, in just 2 second evince will crash.

here is the error message that i got when run evince from terminal:

Error (0): Call to Object where the object was type 5, not the expected type 8
Aborted

seems it same like report at https://bugzilla.redhat.com/show_bug.cgi?id=512701

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

This happens with all files, or only a specific one?

Changed in evince (Ubuntu):
status: New → Incomplete
Revision history for this message
tri m s (trims) wrote :

no, it only happen with pdf file that contain image as page background.
sample file: http://is.gd/2CVZK

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

confirming the crash on latest Karmic, the error message is the same

Changed in evince (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

extracting the pdf from the archive was a pain (rapidshare, multiple archives in .zip, broken into multiple rar archives), attaching the actual pdf file

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

added the fedora bug watch

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

note: the file opens without a problem on xpdf, acroread and okular

Changed in evince (Fedora):
status: Unknown → Confirmed
Revision history for this message
In , Sebastien Bacher (seb128) wrote :
Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

I think they are different issues. The first one was a bug in evince that we already fixed some time ago. The second looks like a broken pdf file, it contains a FileSpec object with an empty EF dictionary:

4205 0 obj <</UF(C1.jpg)/F(C1.jpg)/EF<<>>/Desc()/Type/Filespec>> endobj

I'd say this is wrong . . .

In any case we shouldn't crash when EmbFile contains a null stream. Albert, does this make qt frontend crash too? or do I mark this bug as glib only?

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

should this bug be closed if the issue was a fixed evince one and a new one opened about the new crash?

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

The crash is similar to bug #94903

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

Crashes too on the Qt frontend, the question is, should we "stop" reporting the Embedded file from the core when we realize it's not a valid one or still report it and fail when trying to save it.

Adobe does the later, but for us would be easier the first and for the user the result is the same as he can't extract the file.

But still i think we should go fixing the frontends, what do you say?

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

An attachment that can't be opened/saved/... is useless, so I think we might just show an error message saying that an invalid embedded file has been found and ignore such attachment.

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

Carlos: At the end Pino and me think that mimicking Adobe's behaviour is the best so i've added a isOk() method to EmbFile in poppler core you should use in the glib frontend to avoid the crash.

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

Ok, fixed in glib too. Thanks!

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

the bug has been fixed upstream now

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

The bug is fixed in the karmic and lucid versions

Changed in poppler (Ubuntu):
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
Changed in evince (Fedora):
importance: Unknown → Medium
status: Confirmed → Won't Fix
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.