Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

AR Core Cloud Anchors stopped working #775

@Stoky555

Description

@Stoky555

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

  • Unity: 2019.1.5f1
  • ARCore SDK for Unity: ARCore SDK for Unity v1.9.0
  • Device manufacturer, model, and O/S: Xiaomi Mi 8, Android 10
  • Google Play Services for AR (ARCore):
    On Windows, use: adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
    On macOS, use: adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
  • Output of adb shell getprop ro.build.fingerprint:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions