Posts

Post not yet marked as solved
1 Replies
291 Views
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?
Posted
by vani2.
Last updated
.
Post marked as solved
1 Replies
264 Views
I recently updated my Xcode to 13.3 above 13.2.1 (download xip-file manually and replace). macOS was updated from 12.2 to 12.3 and it didn't help. My hardware is M1 Macbook Air. And since the first installation on an iOS device I see the following: My device shows a splash screen. Debug console is completely empty. On the debug navigator during freeze I see this. After 5-10 minutes my app launches normally. The strange thing is I see that behavior 100% on each app. That's not related to a simulator, but I tested it with two different iPhones. I checked by setting a breakpoint to a first line of application(_ willFinishLaunchingWithOptions) and nothing is executed before 5-10 minutes of freeze behaviour.
Posted
by vani2.
Last updated
.