Comment 71 for bug 179988

Revision history for this message
Rygle (rygle) wrote :

Just to clarify the font thing in case any more info is needed, here is what happens with the 0.46pre3 binary using gdb when I go to print inkscape.logo.svg (can't open because of gdb, so have to import) with some text added ("Inkscape logo" above logo with default formatting).

------------------
Program received signal SIGSEGV, Segmentation fault.
0x63c90f28 in FcPatternObjectPosition ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libfontconfig-1.dll
(gdb) bt
#0 0x63c90f28 in FcPatternObjectPosition ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libfontconfig-1.dll
#1 0x63c90f81 in FcPatternObjectFindElt ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libfontconfig-1.dll
#2 0x63c9142c in FcPatternObjectGet ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libfontconfig-1.dll
#3 0x63c91626 in FcPatternObjectGetString ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libfontconfig-1.dll
#4 0x68e1ad00 in _cairo_ft_unscaled_font_create_for_pattern ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libcairo-2.dll
#5 0x68e1e65c in cairo_ft_font_face_create_for_pattern ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libcairo-2.dll
#6 0x006c2baf in Inkscape::Extension::Internal::CairoRenderContext::renderGlyph
text ()
#7 0x005f10f2 in Inkscape::Text::Layout::showGlyphs ()
#8 0x006bed0c in Inkscape::Extension::Internal::CairoRenderer::renderItem ()
#9 0x006bf3c0 in Inkscape::Extension::Internal::sp_group_render ()
#10 0x006bea1a in Inkscape::Extension::Internal::CairoRenderer::renderItem ()
#11 0x006bf3c0 in Inkscape::Extension::Internal::sp_group_render ()
#12 0x006be49f in Inkscape::Extension::Internal::CairoRenderer::renderItem ()
#13 0x004f60dd in draw_page ()
#14 0x62743995 in _libmsvcrt_a_iname ()
   from D:\Download\Multimedia\Image\Inkscape\Latest\inkscape\libgobject-2.0-0.dll
#15 0x056856c0 in ?? ()
#16 0x06c85128 in ?? ()
#17 0x00000000 in ?? ()
--------------------

- If I don't add text to the logo, no crash on printing.
- With the latest patch from Ulferikson for src/extension/internal/cairo-render-context.cpp, I can add text and no crash on printing.