Our App is starting to crash (SIGABRT) with the following Assertion failure:
Assertion failed: (CFReadStreamGetStatus(_stream.get()) == kCFStreamStatusNotOpen), function _onqueue_setupStream_block_invoke, file HTTPRequestBody.cpp, line 878.
Some context and details:
It´s only happening for iOS 16.x versions, although our app is supported also in iOS15.
crash started to happen a few days after the release date
app state is foreground
it´s happening in almost every kind of device
deployment target is iOS 15.0
Nothing in any is the other threads indicates this could be related to our code, that´s the stack trace of the affected threads:
Thread 7 Queue 1417: com.apple.CFNetwork.Connection(serial):
0 libdispatch.dylib 0x1d8469548 _dispatch_lane_serial_drain + 688
1 libdispatch.dylib 0x1d846a0d8 _dispatch_lane_invoke + 435
2 libdispatch.dylib 0x1d846b394 _dispatch_workloop_invoke + 1763
3 libdispatch.dylib 0x1d8474cdc _dispatch_workloop_worker_thread + 647
4 libsystem_pthread.dylib 0x23092fddc _pthread_wqthread + 287
5 libsystem_pthread.dylib 0x23092fb7c start_wqthread + 7
Thread 8 Unknown:
0 libsystem_kernel.dylib 0x20fcb1c84 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x20fcc4e2c mach_msg_overwrite + 539
2 libsystem_kernel.dylib 0x20fcb21c8 mach_msg + 23
3 Instabug 0x104152c40 exception_server_thread + 187
4 libsystem_pthread.dylib 0x2309306b8 _pthread_start + 147
5 libsystem_pthread.dylib 0x23092fb88 thread_start + 7
Thread 9 com.apple.NSURLConnectionLoader [Crashed]:
0 libsystem_kernel.dylib 0x20fcb8558 __pthread_kill + 8
1 libsystem_c.dylib 0x1d84c2178 abort + 179
2 libsystem_c.dylib 0x1d851a0a4 __assert_rtn + 271
3 CFNetwork 0x1d21a4948 _CFNetworkHTTPConnectionCacheGetLimit + 158579
4 libdispatch.dylib 0x1d8461eac _dispatch_client_callout + 19
5 libdispatch.dylib 0x1d846591c _dispatch_block_invoke_direct + 263
6 CFNetwork 0x1d22017cc _CFURLStorageSessionDisableCache + 56783
7 CoreFoundation 0x1d0fafe88 CFArrayApplyFunction + 71
8 CFNetwork 0x1d22016bc _CFURLStorageSessionDisableCache + 56511
9 CFNetwork 0x1d2203c64 _CFURLStorageSessionDisableCache + 66151
10 CoreFoundation 0x1d106c208 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
11 CoreFoundation 0x1d1078864 __CFRunLoopDoSource0 + 175
12 CoreFoundation 0x1d0ffd6c8 __CFRunLoopDoSources0 + 243
13 CoreFoundation 0x1d10131c4 __CFRunLoopRun + 827
14 CoreFoundation 0x1d10184dc CFRunLoopRunSpecific + 611
15 CFNetwork 0x1d22027e0 _CFURLStorageSessionDisableCache + 60899
16 Foundation 0x1cb2c3634 __NSThread__start__ + 715
17 libsystem_pthread.dylib 0x2309306b8 _pthread_start + 147
18 libsystem_pthread.dylib 0x23092fb88 thread_start + 7