Crash on certain operations involving MusicXML file containing possibly invalid "slide" elements

• Jun 7, 2019 - 16:25
Reported version
3.1
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
Yes
Workaround
Yes
Project
Tags
  1. Import the attach XML
  2. Check for glissandi, esp. measure 57, rehearsal mark G, Mellophone, there should be none
  3. Switch to Continuous mode
  4. Check for gliss again. see above, not there is one, extending to the last measure of the score
  5. Either save as MSCZ or switch to Page mode

-> Crash

Stack trace:
1 std::vector::end stl_vector.h 591 0xe14050
2 Ms::System::firstMeasure system.cpp 1002 0x94aedd
3 Ms::Glissando::layout glissando.cpp 277 0x8512f1
4 Ms::LayoutContext::collectPage layout.cpp 4370 0x88cbd9
5 Ms::LayoutContext::layout layout.cpp 4564 0x88dccc
6 Ms::Score::doLayoutRange layout.cpp 4550 0x88dbcc
7 Ms::Score::doLayout layout.cpp 4405 0x88cee4
8 Ms::Score::createThumbnail scorefile.cpp 508 0x9bb115
9 Ms::Score::saveCompressedFile scorefile.cpp 592 0x9bb95f
10 Ms::Score::saveCompressedFile scorefile.cpp 497 0x9bb071
11 Ms::MuseScore::saveAs file.cpp 1930 0x645b59
12 Ms::MuseScore::saveAs file.cpp 2427 0x6497d8
13 Ms::MuseScore::cmd musescore.cpp 5941 0x4f5ef4
14 Ms::MuseScore::cmd musescore.cpp 5735 0x4f4f25
15 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 855 0x40a1d6
16 ZN11QMetaObject8activateEP7QObjectiiPPv 0x68c81805
17 ZN12QActionGroup7hoveredEP7QAction 0x26694ee5

Workaround: either stay in Page mode, or save as mscx or delete that glissando

No crash when switching to single page mode

No such crash in MuseScore 2.3.2, so a regression, not sure though about 3.0.5

Attachment Size
forum.xml 2.49 MB

Comments

The XML file contains what appear to me to be invalid "slide" elements (these import as glissando). I'm no expert, but I see 5 slide "start" elements and only one "stop".

Title Crash when saving XML import as MSCZ or switch to Page mode, when switched to continuous mode before Crash on certain operations involving MusicXML file containing possibly invalid "slide" elements