Crash when importing big PDFs via poppler

Bug #1412912 reported by houz on 2015-01-20
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Patrick Storz
0.92.x
Medium
Patrick Storz

Bug Description

I have PDFs with an embedded raster image. If that image gets too big I can no longer import the file with poppler, the internal PDF importer still works.

Output on the shell:

Entity: line 4: parser error : AttValue length too long
<image id="image1759" width="1784" height="2672" xlink:href="data:image/png;base
                                                            ^
Entity: line 4: parser error : attributes construct error
<image id="image1759" width="1784" height="2672" xlink:href="data:image/png;base
                                                            ^
Entity: line 4: parser error : Couldn't find end of Start Tag image line 4
<image id="image1759" width="1784" height="2672" xlink:href="data:image/png;base
                                                            ^
Entity: line 6: parser error : xmlSAX2Characters: huge text node
<g id="surface1755">
^
Entity: line 6: parser error : Extra content at the end of the document
<g id="surface1755">
^
**
ERROR:../../src/document-undo.cpp:91:static bool Inkscape::DocumentUndo::getUndoSensitive(const SPDocument*): assertion failed: (document != NULL)

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Abgebrochen

followed by a SIGABRT.

This seems to be related to the following bugs: bug #1243011, bug #1373322 and bug #1073315.

Converting the PDF to an SVG with pdftocairo results in a file that Inkscape can open.

Versions used:
libxml2: 2.9.2
libcairo2: 1.14.0
libcairomm: 1.10.0
libpoppler: 0.26.5
all from Debian/sid.
Inkscape is self compiled from rev 13864

houz (houz) wrote :
su_v (suv-lp) wrote :

On OS X 10.7.5:
- not reproduced with Inkscape 0.91+devel r13864, cairo 1.12.14, poppler 0.22.1, libxml2 2.8.0
- reproduced with Inkscape 0.91+devel r13864, cairo 1.14.0, poppler 0.30.0, libxml2 2.9.2

Similar issue for CDR files with embedded bitmap images:
- Bug #1243011 “trunk: fails to load CDR file with large bitmap (libxml2 >= 2.9.0)”
  https://bugs.launchpad.net/inkscape/+bug/1243011

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.92
status: New → Confirmed
description: updated
su_v (suv-lp) on 2015-01-20
tags: added: bitmap importing pdf poppler
Sergio Callegari (callegar) wrote :

See the issue on Kubuntu 15.04. Even on PDF files that are quite small (10kB) and without embedded bitmaps.

Not nice to have applications crashing. If it cannot be fixed, disable poppler import at build time altogether.

Sergio Callegari (callegar) wrote :

In fact, the issue seems to be totally independent from the specific pdf file being imported. Poppler ABI issue?

Sergio Callegari (callegar) wrote :

Opened new bug, since I suspect that my issue is more general than what is reported here.

Patrick Storz (ede123) wrote :

Fixed in
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15654

Please test the change thoroughly. If no regressions are found I think this would be a good candidate for backporting to 0.92.x.

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Eduard Braun (eduard-braun2)
jazzynico (jazzynico) on 2017-04-30
Changed in inkscape:
milestone: 0.92 → 0.93
jazzynico (jazzynico) wrote :

Fix confirmed on Xubuntu 16.04, lp:inkscape rev. 15657. The file now loads correctly, with no console message.

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

Other bug subscribers

Bug attachments