Bug 5930 - evince crashes when opening some pdf documents
Summary: evince crashes when opening some pdf documents
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium minor
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 02:27 UTC by Benjamin Berg
Modified: 2011-06-19 14:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
pdf file that causes the crash (45.89 KB, application/pdf)
2006-02-18 02:32 UTC, Benjamin Berg
Details

Description Benjamin Berg 2006-02-18 02:27:58 UTC
When opening the attached pdf in evince, poppler unions a GdkRegion with rects
with negative width and/or height. This causes an assertion faliure (later on)
with newer gtk versions.

A little more info is at http://bugzilla.gnome.org/show_bug.cgi?id=331467
Comment 1 Benjamin Berg 2006-02-18 02:32:14 UTC
Created attachment 4648 [details]
pdf file that causes the crash
Comment 2 Pascal Terjan 2006-09-10 05:44:46 UTC
Is this bug still there (no crash here) ?
Comment 3 Benjamin Berg 2006-09-10 11:28:12 UTC
This will not crash anymore. Newer GTK+ versions just ignore these rectangles
with negative height/width.

One needs to check if poppler_page_get_selection_region still adds rectangles
with negative width/height to the GdkRegion.
Comment 4 Benjamin Close 2008-01-11 02:37:15 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 5 Albert Astals Cid 2009-06-17 14:00:49 UTC
Doesn't crash for me, closing, please reopen if you can still reproduce a crash
Comment 6 Benjamin Berg 2009-06-20 11:14:45 UTC
Yes, the PDF file will not crash anymore, as GTK+ now has more sanity checks (see the original GTK+ bug report). However, it may be a good idea to still investigate how the negative sized areas happen.

I just noticed that the selection is also redrawn wrong. If one selects a bit of the map (just click and drag a short distance) and then forces a redraw a set of selection rectangles appear. These are also visible if one presses ctrl+a.
Comment 7 Benjamin Berg 2009-06-20 11:17:03 UTC
Oh, and the text that belongs to those selection rectangles can actually be seen on the lines that run from top to bottom in the center (and also some text).
Comment 8 Albert Astals Cid 2011-06-19 14:47:50 UTC
Don't see a bug here anymore. Please reopen if it still crashes for you.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.