When trying to read some Midi files, Juce crashes.
3am03.mid.cpp (40.6 KB)
I attach one of the involved Midi files. (changed the extension that it uploads)
It sometimes raises two or three of the below exceptions. The two jassert are raised in juce_MidiMessage.cpp, and the third one in juce_ByteOrder.h. When not raised, I got some midi messages (never the same number) with negative timestamps, as if not initialized.
I tried with and without a pointer for the FileInputStream, for the same result.
Also, the code works fine with plenty of other midi files.
This file opens fine with a DAW (tested with S1 and reaper)
Any idea what to fix here?