musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.29k stars 2.66k forks source link

[score specific] Consistent crash when changing time signature #16915

Open Stccl opened 1 year ago

Stccl commented 1 year ago

Issue type

Crash or freeze

Bug description

On the attached score, when trying to change the time signature in any bar, the program crashes, making it effectively impossible. WIP.zip

Steps to reproduce

Screenshots/Screen recordings

No response

MuseScore Version

MuseScore version (64-bit): 4.0.2-230651553, revision: github-musescore-musescore-dbe7c6d

Regression

I don't know

Operating system

OS: Windows 10 Version 2009, Arch.: x86_64

Additional context

No response

cbjeukendrup commented 1 year ago

The cause of the crash seems to be that the parts in this file are corrupted. Do you have any idea how this could have happened?

I think the best/only option is teaching MuseScore to detect this kind of corruption, and in the future also offering the user to fix it by deleting the problematic parts.

Stccl commented 1 year ago

@cbjeukendrup There is one thing I do remember about this: After having already noticed the crash, I renamed to score to "WIP" in order to post it here. After having done that, I opened it once more to give it one more try, but this time MuseScore wasn't even able to start it. It gave me a corruption error but couldn't identify any part / bar as a possible cause for it. On the second try though, I was able to open it without any apparent issue, as I could before (even though the recurring crash which was still present).

Also, on a side note, I managed to get around all of this and continue working on this piece by simply copy-pasting everything into a new blank score, after which the crash was no longer happening.