Crash by removing instruments with parts in a certain configuration

• Dec 26, 2018 - 22:10
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0.4785, revision: c1a5e4c
Issue found by working around the attachment in this thread: https://musescore.org/en/node/280665

Steps from scratch:

1) Create new score, 4 measures, for: 4 flutes, 1 piano, 1 flute - in this order.
You get this test file: test parts.mscz
2) Create parts (New all/OK)
3) Press "I"
4) Remove the three last instruments (ie flute, piano, flute)
5) OK

Result: crash


Comments

Note: by deleting eg the two last instruments, or the three first: no problem. I thought the bracket would be involved. Apparently not (after deletion and create parts after that).
BTW, a score with 6 flutes results in same crash, always after create parts : 6 flutes.mscz

But no problem with 5 flutes (and deletion of the three last): 5 flutes.mscz

For now and from scratch, this configuration and the deletion - in a score with parts for 6 instruments, at least - of the three last instruments, leads to crash.

So, after completing the investigation, I can observe this issue is constitutive of the big change of code relating to the layout, in mid-April 2016 for the 3.0.
Indeed, in the scenario described above, I get a crash with this one: fe2eea4 (and all followings).
And not with the immediate previous one, on April 1: a65f06b

Fix version
3.0.1