02-16-2023 02:23 AM
Hello,
We are trying to implement the sample scene from this repository:
https://github.com/oculus-samples/Unity-SharedSpatialAnchors
This way we hope to test the Colocation to ultimately use it in our experiences.
However, when creating an anchor and then sharing it, we come across an error on the app logs:
"Saving anchor(s) failed. Possible reasons include an unsupported device."
When I check the adb logs, I get the following errors:
SP:AP:AnchorPersistenceConfig: getCloudPermissionEnabled: oculus_spatial_anchor_cloud=false
SP:AP:AnchorPersistenceRuntimeIpcServer: Request denied based on storage location for package com.Oculus.UnitySharedSpatialAnchors, sessionUuid:e0d791ec-49a1-4948-abd4-e4754812554b
SP:AP:AnchorPersistenceRuntimeIpcServer: Aborting saveAnchorV3 for package name: com.Oculus.UnitySharedSpatialAnchors
SP:AP:AnchorPersistenceRuntimeIpcClient: Failed RPC for saveAnchor, rpcAllowed: false, CallServerRPCResult: 9
SP:AF:AnchorFrameworkSlamAnchor: saveAnchor failed!
I have tested it on two Oculus Pro and an Oculus Quest 2 without success...
Do you have any idea how to resolve this issue (I can't seem to find anything on internet) ? Could it come from a missing Android permission ?
02-21-2023 03:34 AM
Have you tried to activate the permission to share anchors in the permission settings for the user in the HMD?
04-21-2023 04:00 PM
Is there such a setting? I don't see anything like that.
04-26-2023 03:00 AM
Yes, in Settings under Privacy and Device Permission you will find Share point cloud data. Make sure it is enabled.
04-26-2023 02:00 PM
This sample scene is really strange. Sometimes it shares anchors successfully and sometimes it doesn’t. When it doesn’t there’s not error message or timeout, the anchors just never appear in the Player 2 scene. I’m not even sure what to troubleshoot. It seems particularly disfunctional if one of the headsets goes to sleep at any point, which can happen since I’m one person trying to test on two headsets.
04-26-2023 07:43 PM
Also, in your Unity project, make sure you have set the app ID to one created on the Meta developer's website under your organization. The anchors you save to the cloud and share are specific to THAT application and THAT physical space only.
05-02-2023 12:00 AM
I seems to have same problem as you. It only works randomly once, then next time the anchors in player 2 view just disappeared, no error logged.
4 weeks ago
I also faced the same problem and it was simply because I didn't enter the appid.