NSXPCConnectionInvalid / NSXPCConnectionInterrupted error when connect(_:to:format:) is called in AVAudioEngine
I’m using AVAudioEngine to in my host app. On very rare occasions I get a crash with error code 4099 (NSXPCConnectionInvalid), or with error code 4097 (NSXPCConnectionInterrupted) while connecting an audio unit to the main mixer node using connect(_:to:format:)
method of AVAudioEngine.