Simplified the test further to prove that creating multiple midi inputs is causing the crash.