Crash by deleting vertical(s) frame(s) in first page of large scores
GIT commit: 5838f84 / Windows10
1) Defaut "Untitled" score
2) Press "I " -> add (count) 12 staffs -> Ok (so, total 13)
Result: a vertical frame is created in the first page (ie the title frame toggles to a new first page)
The test file at this step: 13 staves.mscz
3) Select and cut the vertical frame
Result: surprise: another vertical frame is always here, which jumps a bit higher (EDIT: or the first deletion fails? Or something like that?)
4) Select and cut this second (?) vertical frame
Result: crash
- Same behaviour eg with the Concert band template: Concert band.mscz
1) Select the first measure -> insert a vertical frame
Same result: there is two (?) vertical frames, or the first removal fails -> Cut twice -> crash
Comments
The vertical frame that remains after the frame is deleted is not part of the score. It has no parent system. It will go away if you invoke the "Re-Layout" command from the "Debug" menu. We can force a complete relayout from within Score::removeElement() if the removal of a vertical frame leaves no more systems on the page.
See https://github.com/musescore/MuseScore/pull/3822.
Fixed in branch master, commit 1c827c81bb
fix #274446: Crash by deleting vertical frame in first page of large scores
Fixed in branch master, commit a7a1a56dda
Merge pull request #3822 from mattmcclinch/274446-delete-frame
fix #274446: Crash by deleting vertical frame in first page of large scores
Automatically closed -- issue fixed for 2 weeks with no activity.