Using test-score.musicxml.txt when going to engrave the chord in second instrument, chord engraver looks for the applicable clef but, incorrectly, finds the clef change in instrument 1 because the method does not check for the clef instrument, and tries to assign the clef to the second staff of instrument 2 that do not exist, causing the crash.
Using test-score.musicxml.txt when going to engrave the chord in second instrument, chord engraver looks for the applicable clef but, incorrectly, finds the clef change in instrument 1 because the method does not check for the clef instrument, and tries to assign the clef to the second staff of instrument 2 that do not exist, causing the crash.