Crash when importing PDF

Bug #1541848 reported by Laurent Martelli
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Unassigned
inkscape (Debian)
Fix Released
Unknown

Bug Description

Inkspace 0.91 on Debian testing.

Here's the backtrace (and the PDF file is attached)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff024040e in CairoOutputDev::gouraudTriangleShadedFill(GfxState*, GfxGouraudTriangleShading*) () from /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
(gdb) bt
#0 0x00007ffff024040e in CairoOutputDev::gouraudTriangleShadedFill(GfxState*, GfxGouraudTriangleShading*) () from /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
#1 0x00007ffff056ae4e in Gfx::Gfx(PDFDoc*, OutputDev*, int, Dict*, double, double, PDFRectangle*, PDFRectangle*, int, bool (*)(void*), void*, XRef*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.46
#2 0x00007ffff05b103c in Page::createGfx(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, XRef*) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.46
#3 0x00007ffff05b12ce in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libpoppler.so.46
#4 0x00007ffff022dca2 in ?? () from /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
#5 0x0000555555adfd68 in ?? ()
#6 0x0000555555ae1554 in ?? ()
#7 0x0000555555ae1c3b in ?? ()
#8 0x0000555555aa8059 in ?? ()
#9 0x0000555555aa5b6e in ?? ()
#10 0x00005555558e928f in ?? ()
#11 0x00005555558ea093 in ?? ()
#12 0x0000555555b5a042 in ?? ()
#13 0x000055555597686d in ?? ()
#14 0x00007ffff788e9db in ?? () from /usr/lib/x86_64-linux-gnu/libgtkmm-2.4.so.1
#15 0x00007ffff69a89bc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#16 0x00007fffefc44015 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007fffefc56304 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007fffefc5e899 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007fffefc5f12f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff6ac031c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007ffff69a7237 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffff69a750b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#23 0x00007ffff661bc2c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#24 0x00007fffef96efe7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fffef96f240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fffef96f562 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff69a6587 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#28 0x0000555555891f3d in ?? ()
#29 0x00007fffee7da870 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#30 0x000055555588e277 in ?? ()

Revision history for this message
Laurent Martelli (martellilaurent) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Which version of poppler do you have installed? Based on the backtrace, this looks like a poppler issue, not related to inkscape. Does the file open in Evince without crash? Or in poppler-glib-demo (demo application from poppler)?

Poppler crash not reproduced with current stable Inkscape 0.91 r13725 and current stable poppler 0.40 on OS X 10.7.5 (SVG file attached).

Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :
tags: added: crash importing pdf
Revision history for this message
su_v (suv-lp) wrote :

Crash also not reproduced with Inkscape 0.91+devel r14630 (latest trunk) compiled on OS X 10.7.5 in independent build environments with different poppler versions: successfully tested with poppler 0.18.4 (officially no longer supported by Inkscape trunk), poppler 0.22.1 and poppler 0.40.

All tests with default PDF import settings (new prefs for each run).

Revision history for this message
Laurent Martelli (martellilaurent) wrote :

I have poppler 0.38. I'll try to test with 0.40.

The file opens with evince.

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
importance: Undecided → High
Revision history for this message
Roul P. (perhelion1) wrote :

The PDF has an high load-time for me, but I can open it too on Win7x64 Inkscape 0.91pre4 r13712 (64bit) and Inkscape 0.91+devel r14683 (32bit)

jazzynico (jazzynico)
Changed in inkscape:
status: New → Confirmed
Changed in inkscape (Debian):
status: Unknown → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

- crash not reproduced on Windows 10, Inkscape 0.92+devel (e9e25c0, 2018-03-28).
- the file takes a long time to load, probably around 2 minutes or so, and is very slow to respond after loading, but no crash.
I get the following exit messages in DOS:

Warning: limit of 200 snap sources reached, some will be ignored

(inkscape.exe:9336): Gtk-WARNING **: Allocating size to HeightAction 0b3ebb78 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

Closing as no one else has been able to reproduce this issue. If this is still an issue with the latest Inkscape version, please file a new report here: https://inkscape.org/report. Thank you!

Closed by: https://gitlab.com/Qantas94Heavy

Changed in inkscape:
status: Confirmed → Invalid
Revision history for this message
smihael (smihael) wrote :

I can reproduce this on KDE neon (based on Ubuntu 18.04) with Inkscape 0.92.3 (2405546, 2018-03-11)

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

Reproduced (despite not triggering a segfault to me) and reported at https://gitlab.com/inkscape/inbox/issues/969

Revision history for this message
Hungerburg (pch-myzel) wrote :

With the gitlab "blank.pdf" (and any other pdf too), inkscape (0.92.3-4) crashes on opening the file:

0x00007ffff1aa6281 in Object::free() () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73

Ubuntu 18.04 $ ldd /usr/bin/inkscape |grep poppler

 libpoppler.so.73 => /usr/lib/x86_64-linux-gnu/libpoppler.so.73 (0x00007fce3a0bc000)
 libpoppler-glib.so.8 => /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8 (0x00007fce39e63000)
 libpoppler.so.85 => /usr/lib/x86_64-linux-gnu/libpoppler.so.85 (0x00007fce3263d000)

Revision history for this message
hejhog (hejhog) wrote :

Reproduced on Linux Mint 19.1 Cinnamon / Inkscape 0.92.4

tbnorth (terry-n-brown)
tags: added: bug-migration
Changed in inkscape (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.