MuseScore crashes when playing MusicXML file with chord symbols

• May 24, 2020 - 23:57
Reported version
3.x-dev
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

OS: macOS 10.15, Arch.: x86_64, MuseScore version (64-bit): 3.5.0.26969, revision: 1ee2fe3

  1. open the attached file "Amazing Grace.musicxml"
  2. Start Playback

Actual Result: crash. See attached crash log.
Expected Result: no crash

This works OK in MuseScore 3.4.

Attachment Size
Amazing.Grace_.musicxml 54.28 KB
crash log.txt 121.1 KB

Comments

Title MuseScore crashes when playing MusicXML file MuseScore crashes when playing MusicXML file with chord symbols

This can easily be reproduced from scratch. Simply create a new score, add a chord symbol, export as MusicXML, open the MusicXML file, press play.

If you want to play the score in that version of MuseScore without it crashing, you must first disable playback of chord symbols. This can be done globally by going to MuseScore->Preferences...->Note Input and unchecking "Play Chord Symbols", or by selecting all chord symbols and unchecking "Play" in the inspector.

The simplest way to prevent the crash for the upcoming release of MuseScore 3.5 is to replace the Q_ASSERT here with

      IF_ASSERT_FAILED(channel)
            return;

And in order to use IF_ASSERT_FAILED, rendermidi.cpp must first #include "log.h".

Of course, there is still the matter of assigning the correct channel to the chord symbol upon import from MusicXML, but this would probably be a good change to make anyway.

And it isn't just the Alpha that crashes, but also the latest development builds, is it is not fixed by the fixes for the other crashes with chord symbol playback

Fix version
3.5.0