MuseScore 3.6 crashes when rearranging instrument positions and changing Ordering (see description)

• Jan 16, 2021 - 00:15
Reported version
S2 - Critical

1) Create a new score and use one of the Orderings. I used Orchestral. You can use any instruments.

2a) After the score is made, press I (go to the Instruments list) and try to move one of the instruments around (esp. outside of its natural grouping, e.g. moving a Violin out of the String section).

2b) Also try changing the Ordering.

3) More often than not, it crashes on either one of these actions.

Since this happens with a completely new score, I have not uploaded any specific score. As you can see in the "Reproducibility" field, this is entirely random. I have done 2a and 2b multiple times and sometimes it works and sometimes it crashes. I can't see any real pattern.


Thanks! I'll try to reproduce in order to find the pattern. If you do discover a consistent (or semi consistent) pattern, it would be very useful if you could update us here. What OS are you on?

Additional information request: does the score have notes in it, or does it also happen with a newly created empty score?

Frequency Once Many
Regression Yes No
Severity S2 - Critical S3 - Major
Reported version 3.x-dev  

I attach the file.
I have generated the score and moved the instruments. All ok;
I saved, reopened and tried to reorder: crash
OS: Linux Mint 20.1, Arch.: x86_64, MuseScore version (64-bit):, revision: github-musescore-1977cb3

Edit: it seems random.

Attachment Size
#315599.mscz 17.77 KB

I'm now able to reproduce the crash:
1) Load the attached score.
2) Open the Edit Instruments form and move e.g. the Bassoon a few positions downwards and close the form.
3) Reopen the Edit Instruments form and choose the original ordering Orchestrale and close the form.
4) Reopen the Edit Instruments form again and change the position of any instrument.
Now the application crashes.

Working on a solution right now.

Status PR created fixed

Fixed in branch 3.x, commit d7dd65412a

_Fix #315599 - MuseScore 3.6 crashes when rearranging instrument positions and changing Ordering

Add the customized score order always to the filter if the new order is a customized order.
Also the never used method ScoreOrderListModel::setCustomizedOrder removed._

Fix version