BLE crash - XPC connection interrupted

I have 3 Bluetooth devices that I'm connecting to in my iOS app.


About 35% of the time, BLE process is crashing when I try to connect third device.

I really don't have any idea how to debug that anymore. I'm pasting below logs from Console when the crash occurs.

I'm also attaching crash report from the device.


I'd appreciate any help here.



TypeTimeProcessMessage
error15:34:46.903107 +0200MyAppXPC connection interrupted, resetting
error15:34:46.903312 +0200MyAppXPC connection interrupted, resetting
default15:34:46.908460 +0200MyAppSetup Tag.
default15:34:46.908832 +0200MyAppBluetooth off. 1
default15:34:46.909611 +0200cloudpairdXPC handleEvent obj : Connection invalid
default15:34:46.912023 +0200cloudpairdReceived _handleXPCMessage
default15:34:46.912782 +0200bluetoothdBT_HCI_TRANSPORT not set - Attempting to read from plist.
default15:34:46.914119 +0200WirelessRadioManagerd<private>
default15:34:46.914510 +0200bluetoothdDeviceTree transport = 0x00000003
default15:34:46.914873 +0200bluetoothdHCI Transport is set to H4BC
default15:34:46.914918 +0200bluetoothdBT driver=0x100F53780
default15:34:46.916664 +0200bluetoothdInit sniff (null) gLogPath:(null)
default15:34:46.921511 +0200bluetoothdSet HCI config raw:0 HID:0 size:3000000 files:5
default15:34:46.922672 +0200bluetoothdChange HCI config settings to rawAudio:disabled->disabled HID:disabled->disabled fileSize:3MB->3MB #ofTraces:5->5
default15:34:46.923469 +0200bluetoothdStop and rotate logging
default15:34:46.923592 +0200bluetoothdModel: iPhone9,3, Version: Version 11.3.1 (Build 15E302), Manufacturer: Apple Inc.
default15:34:46.925054 +0200bluetoothdSuccessfully stopped HCI tracing
default15:34:46.925094 +0200bluetoothdsetAccessoryLogging , accessoryLoggingInput->isTimestampEnabled = 0, accessoryLoggingInput->isDiagnosticsDisabled = 0, accessoryLoggingInput->module = 1023, accessoryLoggingInput->level = 8, accessoryLoggingInput->log_interval = 100000, accessoryLoggingInput->power_log_interval = 0, accessoryLogging.isCrashLoggingDisabled = 0
default15:34:46.925148 +0200bluetoothd/BuildRoot/Library/Caches/com.apple.xbs/Sources/MobileBluetooth/MobileBluetooth-114.15.3/Server/core/LocalDevice.mm
default15:34:46.927342 +0200bluetoothdreadCloudMasterKeys res = 0, 32
default15:34:46.927397 +0200bluetoothdCloud master keys are available in storage
default15:34:46.928635 +0200WirelessRadioManagerd<private>
default15:34:46.928748 +0200WirelessRadioManagerd<private>
error15:34:46.931431 +0200coreduetdsession attach called back with BT_SESSION_TERMINATED (0)
error15:34:46.931971 +0200carkitdsession attach called back with BT_SESSION_TERMINATED (0)
error15:34:46.932606 +0200findmydevicedsession attach called back with BT_SESSION_TERMINATED (0)
error15:34:46.932894 +0200routinedsession attach called back with BT_SESSION_TERMINATED (0)
error15:34:46.933451 +0200nanoregistrydXPC connection interrupted, resetting
error15:34:46.934310 +0200healthdXPC connection interrupted, resetting
error15:34:46.935780 +0200useractivitydsession attach called back with BT_SESSION_TERMINATED (0)
error15:34:46.936505 +0200wirelessproxdXPC connection interrupted, resetting
error15:34:46.936586 +0200wirelessproxdXPC connection interrupted, resetting
error15:34:46.936845 +0200wirelessproxdXPC connection interrupted, resetting
default15:34:46.937737 +0200wirelessproxdPeripheral manager is resetting, clearing currently advertising manager data
default15:34:46.938136 +0200ReportCrash__crash_info: [<private>] '<private>'



