MuseScore crashes when opening file

• May 25, 2014 - 23:59
Type
Functional
Severity
S2 - Critical
Status
closed
Project

I added an instrument to a score. It became corrupt (wrong notes appeared on wrong staves), then I undid the changes and saved the score. Now MuseScore can't open it (either 1.3 or 2.0 nightly) but crashes when trying to load it. I attached the corrupt file.

Attachment Size
9 Peccator videbit.mscz 5.48 KB

Comments

The file was created in 1.3, and 1.3 won't receive further fixes. If you can produce steps to reproduce the problem with 2.0, please post them and re-open this.

Meanwhile, it would probably be possible to edit the MSCX file within the the MSCZ archive to eliminate the crash. Running under the debugger shows it crashes trying to do something with staff 12. You might try posting to the Support forum, perhaps someone there will be able to repair the file for you. Failing that, they may be able to help you find a recent backup or auto-saved version.

It seems there was an orphan staff at the end (i.e. a staff not listed in the part/intrument section). I just cloned the definition of the last-but-one part/instrument.
The file should load now as it is, but it is better to copy/paste the notes of this last staff into a new one and delete it.

Do you know how you managed to obtain this kind of corruption?

Attachment Size
9 Peccator videbit.mscx 183.03 KB

Thank you for looking into the issue! Fortunately, I had a backup of an older version of the file, but unfortunately, I can't reproduce the operations to achieve an unloadable file. It involved reordering the instruments and adding a new one. I fear the corruption is indeterministic.