Crash when changing voice of chord with tied grace note
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
The minimum requirement I have found to cause the crash is a chord with 2 notes and 3 grace notes (of any before variety) which are not a chord with 2 of the grace notes tied to the main note as in this picture
Select the chord (one way is to click a main note the shift+click the another main note) and change voices (I always press ctrl+alt+2 in my testing).
Result is a crash.
I suspect this is related to #298849: The 2nd note in a passage of grace notes will not tie to the main chord since there is a second note that is successfully tied to the chord. Because of this bug, the easiest way to add these tied grace notes is to start at the top, add one grace note, tie it, add another adjust the pitch, tie it and so forth.
Fix version
3.5.1
Comments
Related to #310776: [EPIC] Grace note issues
I don't think this issue is related to #298849: The 2nd note in a passage of grace notes will not tie to the main chord. The root cause of this issue is iterating over a list of item while the items are deleted in that loop.
PR is under test.
See https://github.com/musescore/MuseScore/pull/6609
Fixed in branch 3.x, commit bfd3466f66
_Fix #310349 - Crash when changing voice of chord with tied grace note
The root cause of the crash was deleting elements in a for loop which was iterating over a list with elements to be deleted. There is no relation with note being tied or not._
Automatically closed -- issue fixed for 2 weeks with no activity.