Edit bracket lead to crash

• Dec 17, 2017 - 08:48
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Steps to reproduce:
1) Create a new score
2) Add instruments
3) Add bracket on the first staff
4) Extend the bracket to others staves

Expected behavior:
- Bracket can be extend

Actual behavior:
- MuseScore crash

Version: MuseScore 3.0 revision 2c391b6 (Same behavior with Nightly 79b596f)

OS: Windows 7 SP1 x64 EE French and Windows 10 1709 x64 EE French

Test score is attached, and same behavior when choose a Choir SATB template
Edit Bracket Crash.mscz


Comments

Status (old) duplicate fixed

Fixed in branch master, commit f1c36a6ed9

fix #240831, fix #267689: crash on editing arpeggios, spacers, brackets and stems

Added required call to the super startEdit() method to initialize ElementEditData for further usage in startEditDrag.
Removed nullptr check since it is actually useful to have crashes on master to find incorrect program states, but not just avoid occasional crashes.