A tied grace note in note input mode when the next(s) measure(s) are also full causes a crash
MS 2.1 / Win 7/10
- Select grace note.
- Enter note-input mode.
- Press [Shift] + [+].
Result: Crash. See attached file.
Attachment | Size |
---|---|
grace_note_ties_crash.mscz | 9.7 KB |
Comments
I can confirm the crash (or at least, a hang, that may eventually crash also) using this score. The problem only occurs in note input mode, not if you add the tie in normal mode. It seems the loop over nnote in Score::cmdAddTie() is not noticing its job should have been done after the first iteration, perhaps due to confusion over the fact that the grace note and base not have the same segment.
2.1 version, and currents 2.2 dev. and 3.0 dev. / Windows7/10
Steps from scratch:
1) Create a score, 4/4, 2 measures
2) Enter four quarter notes in first measure, and a whole note in second measure
3) Add an accacciatura, or a grace note, on the first note (necessary condition)
4) Select this accacciatura/grace note
5) Press "N"
6) Press "+" for tie (or click on icon in toolbar)
Result: hang -> crash
The test file: grace tie.mscz
By appending a measure, or if there is a rest somewhere in the score: no crash: you get eg:
Same behaviour for accacciatura, grace note, and grace note after (in this last case, you must select the first note always, ie the first quarter note)
After checking, this issue appears on August 2015, 28.
So, I guess it's a side effect of the previous commit: https://github.com/musescore/MuseScore/pull/2179
Thanks, that confirms the location of the bug and hopefully helps me isolate the cause!
Here are fixes for master and 2.2:
master: https://github.com/musescore/MuseScore/pull/3367
2.2: https://github.com/musescore/MuseScore/pull/3366
Fixed in branch master, commit cda6902409
fix #267789: crash on tie with grace note
Fixed in branch master, commit e1214dfa61
Merge pull request #3367 from MarcSabatella/267789-tie-grace-master
fix #267789: crash on tie with grace note
Fixed in branch 2.2, commit 672c12c6b7
fix #267789: crash on tie with grace note
Fixed in branch 2.2, commit 47d361ba4d
Merge pull request #3366 from MarcSabatella/267789-tie-grace
fix #267789: crash on tie with grace note
Automatically closed -- issue fixed for 2 weeks with no activity.