Crash when using 'w' to double length of note in excess of remaining score/measure length

• Apr 7, 2014 - 20:17
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Steps to reproduce:
1) Create a new score from scratch: arbitrary instrument,key signature
2) Use 4/4 as the time signature and make it 2 measures long
3) Add half notes to fill both measures, then while focused on the final half note, press w on the keyboard

Musescore then crashes.

Even though this reproducible case doesn't represent a real use case I have found it to be an issue when cleaning up lines copied and pasted from midi scores when I accidentally double the wrong note in the middle of a line.

I think it'd be preferable if Musescore gave a warning or error when the user does this, or perhaps offers to extend the score to accommodate the longer note length.

Priority set to critical because of the crash that happens. It is, however, an odd edge that not everyone will encounter, so I understand if it gets reprioritized


Comments

I was able to make it crash, but not 100% of the time, so extra steps *were* involved. Be sure to stay in note entry mode; don't leave it. After entering the last half note, if W doesn't immediately crash, try left arrow then right arrow to synchronize the cursor, then W. I also had deleted the measure then re-entered it, but I'm not sure that's necessary - I think it's more about the cursor manipulation.

I managed to make MuseScore crash consistently (in my system) after a "w" command.
I don't know if it is this very same bug, but here are the steps for me:
1- Open attached file;
2- Select one of the notes in the second measure (C or E);
3- Press N to enter note-edit mode (this step is necessary for the crash, otherwise no crash occurs);
4- Press w to double the length (note that in the E case nothing should happen);
5- Without exiting note-edit mode, press left arrow to navigate to previous chord -> crash.

Variant:
At step 5 press right arrow -> crash.

Attached backtraces from gdb for the left-arrow and right-arrow cases.

Windows 8.1, commit 7a46181

Attachment Size
prova_q_w.mscz 1.31 KB
gdb_left-arrow.txt 1.45 KB
gdb_right-arrow.txt 1.7 KB

lasconic, Mark, ABL, thanks for looking at this.

Being in note-edit mode is indeed necessary for this to happen. I should have made that clear.