Score ceated with "Save Selection..." crashes MuseScore if the selection didn't contain the top instrument

• Mar 3, 2015 - 12:45
Type
Functional
Severity
S2 - Critical
Status
closed
Project
  1. take any existing score with more than one instrument
  2. Select a (range of) measure(s), not including the top instrument
  3. "Save Selection...", give a name, OK
  4. open the file just created

Expected result: Only the selection is in the new file
Actual result: crash

Debug output:
Fatal: ASSERT failure in QList::at: "index out of range", file C:/Qt/5.4/mingw491_32/include/QtCore/qlist.h, line 478 (:0, )

Prior to that a couple
Debug: Score::readStaff(): missing measure! (C...\MuseScore\libmscore\scorefile.cpp:305, void Ms::Score::readStaff(Ms::XmlReader&))

Can't get a proper stack trace.


Comments

Status (old) active fixed

I can't either. Let's mark it fixed then.

Guess we should open a new issue for the 'Save Selection' shortcomings?

BTW: a treble clef is there (even if the selection was written in bass clef ) and the measure properties show the correct time sig, nominal and actual, even for irregular measures.
Keysig is missing, but pitches are kept (and accidentals added as needed), so it isn't too bad.

Hmm, if the selected measure is not in 4/4 (nominal), sanity check complains "Expected 4/4; Found 6/4" (here in a 3/2 sime sig). Loading anyway and a 4/4 score shows, but indeed corrupt...