This score won't open

• May 9, 2025 - 19:36

Can anyone try to open this file? A member of the French forum is having a nervous breakdown, and is about to quit MuseScore. The file doesn't show up corrupted, but it runs in a loop, hangs and crashes. I've looked in the .mscx file, but it's like looking for a needle in a haystack...
This file: La Morte (version 2).mscz


Comments

In reply to by mercuree

The crash is related to the fact that in the old version of Musescore it was possible to add several StaffTypeChange Elements to one measure.
But since version 4.5 this has been fixed and it is impossible to add several StaffTypeChange elements.
However, the crash was not fixed for old projects that already contained several such elements in one measure.
https://github.com/musescore/MuseScore/issues/25145

In reply to by cadiz1

If you search the mscx file for the tag, you will see that there is a measure that contains as many as 3 of them; by deleting 2 of these elements the score opens again. Obviously 'mercuree' already knew what to look for, otherwise, as you said, it was just like looking for a needle in a haystack...

In reply to by cadiz1

Despite what @ILPEPITO says, I didn't know what was causing the crash in this case at first.
I don't know how to debug C++ applications, so I always follow this principle:
1. First, instruments are removed from the file until the file starts opening.
2. Then only the instrument or staff that causes the crash is left in the file.
3. Then measures are removed from the end until the file starts opening.
4. Then I find the problematic measure and look at its contents and look for anything that seems suspicious to me.

In reply to by mercuree

I was just guessing, assuming something similar had happened to you before. The strategy you suggest is certainly very valid, even if it seems to require a type of patience that I do not possess. In any case, my sincere compliments. The question remains why it happens so often that files become corrupted.

Do you still have an unanswered question? Please log in first to post your question.