Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
DiscreteSoup's avatar
DiscreteSoup
Honored Guest
3 years ago

Spatial Anchor creation over link fails with Result.Failure_Unsupported

I create an Unity GameObject and then add the OVRSpatialAnchor component.
When it calls CreateSpatialAnchor in its Start method, it always fails when on Oculus Link (works fine if I make an Android build)

Digging into this, it is this call in OVRPlugin that fails with Result.Failure_Unsupported: 

OVRP_1_72_0.ovrp_CreateSpatialAnchor


Are there any suggestions on what could be going wrong - this error message isn't the most helpful and I can't find documentation online about it.

N.B. I've managed to get the example spatial anchors project (https://github.com/oculus-samples/Unity-SharedSpatialAnchors) working perfectly over link and creating anchors successfully with the same machine & headset so the problem must be something to do with my project's unity configuration. I can't for the life of me find the difference between the example project and my project though - OVRManager settings look identical.

4 Replies

  • I have also done everything correctly in my project, sample project works fine but my project on quest link does not

    [OVRSpatialAnchor] OVRPlugin.CreateSpatialAnchor failed. Destroying OVRSpatialAnchor component.

    no idea what is happening

    • Moon_byoll's avatar
      Moon_byoll
      Honored Guest

      hello, i am facing the same error and i dont know why:

      [OVRSpatialAnchor] OVRPlugin.CreateSpatialAnchor failed. Destroying OVRSpatialAnchor component.
      UnityEngine.Debug:LogError (object)
      OVRSpatialAnchor/Development:LogError (string) (at ./Library/PackageCache/com.meta.xr.sdk.core@66.0.0/Scripts/OVRSpatialAnchor.cs:1084)
      OVRSpatialAnchor:CreateSpatialAnchor () (at ./Library/PackageCache/com.meta.xr.sdk.core@66.0.0/Scripts/OVRSpatialAnchor.cs:530)
      OVRSpatialAnchor:Start () (at ./Library/PackageCache/com.meta.xr.sdk.core@66.0.0/Scripts/OVRSpatialAnchor.cs:454)

      Does anybody know how to fix it? it has been days that i am searching and still found nothing ..

  • You mentioned that you checked your OVRManager settings - but double check that you have set the "Anchor Support" to "supported" or "required". Also, I believe that when you run your app as a PCVR app over Link, you need a valid Rift app id in your project settings, it won't use the Quest app id. I'll do a little experimenting tonight to verify that second part. 

  • UPDATE/FIXED:

    Switched to OpenXR and this fixed it - I guess the unsupported error is correct but just didn't give me enough context of why