[MusicXML import] DOM parser crash loading The Stolen Child full score.xml
See https://musescore.org/en/node/62031
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
Ms::Element::parent (this=0x0) at element.h:323
323 Element* parent() const { return _parent; }
(gdb) bt
#0 Ms::Element::parent (this=0x0) at element.h:323
#1 0x0000000100096235 in Ms::Measure::system (this=0x0) at measure.h:182
#2 0x0000000100b81a79 in Ms::Slur::slurPos (this=0x1223416f0, sp=0x7fff5fbfc930) at /Users/lvi/dev/MuseScore/libmscore/slur.cpp:842
#3 0x0000000100b8579b in Ms::Slur::layout (this=0x1223416f0) at /Users/lvi/dev/MuseScore/libmscore/slur.cpp:1415
#4 0x0000000100a625d5 in Ms::Score::doLayout (this=0x10a82b000) at /Users/lvi/dev/MuseScore/libmscore/layout.cpp:1547
#5 0x00000001009bb0d9 in Ms::Score::update (this=0x10a82b000) at /Users/lvi/dev/MuseScore/libmscore/cmd.cpp:175
#6 0x0000000100206637 in Ms::readScore (score=0x10a82b000, name=@0x7fff5fbfd658, ignoreVersionError=false) at /Users/lvi/dev/MuseScore/mscore/file.cpp:2152
#7 0x0000000100205823 in Ms::MuseScore::readScore (this=0x109923c00, name=@0x109159040) at /Users/lvi/dev/MuseScore/mscore/file.cpp:328
#8 0x00000001005c4d12 in Ms::loadScores (argv=@0x7fff5fbff0e0) at /Users/lvi/dev/MuseScore/mscore/musescore.cpp:2012
#9 0x00000001005c4063 in main (argc=2, av=0x7fff5fbffae8) at /Users/lvi/dev/MuseScore/mscore/musescore.cpp:4974
Comments
Given the pull parser will be in 2.0.2 and other future release, this issue is not really relevant, correct? I mean, the bug exists in this no-longer-used code, but there is no need to fix it unless I am mistaken?
Correct, I submitted this as a reminder to also fix the issue for the DOM parser in case 2.0.2 does not ship with the pull parser.
DOM parser has been removed, issue is not relevant anymore.