Incident Identifier: 8F7534A7-E35F-48FC-A924-6263FCE2F501
CrashReporter Key:   76ab8fb4e50574689c4b5dfed1b5e3c55ef484ba
Hardware Model:      iPhone9,3
Process:             bluetoothd [1136]
Path:                /usr/sbin/bluetoothd
Identifier:          bluetoothd
Version:             ???
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]
Coalition:           com.apple.bluetoothd [119]




Date/Time:           2018-05-14 15:51:21.7487 +0200
Launch Time:         2018-05-14 15:48:37.8817 +0200
OS Version:          iPhone OS 11.3.1 (15E302)
Baseband Version:    2.03.12
Report Version:      104


Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  2


Application Specific Information:
abort() called


Filtered syslog:
None found


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib         0x0000000180ea7e08 mach_msg_trap + 8
1   libsystem_kernel.dylib         0x0000000180ea7c80 mach_msg + 72
2   CoreFoundation                 0x00000001813eae40 __CFRunLoopServiceMachPort + 196
3   CoreFoundation                 0x00000001813e8908 __CFRunLoopRun + 1568
4   CoreFoundation                 0x0000000181308da8 CFRunLoopRunSpecific + 552
5   CoreFoundation                 0x0000000181358b28 CFRunLoopRun + 116
6   bluetoothd                     0x0000000102d2dd1c 0x102d1c000 + 72988
7   libdyld.dylib                 0x0000000180d99fc0 start + 4


Thread 1 name:  StackLoop
Thread 1:
0   libsystem_kernel.dylib         0x0000000180ec90f4 __psynch_cvwait + 8
1   libsystem_pthread.dylib       0x000000018106bcc8 _pthread_cond_wait$VARIANT$mp + 700
2   bluetoothd                     0x0000000102d65428 0x102d1c000 + 300072
3   libsystem_pthread.dylib       0x0000000181069220 _pthread_body + 272
4   libsystem_pthread.dylib       0x0000000181069110 _pthread_body + 0
5   libsystem_pthread.dylib       0x0000000181067b10 thread_start + 4


Thread 2 name:  RxLoop
Thread 2 Crashed:
0   libsystem_kernel.dylib         0x0000000180ec92ec __pthread_kill + 8
1   libsystem_pthread.dylib       0x000000018106a288 pthread_kill$VARIANT$mp + 376
2   libsystem_c.dylib             0x0000000180e37d0c abort + 140
3   bluetoothd                     0x0000000102d67940 0x102d1c000 + 309568
4   bluetoothd                     0x0000000102e3abd8 0x102d1c000 + 1174488
5   bluetoothd                     0x0000000102de53f8 0x102d1c000 + 824312
6   bluetoothd                     0x0000000102de8340 0x102d1c000 + 836416
7   bluetoothd                     0x0000000102de68c0 0x102d1c000 + 829632
8   bluetoothd                     0x0000000102de4f50 0x102d1c000 + 823120
9   bluetoothd                     0x0000000102de4b04 0x102d1c000 + 822020
10  bluetoothd                     0x0000000102d53804 0x102d1c000 + 227332
11  bluetoothd                     0x0000000102d50fe8 0x102d1c000 + 217064
12  libsystem_pthread.dylib       0x0000000181069220 _pthread_body + 272
13  libsystem_pthread.dylib       0x0000000181069110 _pthread_body + 0
14  libsystem_pthread.dylib       0x0000000181067b10 thread_start + 4


Thread 3 name:  TxLoop
Thread 3:
0   libsystem_kernel.dylib         0x0000000180ec90f4 __psynch_cvwait + 8
1   libsystem_pthread.dylib       0x000000018106bc90 _pthread_cond_wait$VARIANT$mp + 644
2   bluetoothd                     0x0000000102e1a920 0x102d1c000 + 1042720
3   libsystem_pthread.dylib       0x0000000181069220 _pthread_body + 272
4   libsystem_pthread.dylib       0x0000000181069110 _pthread_body + 0
5   libsystem_pthread.dylib       0x0000000181067b10 thread_start + 4


