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);
I think the crash comes from the fact that an actual rest is cast into a chord here:
https://github.com/musescore/MuseScore/blob/4ce82112ae9c6b4d0e1e33004ce…
and thus it goes through the addchord function here:
https://github.com/musescore/MuseScore/blob/4ce82112ae9c6b4d0e1e33004ce…
Fixed in branch master, commit 6637bfaf39
Fix #269901: fixed segmentation fault within piano roll editor
Automatically closed -- issue fixed for 2 weeks with no activity.