Crash when entering notes after swap with clipboard and undo

• Aug 10, 2018 - 08:43
Reported version
2.3
Priority
P1 - High
Type
Functional
Severity
S3 - Major
Status
closed
Regression
No
Workaround
Yes
Project

Inspired by the reading of this thread: https://musescore.org/en/node/275090, and after testing.
See:

Video1.gif


Comments

I noticed the backwards notehead when I suggested this method which is why I called it glitchy, but I didn't carry it through to see the crash.

My assumption is that the backwards notehead is due to some leftover version of the old note that was cut still being present enough to affect layout even though it doesn't display. Another clue is that after one swap with clipboard operation, nothing appears selected, and yet a second swap with clipboard operation succeeds (nothing should happen if nothing is selected). I'm guessing it the old swapped-out note in the clipboard that is still selected, and probably the crash comes from attempting to restore a selection. That's all speculation; haven't tried building or testing.

UPD: Another scenario reproducing the same issue:
1. Copy quarter note
2. Select whole rest
3. Paste
4. Paste again
5. Paste again
6. Undo+Undo+Undo
If it is still not crashed, try to enter note at the measure with whole rest.

The reason is in swapping with a note, not a segment. If you select segment to put the note, it won't crash I believe.

This case is viable for 2.3.2 as well.