Score state corruption and crash after adding a frame to a nested horizontal frame
Reported version
3.4
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
1) Add a vertical frame somewhere in a score.
2) Right-click the frame, choose Add→Add Horizontal Frame.
3) In Palettes click on "Add Vertical Frame" or "Add Horizontal Frame".
Result: everything disappears, only a few frames are displayed.
4) Undo 3 times.
Result: crash. Also neither of "undo" actions doesn't restore to displaying anything meaningful in a score.
Actually there doesn't seem to be any sense in doing such things with nested frames, but this is still a working way to inadvertently break MuseScore.
Fix version
3.5.1
Comments
https://github.com/musescore/MuseScore/pull/6339
Fixed in branch 3.x, commit f84585f7d7
_fix #307929: corruption when inserting frame in front of nested frame
Resolves: https://musescore.org/en/node/307929
If you try to insert a frame in front of a horizontal frame
that itself is nested within a vertical frame,
the list of measurebases for the scores gets corrupted,
since the horizontal frame is not actually part of the list.
Solution here is to make sure we get the top level measurebase
that contains the current measurebase.
In most cases, it's the same thing,
but this will return the vertical frame in the case at hand._
Automatically closed -- issue fixed for 2 weeks with no activity.