MuseScore crashes when playing MusicXML file with chord symbols
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
- open the attached file "Amazing Grace.musicxml"
- 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 |
Fix version
3.5.0
Comments
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 withAnd 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
See https://github.com/musescore/MuseScore/pull/6115. This makes sure that channels are properly assigned to chord symbols upon import, and also makes the change that I suggested above.
Fixed in branch 3.x, commit e648422d31
_Fix #305869: MuseScore crashes when playing MusicXML file with chord symbols
Resolves: https://musescore.org/en/node/305869._
Fixed in branch 3.x, commit 28b95a1172
_Merge pull request #6115 from mattmcclinch/305869-harmony-channel
Fix #305869: MuseScore crashes when playing MusicXML file with chord symbols_
Fixed in branch master, commit eb0be87650
_Merge pull request #6115 from mattmcclinch/305869-harmony-channel
Fix #305869: MuseScore crashes when playing MusicXML file with chord symbols_
Automatically closed -- issue fixed for 2 weeks with no activity.