google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

AR Core Cloud Anchors stopped working #775

Open Stoky555 opened 3 years ago

Stoky555 commented 3 years ago

SPECIFIC ISSUE ENCOUNTERED

NullReferenceException: Object reference not set to an instance of an object GoogleARCore.Examples.CloudAnchors.AnchorController.b__9_0 (GoogleARCore.CrossPlatform.CloudAnchorResult result) (at Assets/GoogleARCore/Projects/Examples/CloudAnchors/Scripts/AnchorController.cs:133) GoogleARCore.AsyncTask1[T].ThenAction (System.Action1[T] doAfterTaskComplete) (at Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs:118) GoogleARCore.Examples.CloudAnchors.AnchorController.HostLastPlacedAnchor (UnityEngine.Component lastPlacedAnchor) (at Assets/GoogleARCore/Projects/Examples/CloudAnchors/Scripts/AnchorController.cs:127) GoogleARCore.Examples.CloudAnchors.LocalPlayerController.SpawnAnchor (UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Component anchor) (at Assets/GoogleARCore/Projects/Examples/CloudAnchors/Scripts/LocalPlayerController.cs:74) GoogleARCore.Examples.CloudAnchors.CloudAnchorsExampleController._InstantiateAnchor () (at Assets/GoogleARCore/Projects/Examples/CloudAnchors/Scripts/CloudAnchorsExampleController.cs:455) GoogleARCore.Examples.CloudAnchors.CloudAnchorsExampleController.Update () (at Assets/GoogleARCore/Projects/Examples/CloudAnchors/Scripts/CloudAnchorsExampleController.cs:265)

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. create new server on arcore cloud
  2. wait until there are planes so you can place anchor
  3. when anchor is placed i get error NullReferenceException: Object reference not set to an instance of an object GoogleARCore.Examples.CloudAnchors.AnchorController.b__9_0

I made no changes into CloudAnchorsExampleController.cs in _InstantiateAnchor() and absolutely no change in AnchorController.cs also there are no changes in LocalPlayerController.cs in function SpawnAnchor()

Also what is really interesting. I tried very old build where everything worked fine and it was also not working ... also i had installed older version on my other phone where it also worked, but now it is not.

I really need to fix this as I am making my bachelors degree thesis :/.

Thanks

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS