Copy-paste an empty measure onto a measure located before a MM-rest causes corruption/crash

• Aug 4, 2016 - 18:28
Reported version
2.2
Type
Functional
Severity
S2 - Critical
Status
closed
Project

GIT commit 1736346 / Windows 10

1) "My First Score"
2) Enter a whole note in the second measure
3) Exit note input mode -> press M
4) Select the first measure (empty): image below
first.jpg
5) Copy-paste this first measure (or use "R" key) onto the second measure.

First unexpected result (concerning the selection)
first1.jpg
6) Press "R" key

Result: crash

Attachment Size
first1.jpg 8.96 KB

Comments

A variation, the most likely, but with an "interesting" result after Undo, ie a nasty corruption (empty measures rests) followed without surprise by a crash.

Steps:

1) Treble clef template
2) Add a whole note in the second measure.
3) Exit note input mode -> Press "M"
4) Copy-paste the first measure (empty) onto the second measure
5) Undo

Result: empty measures rests, and no more barlines!
after undo.jpg

6) Click on the staff
Result: crash

Note: This corruption is not reproductible with "My First Score" by default, in reason of the presence of the vertical frame, which seems involved somewhere. Delete this frame (difficult, probably another issue, the only way is first to cut the edge of the frame - the blue dashed line- then remove the word "Title"), and the corruption will appear if you proceed with the mentioned steps above.

Well, after checking, the two issues described above don't seem really (or directly?) related.

1) Indeed, the first one (crash after copy-paste twice an empty measure before a mm-rest) goes back to mid-April, when the big change of the new layout was merged. So, I can reproduce since this Nightly: fe2eea4

2) For the second one (corruption after undo), this appears later, ie on last June, 3.

- No corruption with this nightly (undo works as expected): 41b89ae
- Corruption and crash with the next one: a41b109
See also maybe this related (?) commit: https://github.com/musescore/MuseScore/commit/fab01c5ec6822f89c92d7dd69…

EDIT: Let me know if I should report separately the two issues.

Reported version 3.0 2.2

Active in the 2.1 dev. 213632d

With steps:

1) "My First Score"
2) Add a whole note in the second measure.
3) Exit note input mode -> Press "M"
4) Select the first measure
image mm.jpg
5) Press "R" key twice

Result: crash

Title Copy-paste an empty measure onto a measure located before a MM-rest leads to crash/corruption Copy-paste an empty measure onto a measure located before a MM-rest leads to crash
Title Copy-paste an empty measure onto a measure located before a MM-rest leads to crash Copy-paste an empty measure onto a measure located before a MM-rest causes corruption/crash
Status (old) needs info active

With a94d6c4, and steps in comment #3
(and two additional steps)

1) "My First Score"
2) Add a whole note in the second measure.
3) Exit note input mode -> Press "M" (the test file at this step: empty mm.mscz )
4) Select the first (empty) measure
5) Press "R" key twice
6) Press "M"

Result: corruption
corru1.jpg
7) Enter a whole note in first measure
8) Press "R"

Result: crash