Crash on opening a particular 1.X score
Reported version
3.2
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
1) Download and open this score: https://musescore.com/user/1239061/scores/543841
Result: crash
Comments
The crash occurs inside
Chord::pagePos()
while trying to determine the System associated with a Chord for whichisGrace()
happens to betrue
. It is assumed that the parent of such a Chord is another Chord, but the actual parent object turns out to be a Segment instead. The crash can be prevented by simplifying these two lines:to just this line:
since the grace chord's segment should be on the same system as the parent chord's segment, and we don’t need the parent chord for anything else. However, this may be an indication that there is something wrong with the way that grace chords are added to a score upon import from 1.x.
The problem was with the grace note in measure 57. Somehow it got written to the end of measure 56. I have attached a corrected version of the score that opens properly in MuseScore 3 without having to modify
Chord::pagePos()
.