Crash on load of score with staff type change on measure 1
Reported version
3.2
Priority
P1 - High
Type
Functional
Frequency
Few
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
1) default score
2) add staff type change to bar 1
3) save
4) close
5) reload
Result: crash, trying to set the properties on the staff type change. We're looking up the measure by tick, but there are no measures added yet, so no measure is returned.
Fix version
3.3.0
Comments
:-)
OK, closing #283619: Crash opening score related to staffTypeChange as a duplicate of this here then
And it came up again in https://musescore.org/en/node/292256
Both have sample scores and stack traces
Came up again and with a sample score in https://musescore.org/en/node/294309,
See https://github.com/musescore/MuseScore/pull/5318.
Fixed in branch master, commit af8f3762cb
_fix #291969: Crash on load of score with staff type change on measure 1
If a staff type change occurs on the first measure, Staff::staffTypeListChanged() will be called on a score that does not have any measures yet. In this case, we do not have to update the layout range at this time, because there is not yet anything to layout._
Fixed in branch master, commit 94df206dd7
_Merge pull request #5318 from mattmcclinch/291969-staff-type-change
fix #291969: Crash on load of score with staff type change on measure 1_
Automatically closed -- issue fixed for 2 weeks with no activity.