Crash when pasting a tied note from a staff to another file containing fewer staves.

• Jun 8, 2018 - 11:25
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project
  1. Open attached mscz (produced in 2.2.1).
  2. Select second chord in tablature stave.
  3. 'Edit'>'Copy'.
  4. Create new violin score (or guitar with either pitched/tablature stave).
  5. Click on bar.
  6. 'Edit'>'Paste'.

Result: Crash (see attached log).

Note: Reproducable with a 3.0 score.

Using MuseScore 3.0 Nightly Build 3fbae04 - Mac 10.11.6.


Comments

I've tried to narrow it down (I'm not a developer), but others might be more successful.

Although I can't reproduce by selecting the notes in the normal stave in this score (hence why I haven't mentioned tablature in the title), I can in another, so I'll try to test again once this is fixed.

Title Crash when pasting note with receiving tie Crash when pasting note with receiving tie on a new score

In my understanding, the main point here is to paste the tied note on a new score. Else, I cannot reproduce simply by adding an instrument via the Instruments dialog box.

1) Load this file: tie.mscz
2) Ctrl + N -> Next -> Treble clef template -> Finish
3) In first file, and TAB staff (image below) : select (Maj + Click) the second tied note -> Ctrl + C
copy.jpg
4) Switch in the treble clef template file
5) Ctrl + V

Result: the program dies, closes

  • Necessary conditions as far I understand right now:
    Two staves first: Standard + TAB (linked or not) or two instruments (eg guitar standard and another, guitar tablature)
    The copy must be done from the second staff/instrument.

And when creating the new file, it is necessary to have only a single staff, standard or TAB no matter (no issue if you add in "I" another staff/instrument, or by choosing eg Grand staff template)

EDIT: TAB staff not necessary. You can reproduce with a file eg for two flutes, make the copy of the tied note from the second staff, and paste to a new created file (and only single staff) : Flutes.mscz

For the record, it's a very former issue.
It goes back since the big layout change for the 3.0 version implemented around Mid-April 2016, eg with fe2eea4

EDIT: a more appropriate title would be: "Crash when pasting a tied note from a staff > to another file containing less staves."

Eg a tied note from second staff/instrument to another file single staff. Or a tied note from third staff/instrument to another file with two staves eg Grand Staff.

Fixed in branch master, commit 1561780063

Merge pull request #3719 from dmitrio95/bugfix/tie_paste_crash

fix #273159: Crash when pasting note with a tie to the new score. The note must be placed in the staff with a bigger number than total number of staves in a new score.

Title Crash when pasting a tied note from a staff to another file containing less number of staves. Crash when pasting a tied note from a staff to another file containing fewer staves.