Skip to main content
New Participant
April 19, 2023

Spatial Anchor Cloud Save Fails

Hello, I'm trying to use "Shared Spatial Anchor" API in my project. When I try to Cloud Save my anchors, sometimes it succeeds but sometimes it fails. And somecase this Quest 2 device works but the other Quest 2 devices doesn't work. Please tell me what might be the cause of the failure.
 
FYI, I get the logs below when the cloud save fails:
2023-04-19 10:27:27.178  4616-5972  [CT]                    com...k.spatial_persistence_service  E  xr_vega_map_service: Failed to upload & async ingest map with error: std::runtime_error: TigonNetworker: request failure: TransientError domain: CURLcode code: 28 detail: 28: Failed to connect to graph.oculus.com port 443 after 30366 ms: Connection timed out
2023-04-19 10:27:27.179  4616-5972  [CT]                    com...k.spatial_persistence_service  E  xr_cloud_anchor_service: Failed to upload spatial anchor with error: std::runtime_error: Failed to upload map
2023-04-19 10:27:27.179  4616-5972  [CT]                    com...k.spatial_persistence_service  I  CasNetworkTelemetryObserver: CasNetworkTelemetryObserver onError
2023-04-19 10:27:27.181  5640-5725  [CT]                    com.stoicdev.ssatestprojectref       E  SP:AF:AnchorFrameworkSlamAnchor: saveAnchor failed!

19 replies

JeffNik
Honored Contributor
April 27, 2023

I came to the same theory/conclusion - that something wasn't closing down correctly on the device or on the Meta network between runs. But 100% of my issues with it are corrected now. How frustrating to NOT know what the actual problem was.  Maybe I'll try creating a new app to see if I can replicate the issue again. 

Participant
May 2, 2023

Glad I see your theory after 10 hours investigating the strange issue, i.e. the sample project only works well on the first try and could share the anchors with others, but it did not share any anchor (even the log said it has uploaded the anchor's data successfully) to other players if I restart the program within few minutes. 

My finding is that the anchor sharing mostly works fine after 10+ minutes 'cooling off' period. 

Atrujanox
Participant
May 6, 2023

That is exactly the same issue I am facing right now, that cooldown period may have omething to do with Oculus services but the thing is some people like Jeff has no issue at all.

Tried testing on same unity version 2022 and the problem persists.

Participant
May 8, 2023

Shared Spatial Anchors started working for us once we upgraded to OS version 53. This is (currently) available on the public test channel. https://www.meta.com/help/quest/articles/headsets-and-accessories/using-your-headset/quest-ptc/

Atrujanox
Participant
May 11, 2023

gshape I can confirm the v53 update did solve the issue, can you check if you got rid of the issue too? I did test 3 consecutive times without any problems

Participant
May 31, 2023

Yes, I can confirm it works fine on v53 for 2 devices. Thank you!