-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mu4] fix #327681 illegal repeatsegment crash #10159
Conversation
3162e30
to
762ce58
Compare
We might want to update Q_ASSERTS to IF_ASSERT_FAILED as per https://github.com/musescore/MuseScore/wiki/Error-handling; but I've not included it here yet, as it would touch more in this file than relevant to the issue. |
Rebase needed (merge conflict must be in the testing part). Issue came up again in https://musescore.org/en/node/335346 |
762ce58
to
dd9f0e1
Compare
…a, jump and end repeat combination
no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cbjeukendrup would be nice to have this merged in before beta; one less crash to worry about then ;-) |
It looks good to me, so I've asked @vpereverzev to take a look too, since we're already entering extra careful mode :) When it comes to asserts, we have two flavours:
|
The Q_ASSERT was there more as a glorified debug breakpoint; the further handling of the scenario is the same whether the assert would've been hit or not. |
ty! |
illegal repeatsegment inserted due to a certain open volta, jump and end repeat combination
Resolves: https://musescore.org/en/node/327681
MU4 version of PR #10158
Fixes interpretation order so the end repeat is covered by the open volta if a jump also exists in the same measure.