I use ARKit for face detection and my view controller conforms to ARSessionDelegate to get updates from
func session(_ session: ARSession, didUpdate frame: ARFrame)
Most of the time it works fine, but in production I noticed lots of crashes.
OS Version: iOS 13.4 (17E255)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 21
Application Specific Information:
*** NSPointerArray unable to allocate memory -- allocation function failed
Thread 21 Crashed:
0 CoreFoundation 0x33e41e164 __exceptionPreprocess
1 libobjc.A.dylib 0x33df73c18 objc_exception_throw
2 Foundation 0x33eb717b4 allocationFailure
3 Foundation 0x33eae30e8 -[NSConcretePointerArray arrayGrow:]
4 Foundation 0x33eac3158 -[NSConcretePointerArray addPointer:]
5 ARKit 0x3771dc90c -[ARSession _sessionDidUpdateFrame:]
6 ARKit 0x3771d4228 -[ARSession technique:didOutputResultData:timestamp:context:]
7 ARKit 0x377180ae4 -[ARParentTechnique _submitResultsForTimestamp:context:]
8 ARKit 0x377180540 -[ARParentTechnique technique:didOutputResultData:timestamp:context:]
9 ARKit 0x377203ea8 -[ARFaceLightEstimationTechnique requestResultDataAtTimestamp:context:]
10 ARKit 0x37718051c -[ARParentTechnique technique:didOutputResultData:timestamp:context:]
11 ARKit 0x3771c59e8 -[ARWorldAlignmentTechnique requestResultDataAtTimestamp:context:]
12 ARKit 0x37718051c -[ARParentTechnique technique:didOutputResultData:timestamp:context:]
13 ARKit 0x377180ae4 -[ARParentTechnique _submitResultsForTimestamp:context:]
14 libdispatch.dylib 0x33de8d338 _dispatch_client_callout
15 libdispatch.dylib 0x33de8faf4 _dispatch_continuation_pop
16 libdispatch.dylib 0x33dea0620 _dispatch_source_invoke
17 libdispatch.dylib 0x33de93728 _dispatch_lane_serial_drain
18 libdispatch.dylib 0x33de942c0 _dispatch_lane_invoke
19 libdispatch.dylib 0x33de9c5bc _dispatch_root_queue_drain
20 libdispatch.dylib 0x33de9c37c _dispatch_worker_thread
21 libsystem_pthread.dylib 0x33df598f8 _pthread_start
22 libsystem_pthread.dylib 0x33df619d0 thread_start
Can someone give a clue what can be wrong on my side or is that ARKit bug only?