Yes, I’m on a Mac. That makes sense, it was just the first most obvious strangeness. But of course, I’m seeing now it’s certainly not limited to the device with the negative identifier.
And yes, I have added the callback. As per the handlingMidi tutorial, I’m checking to see if the input device is enabled, if not enabling it, then adding a midi input device callback.
It doesn’t happen every time I enable an input device, but it is happening when a method I have that calls the
setMidiInputDeviceEnabled does so under certain conditions. Not sure exactly what those conditions are other than it seems to be the second or third time any given instance of the object which posses this method has it called. That was quite a sentence. Hope that was clear.
After stepping through it looks like it’s hanging on line 883 at:
if (auto midiIn = MidiInput::openDevice (identifier, callbackHandler.get()))
It’s something in the “if” line specifically, I guess opening the device.