nomelif / Audionodes

Audio generation in blender nodes
Other
89 stars 10 forks source link

Projects with MIDI input freeze on load when any MIDI input is turned on #38

Open zralok123 opened 2 years ago

zralok123 commented 2 years ago

I use the latest Audionodes with Blender version 3.0. When I turn on the keyboard (which I use as the MIDI input) or use a MIDI driver, Blender freezes as soon as I load any project containing the MIDI input node. I'm sure that the driver of the keyboard is not problematic, since it does exactly the same thing with any other MIDI input. However, when I load the same project while no MIDI input is present in the computer, the project loads perfectly. Then, when I configure the MIDI input and assign the keyboard to it, the synthesizer made with Audionodes works in the way it should. So the only way I can use Audionodes with MIDI is:

  1. Launching Blender first
  2. Loading the project with the synthesizer
  3. Turning on the keyboard and connecting it to the computer
  4. Selecting the keyboard in the MIDI input node

conf_failed configuration1 configuration2

ollpu commented 2 years ago

Indeed, something racy is going on. I'm having a hard time observing the freeze if I try to print/log something before it happens.

This is the best stack trace I could get for now: image

It's likely around here because the SYSEX thread is already running.

Unfortunately I don't know if I will have time to look deeper in the near future.