inkscape segfaults when saving particular SVGs as PDFs.

Bug #793822 reported by b
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
inkscape (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Binary package hint: inkscape

With version 0.47 r22583, built Apr 4 2010 I get the following:

$ inkscape -f DM2-SP.svg -A /tmp/test

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Segmentation fault

Same thing happens when saving PDF from GUI.

Version 0.48.1 r9760 (compiled on this machine from source) Does not segfault on the same file: (but gives hints to the problem):

$ ~/src/inkscape-0.48.1/src/inkscape -f DM2-SP.svg -A /tmp/test
** Message: Invalid glyph found, continuing...

The PDF does get generated and looks fine.

I'll attach the offending SVG file (generated by inkscape, likely a version from a few years ago)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: inkscape 0.47.0-2ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-32.62-generic 2.6.32.38+drm33.16
Uname: Linux 2.6.32-32-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Jun 6 18:34:14 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: inkscape

Revision history for this message
b (ben-ekran) wrote :
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Hi b,

I can't reproduce this in Ubuntu Natty with inkscape_0.48.1-2ubuntu2, so I guess it has been fixed upstream. Please could you try to obtain a backtrace of the crash as described at https://wiki.ubuntu.com/Backtrace ?

Changed in inkscape (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Possible duplicate of bug# 564442 <PDF export: crash in 'CairoRenderContext::_showGlyphs'> ?

Revision history for this message
b (ben-ekran) wrote :

Yup, looks like a duplicate, I've marked is as so. Here is the BT:

(gdb) bt
#0 0x00000000005d57a9 in Inkscape::Extension::Internal::CairoRenderContext::_showGlyphs (this=<value optimized out>, cr=0x1e5db10, font=<value optimized out>, glyphtext=<value optimized out>, path=false) at extension/internal/cairo-render-context.cpp:1484
#1 0x00000000005d81f5 in Inkscape::Extension::Internal::CairoRenderContext::renderGlyphtext (this=0x1e5a8d0, font=0x10121b0, font_matrix=<value optimized out>, glyphtext=..., style=0x1cc3000) at extension/internal/cairo-render-context.cpp:1578
#2 0x0000000000647b06 in Inkscape::Text::Layout::showGlyphs (this=0x1cc0180, ctx=<value optimized out>) at libnrtype/Layout-TNG-Output.cpp:302
#3 0x00000000005db80f in sp_flowtext_render (item=0x1cc0010, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:333
#4 sp_item_invoke_render (item=0x1cc0010, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:539
#5 0x00000000005db978 in Inkscape::Extension::Internal::CairoRenderer::renderItem (this=<value optimized out>, ctx=0x1e5a8d0, item=0x1cc0010) at extension/internal/cairo-renderer.cpp:583
#6 0x00000000005dbc4e in sp_group_render (item=<value optimized out>, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:296
#7 0x00000000005db5cb in sp_item_invoke_render (item=0x10721f0, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:523
#8 0x00000000005db978 in Inkscape::Extension::Internal::CairoRenderer::renderItem (this=<value optimized out>, ctx=0x1e5a8d0, item=0x10721f0) at extension/internal/cairo-renderer.cpp:583
#9 0x00000000005dbc4e in sp_group_render (item=<value optimized out>, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:296
#10 0x00000000005db5b3 in sp_symbol_render (item=0x1c1e010, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:409
#11 sp_item_invoke_render (item=0x1c1e010, ctx=0x1e5a8d0) at extension/internal/cairo-renderer.cpp:533
#12 0x00000000005db978 in Inkscape::Extension::Internal::CairoRenderer::renderItem (this=<value optimized out>, ctx=0x1e5a8d0, item=0x1c1e010) at extension/internal/cairo-renderer.cpp:583
#13 0x00000000005dc6a8 in pdf_render_document_to_file (this=<value optimized out>, mod=<value optimized out>, doc=0x152af00, filename=<value optimized out>) at extension/internal/cairo-renderer-pdf-out.cpp:94
#14 Inkscape::Extension::Internal::CairoRendererPdfOutput::save (this=<value optimized out>, mod=<value optimized out>, doc=0x152af00, filename=<value optimized out>) at extension/internal/cairo-renderer-pdf-out.cpp:193
#15 0x00000000005c7e8a in Inkscape::Extension::Output::save (this=0x0, doc=<value optimized out>, filename=<value optimized out>) at extension/output.cpp:218
#16 0x000000000045241d in do_export_ps_pdf (doc=0x152af00, uri=0x10cca20 "/home/bbogart/tmp/test", mime=0xaa4e38 "application/pdf") at main.cpp:1534
#17 0x0000000000454353 in sp_process_file_list (fl=0x10363c0) at main.cpp:1017
#18 0x0000000000455509 in sp_main_console (argc=5, argv=0x7fffffffe2f8) at main.cpp:1139
#19 0x0000000000452db9 in main (argc=5, argv=<value optimized out>) at main.cpp:685

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.