[MusicXML import] crash when importing file with duplicate rest

• Mar 30, 2019 - 07:52
Reported version
3.0
Type
Functional
Frequency
Few
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Importing the MusicXML file contained in https://musescore.org/en/node/286768 leads to a reproducing crash with error message: "mscore/importmxmlpass2.cpp:Ms::addRest: cannot add rest at tick 147120 track 25: element already present"

Using MuseScore 3 commit dd3e685 of Mon Mar 11, expect the same crash in current master.

Stack trace (relevant part only):
0 org.musescore.MuseScore 0x000000010c3ae9e5 Ms::MusicXMLParserNotations::addToScore(Ms::ChordRest*, Ms::Note*, int, std::__1::array&, Ms::Glissando* () [2], QMap >&, std::__1::array&, Ms::Tie&) + 229 (importmxmlpass2.cpp:6072)
1 org.musescore.MuseScore 0x000000010c39a03a Ms::MusicXMLParserPass2::note(QString const&, Ms::Measure*, Ms::Fraction, Ms::Fraction, Ms::Fraction&, QString&, QList&, int&, Ms::Beam*&, QVector&, int&) + 10570 (importmxmlpass2.cpp:4590)
2 org.musescore.MuseScore 0x000000010c390a5c Ms::MusicXMLParserPass2::measure(QString const&, Ms::Fraction) + 2700 (importmxmlpass2.cpp:2096)


Comments

Fix version
3.1.0