Comment 10 for bug 1348417

Revision history for this message
David Mathog (mathog) wrote : Re: SVG processed differently from memory and file

More information for debugging.

run it like:

gdb --args src/inkscape /tmp/small_test.svg
break document.cpp:300
run
bt

#0 SPDocument::createDoc (rdoc=0x8f6b4f0, uri=0x8c8ad48 "\354\017\310\b\354\254\310\b\\a\310\b\\k\275\b\\k\275\b\240\017\306\bȟ\315\b\001", base=0x98aff10 "/tmp/",
    name=0x8c8ad48 "\354\017\310\b\354\254\310\b\\a\310\b\\k\275\b\\k\275\b\240\017\306\bȟ\315\b\001", keepalive=1, parent=0x0) at document.cpp:331
#1 0x080e8d11 in SPDocument::createNewDoc (uri=0x8e4a42c "/tmp/small_test.svg", keepalive=1, make_new=false, parent=0x0) at document.cpp:556
#2 0x082c61d8 in Inkscape::Extension::Internal::Svg::open (this=0x8ca4f40, uri=0x8e4a42c "/tmp/small_test.svg") at extension/internal/svg.cpp:198
#3 0x082bc623 in Inkscape::Extension::Input::open (this=0x8ca5d50, uri=0x8e4a42c "/tmp/small_test.svg") at extension/input.cpp:153
#4 0x082ba238 in Inkscape::Extension::open (key=0x8c8ad48, filename=0x8e4a42c "/tmp/small_test.svg") at extension/system.cpp:117
#5 0x08101010 in sp_file_open (uri=..., key=0x0, add_to_recent=true, replace_empty=true) at file.cpp:274
#6 0x080ad76e in sp_main_gui (argc=2, argv=0xbffff6d4) at main.cpp:1065
#7 0x0808c321 in main (argc=2, argv=0xbffff6d4) at main.cpp:789

Attached is a simpler test case. When loaded from the SVG form as above it displays properly and the 2nd line of text (black on white) is shown. When loaded from emf (converted to the exact same SVG and loaded from createDocFromMem()) and the second line is not shown.