Crash by removing instruments with parts in a certain configuration
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
Fix version
3.0.1
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.
Former issue. I get the same result throughout all 2018 for now.
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
See (6 flutes -> creates parts-> "I" -> remove 3 last flutes -> crash)
See https://github.com/musescore/MuseScore/pull/4511
Fixed in branch master, commit a60936b90c
fix #280714: copy excerpts list before removing excerpts in a loop
Fixed in branch master, commit 3cadbdcf4e
Merge pull request #4511 from dmitrio95/280714-excerpts-remove-loo
fix #280714: copy excerpts list before removing excerpts in a loop
Here is a score with the regression for me, it crashes when I attempt to remove the empty staff.
In reply to Here is a score with the… by Carl Snyder
Have you tried it using a nightly? This fix will be released the 3.0.1 in about a week. See https://musescore.org/en/download#Development-builds and download the second file to test the fix. It will coexist with all other versions.
Automatically closed -- issue fixed for 2 weeks with no activity.