[MusicXML import] crash loading The Stolen Child - vocal score - RB - 2014-10-22.xml
The file attached to http://musescore.org/en/node/37311 consistently crashes todays trunk on import. The error message is:
SpannerMap::addSpanner: Slur already in list 0x1171eb7e0
Program received signal SIGABRT, Aborted.
Stack trace:
#0 0x00007fff92060ce2 in __pthread_kill ()
#1 0x00007fff8ddd07d2 in pthread_kill ()
#2 0x00007fff8ddc1a7a in abort ()
#3 0x0000000101d564f9 in qt_message_fatal ()
#4 0x0000000101d57aa1 in QMessageLogger::fatal ()
#5 0x0000000100a72518 in Ms::SpannerMap::addSpanner (this=0x10901e080, s=0x1171eb7e0) at /Users/lvi/dev/MuseScore/libmscore/spannermap.cpp:77
#6 0x0000000100a2bf2f in Ms::Score::addSpanner (this=0x10901de00, s=0x1171eb7e0) at /Users/lvi/dev/MuseScore/libmscore/score.cpp:3384
#7 0x0000000100a2b968 in Ms::Score::addElement (this=0x10901de00, element=0x1171eb7e0) at /Users/lvi/dev/MuseScore/libmscore/score.cpp:1368
#8 0x00000001003f16df in Ms::MusicXml::xmlNotations (this=0x7fff5fbfda60, note=0x1171f3880, cr=0x1171f2f00, trk=0, tick=109440, ticks=159, e=@0x7fff5fbfb708) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:4300
#9 0x00000001003e0bd3 in Ms::MusicXml::xmlNote (this=0x7fff5fbfda60, measure=0x1171f1f70, staff=0, partId=@0x7fff5fbfca58, beam=@0x7fff5fbfcb20, currentVoice=@0x7fff5fbfca98, e=@0x7fff5fbfca50, graceNotes=@0x7fff5fbfca90, alt=@0x7fff5fbfcb50) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:5328
#10 0x00000001003d4ff4 in Ms::MusicXml::xmlMeasure (this=0x7fff5fbfda60, part=0x115126db0, e=@0x7fff5fbfce80, number=114, measureLen={_numerator = 2, _denominator = 4}, currKeySig=0x7fff5fbfceb0) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:2084
#11 0x00000001003d14aa in Ms::MusicXml::xmlPart (this=0x7fff5fbfda60, e=@0x7fff5fbfd8b0, id=@0x7fff5fbfd8a0) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:1779
#12 0x00000001003cad3b in Ms::MusicXml::scorePartwise (this=0x7fff5fbfda60, ee=@0x7fff5fbfd9c8) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:1124
#13 0x00000001003ca5a6 in Ms::MusicXml::import (this=0x7fff5fbfda60, s=0x10901de00) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:734
#14 0x00000001003fd61c in Ms::doImport (score=0x10901de00, name=@0x7fff5fbfe208, dev=0x7fff5fbfde18, pass1=@0x7fff5fbfdd28) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:606
#15 0x00000001003c91d2 in Ms::doValidateAndImport (score=0x10901de00, name=@0x7fff5fbfe208, dev=0x7fff5fbfde18) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:639
#16 0x00000001003c909c in Ms::importMusicXml (score=0x10901de00, name=@0x7fff5fbfe208) at /Users/lvi/dev/MuseScore/mscore/importxml.cpp:669
#17 0x00000001001edfdf in Ms::readScore (score=0x10901de00, name=@0x7fff5fbfe208, ignoreVersionError=false) at /Users/lvi/dev/MuseScore/mscore/file.cpp:1967
#18 0x00000001001ed943 in Ms::MuseScore::readScore (this=0x10eb8e1b0, name=@0x107e16d88) at /Users/lvi/dev/MuseScore/mscore/file.cpp:318
#19 0x000000010051396c in Ms::loadScores (argv=@0x7fff5fbffa08) at /Users/lvi/dev/MuseScore/mscore/musescore.cpp:2209
#20 0x0000000100512cf5 in main (argc=2, av=0x7fff5fbffad0) at /Users/lvi/dev/MuseScore/mscore/musescore.cpp:5033
Comments
Removed.
Cause found: slur administration in the xml file is incorrect. Lines 6752 and 7012 both contain 'slur type="start" number="2"' with no slur stop number 2 in between. Will implement additional
checks in MuseScore to report this and prevent the crash.
Note that if I remove line 7012, MuseScore still crashes in a similar way, more slur issues may be present.
See PR #1404
Fixed in 30821b71d0
Automatically closed -- issue fixed for 2 weeks with no activity.