Crash when adding, changing and removing staves with slurred grace notes

• Mar 7, 2015 - 02:43
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Open attached score (produced in 1.3).
2. 'Edit'>'Instruments…'.
3. Click on stave.
4. 'Add Linked Stave'.
5. Change staff type of top stave to 'Tab. 6-str. full'.
6. 'OK'.
7. 'Edit'>'Instruments…'.
8. Click on bottom stave.
9. 'Remove'.
10. Change staff type to 'Standard'.
11. 'OK'.
12. 'Edit'>'Undo' twice.
13. 'Edit'>'Instruments…'.
14. Click on stave.
15. 'Add Linked Stave'.
16. Change top stave to 'Tab. 6-str. full'.
17. 'OK'.

Result: Crash (see attached log).

Note: I couldn't reproduce in a 2.0 score.

Using MuseScore 2.0 Nightly Build 4fe7cb1 - Mac 10.7.5.


Comments

I can reproduce. You have to follow the steps very precisely; don't mess up along the way.

The crash occurs when trying to find the measure for a grace note while doing a scanElements(); the chord's parent is a garbage value.

Title Crash when adding, changing and removing staves in 1.3 score Crash when adding, changing and removing staves with slurred grace notes

I can reproduce with a 2.0 score from scratch. it just need a note, a grace note and a slur in guitar score, and then follow the instructions from the OP