Opening Piano Roll Editor causes crash

• Mar 1, 2018 - 04:27
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project
Tags

Selecting an empty measure and then right clicking on it OR just right clicking on an empty measure (not selected) and then selecting "Piano Roll Editor" causes MuseScore to crash

Specifically QT warns of a segmentation fault and then stops MuseScore


Comments

Went through the debugger and found that the segmentation fault happens when executing the following

in mscore/musescore.cpp, line 3874
pianorollEditor->setStaff(staff);

in mscore/pianoroll.cpp, line 264
gv->setStaff(staff, locator);

in mscore/pianoview.cpp, line 489
updateNotes();

in mscore/pianoview.cpp, line 541
addChord(chord);