Toggle between clefs of unpitched percussion and pitched percussion leads to a crash
Priority
P2 - Medium
Type
Functional
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project
242b4ba / Windows 8.1
1) Create a score for Drumset (unpitched) and Glockenspiel (pitched), or load this file: test percussion.mscz
2) Right-click on the second staff -> Staff Properties -> Change instrument -> Choose Wood Blocks (unpitched) -> Ok
3) Press "I" -> Add a staff to the Wood blocks -> Ok
4) Repeat step #2, but the reverse, ie: right-click on the second staff -> and in Staff properties, change the Wood blocks instrument for the Glockenspiel instrument -> Ok
5) "I" -> Remove the first staff (Treble clef) of the Glockenspiel -> Ok
First result, you are here: File .mscz: test percussion step 5.mscz
And image:
6) "N" -> Enter a note in the drumset staff
7) Click on the "Glockenspiel staff"
Result: crash
Fix version
3.6.0
Comments
Changing for pitch to unpitch or vice-versa is not supported correctly. We should disallow it or change the clef accordingly. Having G clef on an unpitched staff is going to cause trouble at one given moment...
Came up again: https://musescore.org/fr/node/122176.
And previously: https://musescore.org/en/node/118956
And before: https://musescore.org/fr/node/97011
so issue #122176: Musescore crashes when I try to make a note in odd rhythm and each of four snare drum parts has a different playback sound and the 2 Forum articles you linked to
Came up again: #202956: Changing instruments from percussion to glock results in crash
See in particular the shorter sequence in comment #5: https://musescore.org/fr/node/202956#comment-720896
For the record/reference: if you save after step #4 (so, after adding the treble clef), and reload the score, you are unable to enter notes (as noticed in other similar report issues)
Still actual, but scenario is really weird... I'm thinking about one more field "Affected users" like "no-one, few, curious users only, everyone" :)
Came up again in #280450: Crash when adding new notes to staff after changing from drumset to pitched instrument
Created a PR to support pitched and unpitched instruments on same staves. Any testing and feedback is welcome.
https://github.com/musescore/MuseScore/pull/6398
Fixed in branch 3.x, commit 8e653c5b13
Fix #97416 - toggle between pitched and unpitched instruments
Worked great. Adding a staff change type allows you to set line numbers and move the line(s) so they look better at the staff type change.
Automatically closed -- issue fixed for 2 weeks with no activity.