MIDINetworkConnection BAD_ACCESS on dealloc

Originator:singh
Number:rdar://22986363 Date Originated:06-Oct-2015 07:47 AM
Status:Open Resolved:
Product:iOS Product Version:9.0.2
Classification: Reproducible:Always
 
Summary:
I've got a strange Network MIDI issue that's arisen in iOS 9 which effectively works like the following:

I do a NSNetServiceBrowser scan for wifi midi devices.
It finds my macbook and I create a MIDINetworkConnection with the host from the NSNetService and store this in an ivar
I do another scan some time later which nils the ivar. This causes a BAD_ACCESS in the internal dealloc of MIDINetworkConnection

More details at these SO links:
http://stackoverflow.com/questions/32957397/midinetworkconnection-bad-access-on-dealloc-ios-9?noredirect=1#comment53750161_32957397
http://stackoverflow.com/questions/32686214/removeconnection-results-in-exc-bad-access

Steps to Reproduce:
-

Expected Results:
-

Actual Results:
-

Version:
iOS 9.0.2

Notes:


Configuration:
iPhone 6

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!