Thread 4:
0   libsystem_kernel.dylib         0x0000000180ec9d84 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x0000000181067eb4 _pthread_wqthread + 928
2   libsystem_pthread.dylib       0x0000000181067b08 start_wqthread + 4


Thread 5:
0   libsystem_pthread.dylib       0x0000000181067b04 start_wqthread + 0


Thread 6:
0   libsystem_kernel.dylib         0x0000000180ec9d84 __workq_kernreturn + 8
1   libsystem_pthread.dylib       0x0000000181067eb4 _pthread_wqthread + 928
2   libsystem_pthread.dylib       0x0000000181067b08 start_wqthread + 4


Thread 7:
0   libsystem_pthread.dylib       0x0000000181067b04 start_wqthread + 0


Thread 8:
0   libsystem_pthread.dylib       0x0000000181067b04 start_wqthread + 0


Thread 2 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x000000000000000c
    x4: 0x000000000000000c   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000fa0
    x8: 0x0000000008000000   x9: 0x0000000004000000  x10: 0x000000018106a110  x11: 0x0000000103360000
   x12: 0x000000000000d303  x13: 0x000000000000d303  x14: 0x000000000000d303  x15: 0x0000000000000001
   x16: 0x0000000000000148  x17: 0x0000000000000200  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000016d7fb000  x21: 0x00000000000002c9  x22: 0x0000000000005913  x23: 0x000000016d7fb0e0
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000001
   x28: 0x0000000000000001   fp: 0x000000016d7fa9c0   lr: 0x000000018106a288
    sp: 0x000000016d7fa990   pc: 0x0000000180ec92ec cpsr: 0x00000000


