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 #368929: Crash on playback with hidden staves and 'superfluous' voltas #647

Draft
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

Jojo-Schmitz
Copy link
Owner

@Jojo-Schmitz Jojo-Schmitz commented Sep 18, 2024

Resolves: https://musescore.org/en/node/368929
Resolves: musescore#24802

Not exactly sure what the deal is here, but the crash does happen while processing voltas, and the score does have them for both visible staves, and is also having some invisible staves (without voltas).
Just making the invisible staves visible fixes the crash, just removing the 'superfluous' voltas does not.

This PR just does some sanity checks before dereferencing this pointers, so is more like band aid rather than a real fix.

@Jojo-Schmitz Jojo-Schmitz changed the title Fox #368929: Crash on playback with hidden staves using voltas Fox #368929: Crash on playback with hidden staves and 'superfluous' voltas Sep 18, 2024
@Jojo-Schmitz Jojo-Schmitz changed the title Fox #368929: Crash on playback with hidden staves and 'superfluous' voltas Fix #368929: Crash on playback with hidden staves and 'superfluous' voltas Sep 18, 2024
@Jojo-Schmitz Jojo-Schmitz marked this pull request as draft September 18, 2024 17:47
@Jojo-Schmitz
Copy link
Owner Author

Jojo-Schmitz commented Sep 18, 2024

Seems more like pure luck (or lack thereof) whether this fixes the crash or not.
Still crashes in a MinGW build, but not in an MSVC build (and I can't debug the former).

@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x-playback-hidden-staff-volta-crash branch from 5927914 to d0201e5 Compare September 18, 2024 19:05
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.

1 participant