Crash when Copy Standard or TAB staff measure and paste it to TAB staff if which contains slur

• Nov 21, 2019 - 13:20
Reported version
3.3
Type
Development
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

OS: macOS High Sierra (10.13)
Arch.: x86_64, MuseScore version (64-bit): 3.3.2.24203
revision: 492d7ef

Step to Reproduce

1.Create Score ; Guitar+Tablature
2.make music in one measure with slur added
3.Copy this “TAB Staff” or “Standard Staff” measure and Paste it to next “TAB Staff” measure

Crash

*It doesn’t happen when copying Standard Staff or TAB Staff and Paste it to “Standard Staff”.

Attachment Size
slur.mscz 3.79 KB

Comments

Status PR created fixed

Fixed in branch master, commit 49fedc47c4

_fix #297428: crash on copying measure with slur and pasting it to TAB staff

1) Fix incorrect track2 assignment to spanners on pasting in some
situations due to not handling the case of track2 == -1.
2) Fix staff index checks in ScoreView code to avoid a crash if
incorrect staff index gets recorded to CmdState.
3) Add an assertion to catch invalid negative staff indices recorded
to CmdState._

Fix version
3.3.3