Changing instrument in parts for other clef or instrument category results in crash

• Feb 20, 2019 - 07:13
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.1.0.5630, revision: 66dba74

Steps:

1) Treble clef template ( test file: Treble parts.mscz)
2) Create parts (new all -> Ok)
3) Toggle in Part
4) Right-click -> Staff Properties -> Instrument Change -> Violoncello (so, bass clef)
5) Ok -> Ok

---> Crash


Comments

There are several possible scenarios, but the whole thing is really incoherent.

And that's why I was talking about category too, for example (with the same test file)

Staff properties -> "Change Instrument":

  • Piano -> Bass Voice: OK
  • Piano -> Electric Bass: crash

However:

  • Piano -> Soprano Voice: Ok
  • But: Piano -> Men, or Women voices: crash

Also:

  • Piano -> Bassoon (bass clef though): OK. Why?
  • But Bassoon -> Electric bass: crash?

And many others unexpected/incoherent results.

In reply to by cadiz1

I can reproduce your crashes in MuseScoreNightly-2019-02-16-0933-master-27dc900-x86_64 but not in MuseScoreNightly-2019-02-15-1723-master-7678137-x86_64

But, although Nightly 2019-02-15-1723 does not crash, if you change Piano to Electric bass (mapped to Picked bass in the soundfont) in the stave properties in the part, the instrument names are changed, but when you leave the menu, the instrument and the instrument names revert to piano. I found the same erroneous behavior in stable version 3.0.1. This may be related to #281314: Cannot change instrument name or hide them in parts so I do not think that it is a new issue.

The new problem of crashing seems to have been introduced in the update from 15 to 16 February.

Regression Yes No

It's caused by changing from an instrument with fewer channels to one with more. There is a deeper underlying issue though in that changes made to an instrument from the part view are not reflected in the main score. I couldn't quite figure out how to link the two together or why it works when changing from the main score but not from the parts.