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 #25145: Crash relating to StaffTypeChange #26289

Merged

Conversation

mathesoncalum
Copy link
Contributor

@mathesoncalum mathesoncalum commented Jan 31, 2025

Resolves (partially): #25145

This is a preventative fix - with these changes it is no longer possible to apply multiple StaffTypeChanges to the same measure (see video for updated behaviour). This PR initially included some logic for handling corrupted StaffTypeChanges in existing scores (ae0627c) but this ended up causing another type of corruption that is arguably more severe than the crash.

stcdrag.mov

@mathesoncalum mathesoncalum force-pushed the 25145-stafftype_change_crash branch from d9669e1 to b7b4fb7 Compare January 31, 2025 13:10
@DmitryArefiev
Copy link
Contributor

Tested on Win10

@mathesoncalum The crash still occurs on my side..

bandicam.2025-02-04.18-50-29-869.mp4

StaffTypeChangeIssue5_gh_2.zip

logs.zip

@mathesoncalum mathesoncalum force-pushed the 25145-stafftype_change_crash branch 2 times, most recently from ae0627c to 3650d6d Compare February 5, 2025 11:55
@DmitryArefiev
Copy link
Contributor

Tested on Win10, Mac13.6, LinuxUbuntu24.04.1 LTS - it is no longer possible to apply multiple staff type change marks to the same measure with caused to crash previously

@mathesoncalum mathesoncalum merged commit 29c344d into musescore:master Feb 5, 2025
11 checks passed
@mathesoncalum mathesoncalum deleted the 25145-stafftype_change_crash branch February 5, 2025 14:32
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Feb 5, 2025
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Feb 6, 2025
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.

3 participants