Bug 30580 - evince crashes on opening file(Unimplemented annotation: POPPLER_ANNOT_SQUARE)
Summary: evince crashes on opening file(Unimplemented annotation: POPPLER_ANNOT_SQUARE)
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 02:08 UTC by Carlos Garcia Campos
Modified: 2010-10-03 03:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Carlos Garcia Campos 2010-10-03 02:08:13 UTC
Bug forwarded from Evince: https://bugzilla.gnome.org/show_bug.cgi?id=631145

"evince crashes with this:

WARNING **: Unimplemented annotation: POPPLER_ANNOT_SQUARE, please post a bug
report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase.

PDF file causing the crash:
http://www.gris.informatik.tu-darmstadt.de/%7Emgoesele/download/Stark-2010-BTF.pdf

okular doesn't work, either. I guess it's a problem with poppler."

Comment 2 in the original bug report contains a useful backtrace.
Comment 1 Albert Astals Cid 2010-10-03 02:35:45 UTC
Making the if (border) in void AnnotGeometry::draw(Gfx *gfx, GBool printing) cover some more lines (up to line 4450 aprox)  fixes the crash but i don't know if it's the correct thing to do.

Carlos this is more your area of work, can you confirm it's ok?
Comment 2 Carlos Garcia Campos 2010-10-03 03:02:13 UTC
hmm, I'm not sure, there might be an annot without a border, but with an interior color since both are optional. In such case we need to fill the annot. I'm not sure whether no border means don't draw anything or fallback to default value which is border-width=1, though. Acroread doesn't render anything for this pdf so I guess no border means don't draw anything
Comment 3 Carlos Garcia Campos 2010-10-03 03:16:12 UTC
Ok, I've decided not to draw anything. Fixed in git master now.


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.