Instant crash when importing MIDI file (example provided)
Hi, I can't get Musescore (last revision, OS: macOS 10.16, Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548020600, revision: 3224f34) to open some MIDI files produced by Ableton Live (Ableton Live 11.0.2 Suite, last build). It instantly crashes. Enclosed file shows an example of something played on a piano, single track, which makes Musescore instantly crash, either on load if I double click it from file manager or when I import it from menu.
Attachment | Size |
---|---|
Floating Dangerous Mystery.mid | 614 bytes |
Comments
That seems to be a basically empty MIDI file, Windows Media Player doesn't play it
Same issue as https://musescore.org/en/node/319840 I guess
In reply to That's a basically empty… by Jojo-Schmitz
VLC Media Player can't play it either. Broken.
In reply to That's a basically empty… by Jojo-Schmitz
There is indeed no program change event present at the start of that file.
In reply to There is indeed no program… by jeetee
Maybe MuseScore should assume Piano then?
In reply to That's a basically empty… by Jojo-Schmitz
It is not empty, it contains 614 bytes easily seen via more or any editor, but I guess it is either corrupted in some way, or considered as corrupted by Musescore. It is produced by Ableton Live, so if it is really corrupted, I have to escalate to them, but I would need to be sure.
In reply to It is not empty, it contains… by matthieu_tric1
That's why I wrote "basically empty". Without such a program change event at the beginning it is at least incomplete (as far as MuseScore is concerned, and VLS and Windows Media Player too)
I hate to bring this up, but OP admits that the file is broken from the start. The problem he reports is not that he can't play or import it, but that it causes a crash.
In reply to I hate to bring this up, but… by [DELETED] 1831606
MuseScore should not crash I guess, but garbage in, garbage out
(and no, the OP did not claim the MIDI to be broken)
In reply to MuseScore should not crash I… by Jojo-Schmitz
No, he didn't, you're right.
In reply to I hate to bring this up, but… by [DELETED] 1831606
I didn't "admit anything from the start". I report a problem, which can be caused either by Musescore or by Ableton Live. I've not read MIDI standard, so I believe you if you say it's Ableton.
Besides, I thought exception handling was considered a good practice. Anyway, I will try to manually sort this file out and to report the bug to Ableton.
In reply to I didn't admit anything from… by matthieu_tric1
There are two problems. The Ableton-produced file is invalid, and MuseScore crashed rather than recognize that. It's both, not either.
Same problem here
The same thing happened to me, but the MIDI file is from Signal and the program to open it is Sforzando. After looking at it in a hex editor, it's probably the fact that the metadata is missing. I have attached a file with the same problem.
In reply to The same thing happened to… by percenttwenty
I have no problem to open it in Mus 3.7.