Azure / azure-spatial-anchors-samples

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

iOS - App freeze when stopping ARSession or change screen from ARSession screen to another normal screen #352

Open Bindrr-Main opened 2 years ago

Bindrr-Main commented 2 years ago

Hi,

I am using Azure Spatial Anchor APIs for my iOS app. The issue is when I am leaving the Ar-screen all the other screen is getting freeze and not able to do any kind of action on other screen.

Bindrr-Main commented 2 years ago

@darax any update on my issue?

darax commented 2 years ago

Hi @Bindrr-Main, I just tried a Xamarin iOS app on my iPad and I'm able to switch apps. Are you working in Unity, Swift, Xamarin, or Obj-C? Does the same issue happen if you run the sample and try to go to different apps?

Bindrr-Main commented 2 years ago

Hey @darax, We are working on swift (Xcode) and the issue is not about switching apps, the issue is switching screens within an app, when you switch from AR Screen (Where you upload or retrieve cloud anchors) to another screen, your app will get freeze.

darax commented 2 years ago

@Bindrr-Main Just making sure I understand. Your application has multiple scenes, one of which is AR. When you move away from the AR scene, the application freezes. Our samples all have this sort of interaction. They have a landing scene with a few demo options that each have their own AR scene. It might help to run the application under debug mode in Xcode and reproduce the issue. Then break into the debugger and inspect the threads to see if there is a deadlock somewhere. I'm also curious if Azure Spatial Anchors wasn't in the project if you'd experience the same issue.

Varnauld commented 2 years ago

@Bindrr-Main - are you still experiencing this issue today? thank you