Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

iOS occasionally freeze when walk around when detection is on #411

Closed snowyao closed 1 year ago

snowyao commented 1 year ago

Most of the time, save and detect anchor works good, but iOS occasionally freeze when walk around when detection is on.

Device: iPhone X and iPhone 12, "iPhone OS 16.4.1", Wifi and 4G Develop in Unity 2020.3

Here are the related crash report: Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x202776558 psynch_cvwait + 8 1 libsystem_pthread.dylib 0x2233ff078 _pthread_cond_wait + 1232 2 libc++.1.dylib 0x1d2084ef8 std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 AzureSpatialAnchors 0x10dbb9d34 ReaderWriterLock::ScopedReader::ScopedReader(ReaderWriterLock&) + 88 4 AzureSpatialAnchors 0x10dbbc0cc SpatialPersistence::NeighborhoodKeyFrameMap::GetAllKeyFrames(bool, std::1::function<void (SpatialPersistence::NeighborhoodKeyFrame const*, unsigned long)> const&) + 236 5 AzureSpatialAnchors 0x10d7661d8 SpatialServices::MobileNeighborhoodManager::GetClosestPlatformAnchorWithinRadius(Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, float) const + 132 6 AzureSpatialAnchors 0x10d76296c SpatialServices::MobileNeighborhoodManager::CreateNeighborhoodAnchorForFrameAtCurrentLocation() + 96 7 AzureSpatialAnchors 0x10d76436c SpatialServices::MobileNeighborhoodManager::OnArFrameAvailable(SpatialServices::IMobileArFrame&, bool&) + 3616 8 AzureSpatialAnchors 0x10d88a7f8 SpatialServices::ARKitFrameProvider::OnFrame(unsigned char const, unsigned long, unsigned long, unsigned long, std::1::array<float, 16ul> const&, SpatialServices::CameraCoordinateSystemConvention, SpatialPersistence::SimilarityTransform const&, std::1::array<float, 9ul> const&, std::1::array<float, 3ul> const&, unsigned long long, unsigned int, float const, unsigned long, bool&) + 292 9 AzureSpatialAnchors 0x10d88fcc4 ArProcessFrame + 572 10 AzureSpatialAnchors 0x10d823ad4 ssc_cloud_spatial_anchor_session::processFrame(objc_object) + 240 11 AzureSpatialAnchors 0x10d716b40 ssc_cloud_spatial_anchor_session_process_frame + 28 12 UnityFramework 0x1137b8774 CloudSpatialAnchorSession_ProcessFrame_m9EC693B8FB46941B378086FF8499DD74E50DF031 + 24 13 UnityFramework 0x1137ab404 SpatialAnchorManager_ProcessLatestFrame_m6F68F7050DC4496F3A02257B476C81DDBF7DF0F0 + 308 14 UnityFramework 0x113f7f7f0 Action_1_Invoke_m16C50624F7DC154E078C15EAF2F6A72900BAE2BF_gshared + 364 15 UnityFramework 0x114c52418 ARCameraManager_InvokeFrameReceivedEvent_mFA6B387BB4C37EEA361B124E0C37EB175459F352 + 2480 16 UnityFramework 0x114c51660 ARCameraManager_Update_m59A72826D7393FD290F5DB14B762B7A45E28347B + 368 17 UnityFramework 0x111d18fa0 RuntimeInvoker_TrueVoid_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5(void ()(), MethodInfo const, void*, void) + 20 18 UnityFramework 0x112fd8d04 il2cpp::vm::Runtime::Invoke(MethodInfo const, void, void, Il2CppException*) + 116 19 UnityFramework 0x112696774 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr, bool) + 124 20 UnityFramework 0x1126a2bcc ScriptingInvocation::Invoke(ScriptingExceptionPtr, bool) + 120 21 UnityFramework 0x1126af8c8 MonoBehaviour::CallUpdateMethod(int) + 272 22 UnityFramework 0x1124c6e40 void BaseBehaviourManager::CommonUpdate() + 228 23 UnityFramework 0x11259d314 ExecutePlayerLoop(NativePlayerLoopSystem) + 100 24 UnityFramework 0x11259d354 ExecutePlayerLoop(NativePlayerLoopSystem) + 164 25 UnityFramework 0x11259d620 PlayerLoop() + 272 26 UnityFramework 0x112aa9d68 UnityPlayerLoopImpl(bool) + 112 27 UnityFramework 0x111c1d2dc -[UnityAppController(Rendering) repaint] + 84 28 UnityFramework 0x111c1d26c -[UnityAppController(Rendering) repaintDisplayLink] + 76 29 QuartzCore 0x1c4fb58a4 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 820 30 QuartzCore 0x1c4fc584c display_timer_callback(__CFMachPort, void, long, void) + 372 31 CoreFoundation 0x1c3ae2e44 CFMachPortPerform + 176 32 CoreFoundation 0x1c3b00238 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 60 33 CoreFoundation 0x1c3b01f28 CFRunLoopDoSource1 + 520 34 CoreFoundation 0x1c3ae3748 __CFRunLoopRun + 2240 35 CoreFoundation 0x1c3ae84dc CFRunLoopRunSpecific + 612 36 GraphicsServices 0x1fed4835c GSEventRunModal + 164 37 UIKitCore 0x1c5e7437c -[UIApplication _run] + 888 38 UIKitCore 0x1c5e73fe0 UIApplicationMain + 340 39 UnityFramework 0x111c1ce24 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 92