The app is getting crashed with below trace (also attached). We are capturing bluetooth signals to store the devices getting connected and disconnected. For the entire customer base, an aggregated value of such events is ~1 million. Out of this, we receive ~1k-1.5k crashes every day because of this issue.
Crashed: AVAudioSession Notify Thread
0 goiq 0x100b78a6c CLSProcessRecordAllThreads + 290456
1 goiq 0x100b78f2c CLSProcessRecordAllThreads + 291672
2 goiq 0x100b6877c CLSHandler + 224168
3 goiq 0x100b7707c _CLSExceptionRecordblockinvoke + 283816
4 libdispatch.dylib 0x198fe6524 dispatchclientcallout + 16
5 libdispatch.dylib 0x198f990b0 dispatchlanebarriersyncinvokeandcomplete + 56
6 goiq 0x100b76aec CLSExceptionRecord + 282392
7 goiq 0x100b7691c CLSExceptionRecordNSException + 281928
8 goiq 0x100b76514 CLSTerminateHandler() + 280896
9 libcabi.dylib 0x1990e914c std::terminate(void (*)()) + 16
10 libc++abi.dylib 0x1990e90e4 std::terminate() + 44
11 AVFAudio 0x1a5fdf340 AVAERaiseException(NSString*, ...) + 10
12 AVFAudio 0x1a606b590 invocation function for block in avfaudio::AVAudioSessionPropertyListener(void*, unsigned int, unsigned int, void const*) + 3802
13 AudioToolbox 0x1a45349ac AudioSessionPropertyListeners::CallPropertyListeners(unsigned int, unsigned int, void const*) + 596
14 AudioToolbox 0x1a4588cb0 HandleCFPropertyListChange(unsigned int, unsigned int, unsigned long, unsigned char*, unsigned int) + 696
15 AudioToolbox 0x1a458e868 HandleAudioSessionCFTypePropertyChangedMessage(unsigned int, unsigned int, void*, unsigned int) + 328
16 AudioToolbox 0x1a458df80 ProcessDeferredMessage(unsigned int, _CFData const*, unsigned int, unsigned int) + 1620
17 AudioToolbox 0x1a458d57c ASCallbackReceiverAudioSessionPingMessage + 632
18 AudioToolbox 0x1a45fb798 XAudioSessionPingMessage + 44
19 libAudioToolboxUtility.dylib 0x1a468e430 mshMIGPerform + 264
20 CoreFoundation 0x19929f2b4 CFRUNLOOPISCALLINGOUTTOASOURCE1PERFORMFUNCTION + 56
21 CoreFoundation 0x19929e9c0 CFRunLoopDoSource1 + 444
22 CoreFoundation 0x199299774 CFRunLoopRun + 1888
23 CoreFoundation 0x199298ce8 CFRunLoopRunSpecific + 424
24 AVFAudio 0x1a6042a2c GenericRunLoopThread::Entry(void*) + 156
25 AVFAudio 0x1a60937a0 CAPThread::Entry(CAPThread*) + 204
26 libsystempthread.dylib 0x199036d98 pthreadstart + 156
27 libsystempthread.dylib 0x19903a74c threadstart + 8
Can you please help on this issue, and a possible solution to fix it. We are unable to replicate this issue on our local/dev app.
SIGABRT ABORT 0x0000000199115d88 - https://developer.apple.com/forums/content/attachment/70658def-f88e-45a6-8620-6c06cf8d0e78