QMidiFile::load gets stucked when parsing attached midi file
iv41879 opened this issue · comments
It creates note on events in infinite loop. Actually file is broken and is only maybe partially loaded. Can we add some safety feature just to stop further loading and play what we have up to that tick?
Anvil Studio loads the file properly, but warns that it had errors. Will investigate.
(I probably should actually refactor this ancient code someday, there's probably a lot of other bugs like this one in it.)
Thanks
Actually, seems we have regression here from issue #3 .
So I restored old version of the code which now works for me - so when selecting corrupted file we had nice feature that we load events up to the place of the file damage - partial loading (same as vanBasco is doing). Now this code loads some dummy midi events. Please can you take a look.
So attached file is one that works for me now nicely.
Done.