Binary Images:
0x102d1c000 - 0x1030e7fff bluetoothd arm64  <c4460160d01133d1bf1e43ee2bcf8992> /usr/sbin/bluetoothd
0x103530000 - 0x10356bfff dyld arm64  <06dc98224ae03573bf72c78810c81a78> /usr/lib/dyld
0x180577000 - 0x180578fff libSystem.B.dylib arm64  <1cbfa6a1a0fb3fc99264d3d30ca0e543> /usr/lib/libSystem.B.dylib
0x180579000 - 0x1805d1fff libc++.1.dylib arm64  <c7c7e60bd59e3193a63b35cc54e32e79> /usr/lib/libc++.1.dylib
0x1805d2000 - 0x1805f3fff libc++abi.dylib arm64  <086faefd537e3954b23565f56653a2cb> /usr/lib/libc++abi.dylib
0x1805f4000 - 0x180caffff libobjc.A.dylib arm64  <bedd6199d0d33b52a5387380f9350b30> /usr/lib/libobjc.A.dylib
0x180cb0000 - 0x180cb5fff libcache.dylib arm64  <9234c7627b253d1ba2b18cd9aaadbe2e> /usr/lib/system/libcache.dylib
0x180cb6000 - 0x180cc1fff libcommonCrypto.dylib arm64  <50eeb933dceb3aa28a43dd3a791139ce> /usr/lib/system/libcommonCrypto.dylib
0x180cc2000 - 0x180cc5fff libcompiler_rt.dylib arm64  <d2ba481dad4f3cb0b5a2ba5abc20196f> /usr/lib/system/libcompiler_rt.dylib
0x180cc6000 - 0x180ccefff libcopyfile.dylib arm64  <d97ef07e910c32c385b8d1ee23759cf0> /usr/lib/system/libcopyfile.dylib
0x180ccf000 - 0x180d32fff libcorecrypto.dylib arm64  <e9cc7328986b3319a9475935e62e29cb> /usr/lib/system/libcorecrypto.dylib
0x180d33000 - 0x180d98fff libdispatch.dylib arm64  <42fe29ae709d39d9bc00f31af92baaf1> /usr/lib/system/libdispatch.dylib
0x180d99000 - 0x180db3fff libdyld.dylib arm64  <b0123d033ab93dc7a5e2c35556740a26> /usr/lib/system/libdyld.dylib
0x180db4000 - 0x180db4fff liblaunch.dylib arm64  <5d50c01da0fb3538bce8415db84cf1eb> /usr/lib/system/liblaunch.dylib
0x180db5000 - 0x180dbafff libmacho.dylib arm64  <c39a1c9473413310a32c271a3f49fd58> /usr/lib/system/libmacho.dylib
0x180dbb000 - 0x180dbcfff libremovefile.dylib arm64  <b2d52ec838503fc190db54488d05afd3> /usr/lib/system/libremovefile.dylib
0x180dbd000 - 0x180dd3fff libsystem_asl.dylib arm64  <5d19da723b2d3036b96bbe9569d99d5b> /usr/lib/system/libsystem_asl.dylib
0x180dd4000 - 0x180dd4fff libsystem_blocks.dylib arm64  <9a69557f7f5d35e6b2bb4c8cb55b43b6> /usr/lib/system/libsystem_blocks.dylib
0x180dd5000 - 0x180e52fff libsystem_c.dylib arm64  <253425c2089e3d4d99cc1d073d72efe5> /usr/lib/system/libsystem_c.dylib
0x180e53000 - 0x180e57fff libsystem_configuration.dylib arm64  <1f70ae27eb2d31ecb98b4b45f5b82ad9> /usr/lib/system/libsystem_configuration.dylib
0x180e58000 - 0x180e5dfff libsystem_containermanager.dylib arm64  <3a312c5c347d3fcab6227fb824849657> /usr/lib/system/libsystem_containermanager.dylib
0x180e5e000 - 0x180e5ffff libsystem_coreservices.dylib arm64  <70bb743b7bf53de1afdf6f7afcce1379> /usr/lib/system/libsystem_coreservices.dylib
0x180e60000 - 0x180e61fff libsystem_darwin.dylib arm64  <90fe2ed455e4396aa662e5e32fd80b84> /usr/lib/system/libsystem_darwin.dylib
0x180e62000 - 0x180e68fff libsystem_dnssd.dylib arm64  <45af7516ceab3b94905cd74b35f4eab6> /usr/lib/system/libsystem_dnssd.dylib
0x180e69000 - 0x180ea6fff libsystem_info.dylib arm64  <515624006f30300186f77a218ef98326> /usr/lib/system/libsystem_info.dylib
0x180ea7000 - 0x180ecffff libsystem_kernel.dylib arm64  <ab53a0ff551a3b63855eb75271fc5909> /usr/lib/system/libsystem_kernel.dylib
0x180ed0000 - 0x180efdfff libsystem_m.dylib arm64  <cba9a1ee1d553c189dbaca4f6e13ca5e> /usr/lib/system/libsystem_m.dylib
0x180efe000 - 0x180f19fff libsystem_malloc.dylib arm64  <ad49e1b2657639f3a9beea6edc18675c> /usr/lib/system/libsystem_malloc.dylib
0x180f1a000 - 0x181045fff libsystem_network.dylib arm64  <6762e60b7af83d2e86468be0ac6b4fa0> /usr/lib/system/libsystem_network.dylib
0x181046000 - 0x181051fff libsystem_networkextension.dylib arm64  <d86851bd3b4d344588462ae9a88344f9> /usr/lib/system/libsystem_networkextension.dylib
0x181052000 - 0x18105cfff libsystem_notify.dylib arm64  <5bd9385d98c83d0ba9d157e69c429638> /usr/lib/system/libsystem_notify.dylib
0x18105d000 - 0x181066fff libsystem_platform.dylib arm64  <038fc12926e83453a11b59ef3b1096c9> /usr/lib/system/libsystem_platform.dylib
0x181067000 - 0x181076fff libsystem_pthread.dylib arm64  <01327cdfaac23c388fadf36cf440f0e2> /usr/lib/system/libsystem_pthread.dylib
0x181077000 - 0x18107afff libsystem_sandbox.dylib arm64  <abbe277dbe993c47b59a813ca4797651> /usr/lib/system/libsystem_sandbox.dylib
0x18107b000 - 0x181082fff libsystem_symptoms.dylib arm64  <7fc5e7245e09393aa5d003dceeffa74b> /usr/lib/system/libsystem_symptoms.dylib
0x181083000 - 0x181096fff libsystem_trace.dylib arm64  <9bfe9e9e10b9385787a827c768ba54bf> /usr/lib/system/libsystem_trace.dylib
0x181097000 - 0x18109cfff libunwind.dylib arm64  <7e526b97e5b039e6a1c78107321592aa> /usr/lib/system/libunwind.dylib
0x18109d000 - 0x18109dfff libvminterpose.dylib arm64  <39d037ec6db036179470ab258fc96c13> /usr/lib/system/libvminterpose.dylib
0x18109e000 - 0x1810c8fff libxpc.dylib arm64  <9bc6486ebaa83cc580e90415889c978d> /usr/lib/system/libxpc.dylib
0x1810c9000 - 0x1812eafff libicucore.A.dylib arm64  <afad4c33ff30367286e9c60b75a95a5a> /usr/lib/libicucore.A.dylib
0x1812eb000 - 0x1812fcfff libz.1.dylib arm64  <39dcd0297ee130c891937f50ce23c2df> /usr/lib/libz.1.dylib
0x1812fd000 - 0x181693fff CoreFoundation arm64  <cf162b3ca2883453b2914300d4f19612> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x181694000 - 0x1816a4fff libbsm.0.dylib arm64  <3f8b35c8ab283b78a319327ea597212e> /usr/lib/libbsm.0.dylib
0x1816a5000 - 0x1816a5fff libenergytrace.dylib arm64  <cfbe9a511fd73ee2ba237aa7400137c6> /usr/lib/libenergytrace.dylib
0x1816a6000 - 0x18172afff IOKit arm64  <56754e706db43267b2e2bc4387e34f2b> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x18172b000 - 0x181812fff libxml2.2.dylib arm64  <21cc9796ecb933e8b3e12f53e04148f7> /usr/lib/libxml2.2.dylib
0x181813000 - 0x181820fff libbz2.1.0.dylib arm64  <63ddef9a83dc335a9df0bef913f437a7> /usr/lib/libbz2.1.0.dylib
0x181821000 - 0x181839fff liblzma.5.dylib arm64  <252187562a8c3e07b7f01473a16c00d7> /usr/lib/liblzma.5.dylib
0x18183a000 - 0x18199efff libsqlite3.dylib arm64  <caacdb193a86339db7943325571a25af> /usr/lib/libsqlite3.dylib
0x18199f000 - 0x1819c5fff libMobileGestalt.dylib arm64  <816e5c2426243ca5a8e6b3b2b9521776> /usr/lib/libMobileGestalt.dylib
0x1819c6000 - 0x181d74fff CFNetwork arm64  <4f38683f50453eaa9a09eb6222eae139> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x181d75000 - 0x18206dfff Foundation arm64  <18908b96750c38988eb0d7028c656a6d> /System/Library/Frameworks/Foundation.framework/Foundation
0x18206e000 - 0x18216efff Security arm64  <fccc95fb50db3b55ae66518f7f789f70> /System/Library/Frameworks/Security.framework/Security
0x18216f000 - 0x1821dafff SystemConfiguration arm64  <0caa3f1372c637f791d1aae47629aed1> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x1821db000 - 0x182210fff libCRFSuite.dylib arm64  <7d19be0f618136a1a3bc7e81caba4b6d> /usr/lib/libCRFSuite.dylib
0x182211000 - 0x182211fff libapple_crypto.dylib arm64  <fcf4f720aac03727b5842dd31fd3ef7e> /usr/lib/libapple_crypto.dylib
0x182212000 - 0x182228fff libapple_nghttp2.dylib arm64  <8d5134e490ad3c298330609806547a9e> /usr/lib/libapple_nghttp2.dylib
0x182229000 - 0x182252fff libarchive.2.dylib arm64  <93fac4c1f6b73383a9082c6a963da406> /usr/lib/libarchive.2.dylib
0x182253000 - 0x182301fff libboringssl.dylib arm64  <8b812051a23e35b8a22e4c272887ecf7> /usr/lib/libboringssl.dylib
0x182302000 - 0x182318fff libcoretls.dylib arm64  <a016bdc075493ee7a0dd4f4c0daa7f32> /usr/lib/libcoretls.dylib
0x182319000 - 0x18231afff libcoretls_cfhelpers.dylib arm64  <f3b0bd7eedbe3df8a5944d8a737536f0> /usr/lib/libcoretls_cfhelpers.dylib
0x18231b000 - 0x18231cfff liblangid.dylib arm64  <d66b69c96718352ba9c4092aa6416627> /usr/lib/liblangid.dylib
0x18231d000 - 0x182492fff libnetwork.dylib arm64  <f087d7ee39b53e7c83a4c1ecb36a3477> /usr/lib/libnetwork.dylib
0x182493000 - 0x1824c5fff libpcap.A.dylib arm64  <36ff48f819553b0c9e92c9fb2aa1a4a2> /usr/lib/libpcap.A.dylib
0x1824c6000 - 0x182522fff libusrtcp.dylib arm64  <b8b2aa241bcd3d1ca213587a9959920d> /usr/lib/libusrtcp.dylib
0x182523000 - 0x18252dfff IOSurface arm64  <a87bce11aabd303c9d9a6cc0009e9f57> /System/Library/Frameworks/IOSurface.framework/IOSurface
0x18252e000 - 0x1825d3fff libBLAS.dylib arm64  <50b5f5beeab037ffa5810a67e580bdbf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x1825d4000 - 0x1828f4fff libLAPACK.dylib arm64  <c8440bf2dc0b39c79ada236a548df940> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x1828f5000 - 0x182b64fff vImage arm64  <8f3ffa6be7e43dfdaf027891d655a60e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
0x182b65000 - 0x182b76fff libSparseBLAS.dylib arm64  <d216b492dfb0311a8ccd19e4a930dd04> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparseBLAS.dylib
0x182b77000 - 0x182b9bfff libvMisc.dylib arm64  <483df9b3d90331888b43bb65d802485f> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
0x182b9c000 - 0x182bc3fff libBNNS.dylib arm64  <982f32f4102133d2802ea5f81cdc13a8> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBNNS.dylib
0x182bc4000 - 0x182bd8fff libLinearAlgebra.dylib arm64  <a3ec23fe236e303384df33cf2fb24d96> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLinearAlgebra.dylib
0x182bd9000 - 0x182bddfff libQuadrature.dylib arm64  <5a98c0d39e0d38f89ce20797be797ac8> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libQuadrature.dylib
0x182bde000 - 0x182c4dfff libSparse.dylib arm64  <6556be33563434b78e2ef1c80da99eb7> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libSparse.dylib
0x182c4e000 - 0x182cd9fff libvDSP.dylib arm64  <4de8af8c7371382b9183e4dc14245445> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x182cda000 - 0x182cdafff vecLib arm64  <2d93d3f4573b313d81fc9104810f0f61> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x182cdb000 - 0x182cdbfff Accelerate arm64  <850c55e76100327ea543af936487944c> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x182cdc000 - 0x182cf2fff libcompression.dylib arm64  <9a090a94c6463eefa5413f012a34d3a4> /usr/lib/libcompression.dylib
0x182cf3000 - 0x18323afff CoreGraphics arm64  <ac1e1c54697f3378ac6168a46dcccfe7> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x18323b000 - 0x183240fff IOAccelerator arm64  <83c3c1fcfd963ec4b3c15ca18ea71efe> /System/Library/PrivateFrameworks/IOAccelerator.framework/IOAccelerator
0x183241000 - 0x183246fff libCoreFSCache.dylib arm64  <e49f9dc0e85f3df0b0cd284c2477b315> /System/Library/Frameworks/OpenGLES.framework/libCoreFSCache.dylib
0x183247000 - 0x1832dffff Metal arm64  <46fc1e5f11c5316991cb5d7a0aa46523> /System/Library/Frameworks/Metal.framework/Metal
0x1832e0000 - 0x1832f3fff GraphicsServices arm64  <85072ece665a3a86807f153e85476fed> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1832f4000 - 0x18344dfff MobileCoreServices arm64  <cc1d833f73a73822a52d8a9fe16a8dc3> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x18344e000 - 0x183450fff IOSurfaceAccelerator arm64  <7b5129072b7f3d128f701b1b950bcdf3> /System/Library/PrivateFrameworks/IOSurfaceAccelerator.framework/IOSurfaceAccelerator
0x183451000 - 0x183492fff AppleJPEG arm64  <c82f8d506055358d9f786fa34f589827> /System/Library/PrivateFrameworks/AppleJPEG.framework/AppleJPEG
0x183493000 - 0x183a43fff ImageIO arm64  <df52144b9f6f3491a1aaca4affcd69cf> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x183a44000 - 0x183aa7fff BaseBoard arm64  <4a9ddf31f3443b6e9a17e272aebe2b8d> /System/Library/PrivateFrameworks/BaseBoard.framework/BaseBoard
0x183aa8000 - 0x183abffff AssertionServices arm64  <d4bbd03e4bef3c6d83871dfe9360d2ca> /System/Library/PrivateFrameworks/AssertionServices.framework/AssertionServices
0x183ac0000 - 0x183ac8fff CorePhoneNumbers arm64  <2cacbb2a053f314d9c6b6df55b4cea0c> /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/CorePhoneNumbers
0x183ac9000 - 0x183b0dfff AppSupport arm64  <f518c3a1857533658da18b3c9649da9c> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x183b0e000 - 0x183b26fff CrashReporterSupport arm64  <5599d0094f603297a23dfaf2643c0214> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x183b27000 - 0x183b2cfff AggregateDictionary arm64  <3e27a71f9459361193f3e182dc87d3b0> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x183b2d000 - 0x183bb1fff libTelephonyUtilDynamic.dylib arm64  <f78c5716e31c3ce7a566a179b347a55a> /usr/lib/libTelephonyUtilDynamic.dylib
0x183bb2000 - 0x183bd1fff ProtocolBuffer arm64  <ec0dcc2ab28c36c59afaf485b79ebeae> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x183bd2000 - 0x183bfefff MobileKeyBag arm64  <19ed6cab7991380796131d9815a7e3df> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x183bff000 - 0x183c33fff BackBoardServices arm64  <e4567934c6fc3c029a385d0141469c88> /System/Library/PrivateFrameworks/BackBoardServices.framework/BackBoardServices
0x183c34000 - 0x183c8ffff FrontBoardServices arm64  <1f63db3e11403909903a700f99bbafe5> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x183c90000 - 0x183cccfff SpringBoardServices arm64  <618c22ec2c98329f8bb23caa50a4f53c> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x183ccd000 - 0x183cdbfff PowerLog arm64  <85efbdc068743b57a7dc8cf1115869ae> /System/Library/PrivateFrameworks/PowerLog.framework/PowerLog
0x183cdc000 - 0x183cf8fff CommonUtilities arm64  <a4dce370f84f3b2c932007b704a3e959> /System/Library/PrivateFrameworks/CommonUtilities.framework/CommonUtilities
0x183cf9000 - 0x183d04fff liblockdown.dylib arm64  <6ca17ea36c9b3d8a80b1b4d147ba35f9> /usr/lib/liblockdown.dylib
0x183d05000 - 0x184009fff CoreData arm64  <c76c9faa57d032dca0adc9c7b82d2791> /System/Library/Frameworks/CoreData.framework/CoreData
0x18400a000 - 0x184010fff TCC arm64  <5b6e4c731ff931a499b5c45cfd742c6c> /System/Library/PrivateFrameworks/TCC.framework/TCC
0x184011000 - 0x184018fff libcupolicy.dylib arm64  <e91ba833cf5634f1ac5c077f821df376> /usr/lib/libcupolicy.dylib
0x184019000 - 0x1840aafff CoreTelephony arm64  <8eae2d2fbbc83aa88fc94e48a88443d1> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x1840ab000 - 0x184102fff Accounts arm64  <a66a44902f0d333e8334b8561b40e90a> /System/Library/Frameworks/Accounts.framework/Accounts
0x184103000 - 0x18412cfff AppleSauce arm64  <708bf2e767363eaaae3d41e17e0a0e86> /System/Library/PrivateFrameworks/AppleSauce.framework/AppleSauce
0x18412d000 - 0x184135fff DataMigration arm64  <3db16bbf04603c5da1bd70c06c7cb464> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x184136000 - 0x18413cfff Netrb arm64  <bf6409fc10343ba89e6c06a15df7a915> /System/Library/PrivateFrameworks/Netrb.framework/Netrb
0x18413d000 - 0x18416ffff PersistentConnection arm64  <644d574b0cb33cf0bcaa55f353b636d1> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x184170000 - 0x184181fff libmis.dylib arm64  <750810cf779d3946964aa5ee4a44f063> /usr/lib/libmis.dylib
0x184182000 - 0x184288fff ManagedConfiguration arm64  <ddb1689e2c493216aa42aefb91f60588> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x184289000 - 0x18428efff libReverseProxyDevice.dylib arm64  <7c2f9a593dd03a90855450c4b3b2208e> /usr/lib/libReverseProxyDevice.dylib
0x18428f000 - 0x1842a1fff libamsupport.dylib arm64  <6c1d65704dfc3b9b87980cd65560188e> /usr/lib/libamsupport.dylib
0x1842a2000 - 0x1842a7fff libCoreVMClient.dylib arm64  <8cfed6ca663f30748dd58b598a23169d> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib
0x1842a8000 - 0x1842a9fff libCVMSPluginSupport.dylib arm64  <4bf21a6ca33d3222bd1442c13450464d> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x1842aa000 - 0x1842adfff libutil.dylib arm64  <2f7e5961d4b734b496f3d85eae03acd1> /usr/lib/libutil.dylib
0x1842ae000 - 0x1842eefff libGLImage.dylib arm64  <9c2f70ff46913e4f9dc66605475914f9> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x1842ef000 - 0x184365fff APFS arm64  <075ddba3fa093db78988256945f50ff9> /System/Library/PrivateFrameworks/APFS.framework/APFS
0x184366000 - 0x184397fff MediaKit arm64  <82856e94773c33f5a67a8eb4c1c6148e> /System/Library/PrivateFrameworks/MediaK0x18cde1fff CommonAuth arm64  <8455c7ba72b938899f6f32067e1de0d9> /System/Library/PrivateFrameworks/Comm

Replies

I get the same crash dump for my app which is a central manager connected to 1-3 peripheral devices. It happens randomly and the frequency varies alot from one device to another. One tester can run the app continuously for hours without a crash while another tester gets a crash every 5 minutes or so. The crash might happen more often when the app is provisioning the BLE devices. During this time the scanner is disabled and the app is calling several BLE API in rapid succession: connect() discoverServices() discoverCharacteristics() readValue() writeValue() setNotifyValue(). After provisioning is complete all devices send 50 notifications per second continuously. Crashes are more rare while devices are sending notifications but it still happens. When bluetoothd crashes my app just restarts the whole process again and it always seems to work the second time without crashing.


If you want to dig further you can install this profile to get better bluetooth logging information.

https://developer.apple.com/bug-reporting/profiles-and-logs/


Scroll down to Bluetooth iOS, there is a provisioning profile you can install and some instructions, and it will cause extra debugging information, which might give you insight into what might be going on.