[MusicXML import] [2.0 regression] crash when reading BrookeWestSample.xml

• Jan 1, 2013 - 13:55
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Importing Recordare MusicXML 2.0 or 3.0 sample file BrookeWestSample.xml consistently crashes MuseScore (current trunk version). Using MuseScore 1.2, these files import without crashing.


Comments

Thanks for filing Leon.

I think a number of bugs are regressions in 2.0 when you compare to 1.2, so it might not be necessary to put it in the title?

I prefer to have "regression" in the title, this allows me to easily find all regression issues. These are higher on my todo list than feature requests or recent bugs.

Stack trace:

Program received signal SIGSEGV, Segmentation fault.
Hook::setSubtype (this=0x0, i=-2) at /home/lvi/dev/MuseScore/libmscore/hook.cpp:36
36 _subtype = i;
(gdb) bt
#0 Hook::setSubtype (this=0x0, i=-2) at /home/lvi/dev/MuseScore/libmscore/hook.cpp:36
#1 0x084e3bb2 in Chord::layoutStem (this=0xc4fb168) at /home/lvi/dev/MuseScore/libmscore/chord.cpp:1152
#2 0x08539fe8 in Score::doLayout (this=0xc4089b0) at /home/lvi/dev/MuseScore/libmscore/layout.cpp:632
#3 0x081c53ab in ScoreView::setScore (this=0xc5a6e68, s=0xc4089b0)
at /home/lvi/dev/MuseScore/mscore/scoreview.cpp:925
#4 0x0832f830 in ScoreTab::setCurrent (this=0x8ddf7c0, n=0)
at /home/lvi/dev/MuseScore/mscore/scoretab.cpp:151
#5 0x0832f998 in ScoreTab::setCurrentIndex (this=0x8ddf7c0, idx=0)
at /home/lvi/dev/MuseScore/mscore/scoretab.cpp:316
#6 0x0825fb2a in loadScores (argv=...) at /home/lvi/dev/MuseScore/mscore/musescore.cpp:1981
#7 0x0819795d in main (argc=Cannot access memory at address 0x0
) at /home/lvi/dev/MuseScore/mscore/musescore.cpp:2440