Crash after undo stave text entry and leaving edit mode
- Create piano score.
- 'Add'>'Text'>'Stave Text'.
- 'Edit'>'Undo'.
- Click page.
Result: Crash (see attached log).
Using MuseScore 3.0 Nightly Build 9dac228 - Mac 10.11.6.
Attachment | Size |
---|---|
Crash after undo stave text entry and leaving edit mode [Log].txt | 72.37 KB |
Comments
Also applies to other text (not tested extensively), including 'Expressive Text', 'Rehearsal Mark' and 'Subtitle'.
Possibly related:
Result: Crash (see attached log).
Using MuseScore 3.0 Nightly Build 9dac228 - Mac 10.11.6.
See https://github.com/musescore/MuseScore/pull/3967.
The problem occurs if the user presses "Undo" in text edit mode, and there are no text edits to undo. This will cause the previous command (in this case, adding the System Text object) to be undone. But the System Text is still being edited, even after having been removed from the Score. This will cause problems upon leaving edit mode.
My fix is to limit undo to just the text edit operations since entering text edit mode, if currently editing text.
Fixed in branch master, commit 1d8adad3bc
fix #276237: Crash after undo stave text entry and leaving edit mode
Fixed in branch master, commit 393845021e
Merge pull request #3967 from mattmcclinch/276237-undo-text-edit
fix #276237: Crash after undo stave text entry and leaving edit mode
Automatically closed -- issue fixed for 2 weeks with no activity.