Musescore 4 Crashes on import XML

• Feb 16, 2023 - 01:02
Reported version
4.0
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Drag XML file into MS4 and MS4 crashes. XML File attached.

Attachment Size
dusty trails.xml 678.92 KB

Comments

Crash confirmed (commit a7a420b of 23 Jan 2023).
Stack trace:

0 0x0000555555fee881 in mu::engraving::Tuplet::add(mu::engraving::EngravingItem*) ()

1 0x0000555556902903 in mu::engraving::MusicXMLParserPass2::note(QString const&, mu::engraving::Measure*, mu::engraving::Fraction, mu::engraving::Fraction, mu::engraving::Fraction&, mu::engraving::Fraction&, mu::engraving::Fraction&, QString&, QList&, int&, mu::engraving::Beam*&, QVector&, int&, std::map, std::allocator > >&, std::map, std::allocator > >&) ()

2 0x0000555556905ef4 in mu::engraving::MusicXMLParserPass2::measure(QString const&, mu::engraving::Fraction) ()

3 0x0000555556907713 in mu::engraving::MusicXMLParserPass2::part() ()

4 0x0000555556908c5c in mu::engraving::MusicXMLParserPass2::scorePartwise() ()

5 0x0000555556909052 in mu::engraving::MusicXMLParserPass2::parse() ()

6 0x0000555556909271 in mu::engraving::importMusicXMLfromBuffer(mu::engraving::Score*, QString const&, QIODevice*) ()

7 0x0000555556909a88 in mu::engraving::importMusicXml(mu::engraving::MasterScore*, QString const&) ()

8 0x000055555688531f in mu::iex::musicxml::MusicXmlReader::read(mu::engraving::MasterScore*, mu::io::path_t const&, std::map, std::allocator > > const&) ()

Last console message:
DEBUG | main_thread | engraving | addRest: cannot add rest at tick 46/4 (22080) track 4: element already present

Relates to #270643: [EPIC] MusicXML import/export issues