Some files which have LPE effect on path crash inkscape while trying to open the file by double clicking on them. I am on the latest inkscape from bzr which is updated this morning (rev # 15524)
Steps to reproduce :
1) Download the attached svg file (owl.svg)(artwork - cc.by.sa 4.0)
2) Double click on the file.
Expected result -
Inkscape should open and the file should be loaded as usual
Actual result -
Inkscape fails to load and segfaults with a dialog box saying - "Inkscape has encountered an internal error and will close now"
su_v from the IRC has helped me get the backtrace. here is the backtrace -
(gdb) r
Starting program: /Users/su_v/TEMP/inkscape-repo/mptrunk-092x-x11/inst/bin/inkscape Downloads/_irc_misc/raghukamath-owl-001.svg
Reading symbols for shared libraries +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++............................................................................................................................................................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000058
0x000000010003bb68 in SPDocument::getWidth ()
(gdb) bt
#0 0x000000010003bb68 in SPDocument::getWidth ()
#1 0x000000010039345b in Inkscape::LivePathEffect::LPEMirrorSymmetry::doBeforeEffect ()
#2 0x000000010031371d in Inkscape::LivePathEffect::Effect::doBeforeEffect_impl ()
#3 0x0000000100125976 in SPLPEItem::performPathEffect ()
#4 0x0000000100146f69 in SPPath::update_patheffect ()
#5 0x0000000100142ee1 in sigc::internal::signal_emit2<void, SPObject*, unsigned int, sigc::nil>::emit ()
#6 0x0000000100141ced in SPObject::emitModified ()
#7 0x00000001000eb2a6 in SPDefs::modified ()
#8 0x0000000100141cd5 in SPObject::emitModified ()
#9 0x000000010011416a in SPGroup::modified ()
#10 0x000000010014f102 in SPRoot::modified ()
#11 0x0000000100141cd5 in SPObject::emitModified ()
#12 0x000000010003da13 in SPDocument::_updateDocument ()
#13 0x000000010003da88 in SPDocument::ensureUpToDate ()
#14 0x00000001000218db in SPDesktop::init ()
#15 0x00000001003fcb00 in SPDesktopWidget::createInstance ()
#16 0x00000001003fc99b in sp_desktop_widget_new ()
#17 0x000000010004f6a0 in sp_file_open ()
#18 0x000000010000299f in sp_main_gui ()
#19 0x0000000100001ed4 in start ()
(gdb) q
The program is running. Exit anyway? (y or n) y
Some files which have LPE effect on path crash inkscape while trying to open the file by double clicking on them. I am on the latest inkscape from bzr which is updated this morning (rev # 15524)
Steps to reproduce :
1) Download the attached svg file (owl.svg)(artwork - cc.by.sa 4.0)
2) Double click on the file.
Expected result -
Inkscape should open and the file should be loaded as usual
Actual result -
Inkscape fails to load and segfaults with a dialog box saying - "Inkscape has encountered an internal error and will close now"
su_v from the IRC has helped me get the backtrace. here is the backtrace -
(gdb) r su_v/TEMP/ inkscape- repo/mptrunk- 092x-x11/ inst/bin/ inkscape Downloads/ _irc_misc/ raghukamath- owl-001. svg +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++.. ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ... done
Starting program: /Users/
Reading symbols for shared libraries +++++++
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory. ADDRESS at address: 0x0000000000000058 :getWidth () :getWidth () :LivePathEffect ::LPEMirrorSymm etry::doBeforeE ffect () :LivePathEffect ::Effect: :doBeforeEffect _impl () :performPathEff ect () :update_ patheffect () :signal_ emit2<void, SPObject*, unsigned int, sigc::nil>::emit () :emitModified () :emitModified () :emitModified () :_updateDocumen t () :ensureUpToDate () ::createInstanc e () widget_ new ()
Reason: KERN_INVALID_
0x000000010003bb68 in SPDocument:
(gdb) bt
#0 0x000000010003bb68 in SPDocument:
#1 0x000000010039345b in Inkscape:
#2 0x000000010031371d in Inkscape:
#3 0x0000000100125976 in SPLPEItem:
#4 0x0000000100146f69 in SPPath:
#5 0x0000000100142ee1 in sigc::internal:
#6 0x0000000100141ced in SPObject:
#7 0x00000001000eb2a6 in SPDefs::modified ()
#8 0x0000000100141cd5 in SPObject:
#9 0x000000010011416a in SPGroup::modified ()
#10 0x000000010014f102 in SPRoot::modified ()
#11 0x0000000100141cd5 in SPObject:
#12 0x000000010003da13 in SPDocument:
#13 0x000000010003da88 in SPDocument:
#14 0x00000001000218db in SPDesktop::init ()
#15 0x00000001003fcb00 in SPDesktopWidget
#16 0x00000001003fc99b in sp_desktop_
#17 0x000000010004f6a0 in sp_file_open ()
#18 0x000000010000299f in sp_main_gui ()
#19 0x0000000100001ed4 in start ()
(gdb) q
The program is running. Exit anyway? (y or n) y
(lldb) r su_v/TEMP/ inkscape- repo/mptrunk- 092x-x11/ inst/bin/ inkscape' (x86_64) SPDocument: :getWidth( ) const + 8, stop reason = EXC_BAD_ACCESS (code=1, address=0x58) SPDocument: :getWidth( ) const + 8 SPDocument: :getWidth( ) const + 8: :getWidth( ) const + 154 SPDocument: :getWidth( ) const + 8, stop reason = EXC_BAD_ACCESS (code=1, address=0x58) SPDocument: :getWidth( ) const + 8 Inkscape: :LivePathEffect ::LPEMirrorSymm etry::doBeforeE ffect(SPLPEItem const*) + 1563 Inkscape: :LivePathEffect ::Effect: :doBeforeEffect _impl(SPLPEItem const*) + 109 SPLPEItem: :performPathEff ect(SPCurve* , bool) + 278 SPPath: :update_ patheffect( bool) + 105 sigc::internal: :signal_ emit2<void, SPObject*, unsigned int, sigc::nil> ::emit( sigc::internal: :signal_ impl*, SPObject* const&, unsigned int const&) + 129 SPObject: :emitModified( unsigned int) + 93 SPDefs: :modified( unsigned int) + 134 SPObject: :emitModified( unsigned int) + 69 SPGroup: :modified( unsigned int) + 202 SPRoot: :modified( unsigned int) + 18 SPObject: :emitModified( unsigned int) + 69 SPDocument: :_updateDocumen t() + 531 SPDocument: :ensureUpToDate () + 40 SPDesktop: :init(SPNamedVi ew*, SPCanvas*, Inkscape: :UI::View: :EditWidgetInte rface*) + 395 SPDesktopWidget ::createInstanc e(SPNamedView* ) + 320 sp_desktop_ widget_ new(SPNamedView *) + 11 sp_file_ open(Glib: :ustring const&, Inkscape: :Extension: :Extension* , bool, bool) + 176 sp_main_ gui(int, char const**) + 1359
Process 32962 launched: '/Users/
Process 32962 stopped
* thread #1: tid = 0x4103, 0x000000010003bb68 inkscape`
frame #0: 0x000000010003bb68 inkscape`
inkscape`
-> 0x10003bb68: cmpq $0, 88(%rdi)
0x10003bb6d: je 0x10003bbfa ; SPDocument:
0x10003bb73: movq 48(%rdi), %rcx
0x10003bb77: testq %rcx, %rcx
(lldb) bt
* thread #1: tid = 0x4103, 0x000000010003bb68 inkscape`
frame #0: 0x000000010003bb68 inkscape`
frame #1: 0x000000010039345b inkscape`
frame #2: 0x000000010031371d inkscape`
frame #3: 0x0000000100125976 inkscape`
frame #4: 0x0000000100146f69 inkscape`
frame #5: 0x0000000100142ee1 inkscape`
frame #6: 0x0000000100141ced inkscape`
frame #7: 0x00000001000eb2a6 inkscape`
frame #8: 0x0000000100141cd5 inkscape`
frame #9: 0x000000010011416a inkscape`
frame #10: 0x000000010014f102 inkscape`
frame #11: 0x0000000100141cd5 inkscape`
frame #12: 0x000000010003da13 inkscape`
frame #13: 0x000000010003da88 inkscape`
frame #14: 0x00000001000218db inkscape`
frame #15: 0x00000001003fcb00 inkscape`
frame #16: 0x00000001003fc99b inkscape`
frame #17: 0x000000010004f6a0 inkscape`
frame #18: 0x000000010000299f inkscape`
frame #19: 0x0000000100001ed4 inkscape`start + 52
(lldb) q
I am running inkscape on arch linux with a updated system
Let me know if you want any more information.
thank you