# iOS 14.2 MIDI connections broken

**URL:** <https://forum.juce.com/t/ios-14-2-midi-connections-broken/42440>\
**Category:** MacOSX and iOS\
**Created:** [October 28, 2020, 10:28am UTC](https://forum.juce.com/t/ios-14-2-midi-connections-broken/42440 "2020-10-28T10:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![vberthiaume](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/vberthiaume/32/6513_2.png) [@vberthiaume](https://forum.juce.com/u/vberthiaume)\
**Post date:** [November 9, 2020, 11:07pm UTC](https://forum.juce.com/t/ios-14-2-midi-connections-broken/42440/8 "2020-11-09T23:07:52Z")

</div>

Sorry for the delay, I’ve been trying to get a consistent repro, but I’m afraid I haven’t succeeded yet. The issue happens more frequently in our app, but I got the MidiDemo to reproduce it a few times now by sending lots and lots of note-ons by tapping the keyboard rapidly.

Since updating to the official iOS 14.2 release (using an iPad 8, OSX 10.15.7 and xcode 12.1, but having downloaded the 14.2 sdk with xcode 12.2 beta), we are seeing two issues and are assuming they are different manifestations of the same underlying problem.

The first is a crash when JUCE calls MIDISend (an CoreMIDI call):

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/0/0713508e7a5e80b4390040efbcb442122e57f76e.jpeg)

and the second is a series of 3 errors output to the debug log when JUCE calls MIDIObjectGetString/IntegerProperty(), when attempting to get properties about the device in either MidiInput::getAvailableDevices() or MidiOutput::getAvailableDevices():

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/a/a627703695f5fbbeca9f9bb33bb7fdc6bff1d7c9.png)

Here are the printed error messages:

```auto
CoreMIDI error: 56 - ffffffce
CoreMIDI error: 62 - ffffffce
CoreMIDI error: 70 - ffffffce

```

Using [https://osstatus.com/](https://osstatus.com/) (and this forum post: [How to translate CoreMIDI error numbers?](https://forum.juce.com/t/how-to-translate-coremidi-error-numbers/35998/7)) we’ve found that `ffffffce` corresponds to a `kAudio_ParamError` from `CoreAudio`.

Both issues happen after we have connected to a physical midi BT device and have been communicating with it – although it can happen almost immediately or after a few minutes.

We assume the first issue (`MIDISend()`) happens if the error occurs while we are already on the path to send midi, and the second (`getAvailableDevices()`) when our code detects the device has gone away, so stops sending midi, but continues to poll the device list.

Although anecdotal, a quick googling of “ios 14.2 midi issue” does reveal a few products are also facing this issue:

> **[iOS 14.2 + OP-Z app problem](https://op-forums.com/t/ios-14-2-op-z-app-problem/18713)**
>
> Just updated my iPad to iOS 14.2 and when I connected the OP-Z, the app wouldn’t switch away from the initial screen no matter what I pressed on the Z. If you were thinking about updating, you might want to wait and see if a fix for the app comes 😦

  

> **[iOS 14.2 BETA - External midi output crash!](https://jamosapien.com/t/ios-14-2-beta-external-midi-output-crash/2284/19)**
>
> there is a substitute functionality, it covers both midi 1 and the new midi 2 standard. See: https://developer.apple.com/documentation/coremidi/3566495-midisourcecreatewithprotocol?language=occ

---

_[View the full topic](https://forum.juce.com/t/ios-14-2-midi-connections-broken/42440)._
