Opening a midi that starts before the beginning of the clip causes crash

• Sep 6, 2021 - 04:58
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
PR created
Regression
Yes
Workaround
No
Project

1) Open a Midi that starts before "0" in the timeline
2) MuseScore will crash instantly.

Instead, there should be a couple of detectors that scan the Midi before attempting to open it. Try to check for potential crash-inducing properties. Out of bounds, etc.


Comments

Title Can't open a midi that starts before the beginning of the clip Opening a midi that starts before the beginning of the clip cause crash
Severity S3 - Major S2 - Critical
Title Opening a midi that starts before the beginning of the clip cause crash Opening a midi that starts before the beginning of the clip causes crash
Regression No Yes
Reported version 3.6  

Works in MuseScore 1.3 BTW, it just imports it
But crashes already in 2.3.2, so a 2.x regression of sorts

This is an incorrect midifile. It doesn't open in Sekaiju or Cakewalk either.
I was able to open it with an old software. In it, it is seen that it started from the 23302nd measure.

Attachment Size
cp01.png 6.34 KB

As said: It does open, but does not play. Even if I woule wait 12hrs 56mins 42sec , it would not play, as Windows Media Play stops right away, as seen by the changes of the icon for Play and Pause. I can't 'fast forward' either.