[MusicXML import] crash when importing file with duplicate rest
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
Also crashes today's master.
Pull request #4860
Fixed in branch master, commit 2bf411cbf3
fix #286946 - [MusicXML import] crash when importing file with duplicate rest
Fixed in branch master, commit f47a413048
_Merge pull request #4860 from lvinken/musicxml-import-cleanup-debug-output
fix #286946 - [MusicXML import] crash when importing file with duplicate rest_
Automatically closed -- issue fixed for 2 weeks with no activity.