Skip to content
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

Fix crash on opening specific file #26705

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cbjeukendrup
Copy link
Contributor

@cbjeukendrup cbjeukendrup commented Feb 24, 2025

Resolves: #26696

There were two different problems, fixed in two different commits, and I'm not very confident about both of them.

For the Volta one, I'd think that code should not even be called at all when effectiveStaffIdx is muse::nidx, but I found it difficult to figure out where to put such a check.

For the StringData one, I have no idea why that if condition was there, and I'm also not very certain about the consequences of this change, but at least it fixes this particular crash...

Otherwise we could get a crash in `StringData::fretChords` at `bUsed[nNewString]++;`, because `nNewString` would still be -1 at that point.
(Such crash would be seen in the file from musescore#26696.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on opening with a file saved in previous versions of Musescore
1 participant