cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to save anchors

darkveins_
Explorer

OVRAnchor.Save() always returns false, indicating failure.

I'm using the SpatialAnchor example scene from the Oculus Integrations package.
Passthrough is working, and anchor creation is working.

-Unity 2022.1.16

-Oculus Integrations v43
-Oculus Quest 2 (dev mode enabled, experimental mode enabled)
-il2cpp, ARM64

In the log, there's an AnchorPersistenceIpcRuntimeServer error saying my package is not trusted and the save was aborted.


---------

Update: SOLVED!

I had to connect the device to wifi. After which I was prompted to do all this Meta account setup. 

(Note that it's not a new device, but I guess Meta rolled out some account updates)

1 ACCEPTED SOLUTION

Accepted Solutions

darkveins_
Explorer

Solved.

I had to connect the device to wifi. After which I was prompted to do all this Meta account setup. 

View solution in original post

2 REPLIES 2

darkveins_
Explorer

Solved.

I had to connect the device to wifi. After which I was prompted to do all this Meta account setup. 

darkveins_
Explorer

To provide even more detail, this is the full stacktrace I saw when experiencing this error. It may be a bit arbitrary since I wasn't connected to the internet, but perhaps someone will find it useful.

09-13 21:29:26.202 6430 6665 I RuntimeIPCClientMgr: ConnectToServer: SUCCESS: Client: com.Nifty.AnchorExperiment:com.Nifty.AnchorExperiment:6430, Server: com.facebook.spatial_persistence_service:com.facebook.spatial_persistence_service (anchor_persistence_server)
09-13 21:29:26.202 6430 6665 I RuntimeIPCClientMgr: GetClientOptions
09-13 21:29:26.205 2167 6752 W System.err: java.lang.ClassNotFoundException: com.oculus.packageintegrityclient.PackageIntegrityClient
09-13 21:29:26.206 2167 6752 I chatty : uid=10092(com.facebook.spatial_persistence_service) Thread-3 identical 1 line
09-13 21:29:26.206 2167 6752 W System.err: java.lang.ClassNotFoundException: com.oculus.packageintegrityclient.PackageIntegrityClient
09-13 21:29:26.207 2167 6752 I [CT] : AnchorPersistenceIpcRuntimeServer: checkRPC start: clientId:2584917192 givenPackageName:com.Nifty.AnchorExperiment
09-13 21:29:26.207 2167 6752 I [CT] : AnchorPersistenceIpcRuntimeServer: checkRPC package name matches: clientId:2584917192 givenPackageName:com.Nifty.AnchorExperiment detectedPackageName:com.Nifty.AnchorExperiment clientIdTrustedStatus_.count:1
09-13 21:29:26.207 2167 6752 E [CT] : AnchorPersistenceIpcRuntimeServer: Package com.Nifty.AnchorExperiment is not trusted, status: 1
09-13 21:29:26.207 2167 6752 E [CT] : AnchorPersistenceIpcRuntimeServer: Aborting saveAnchor for package name: com.Nifty.AnchorExperiment
09-13 21:29:26.207 6430 6665 E [CT] : Anchor:AnchorPersistenceIpcRuntimeClient: Failed RPC for saveAnchor, rpcAllowed: false, CallServerRPCResult: 9
09-13 21:29:26.208 6430 6664 E [CT] : Anchor:InsightAnchorApi: insight_SaveAnchorSpace (task abandoned) anchor 0, location: 1, request 3

If anyone is having further anchoring issues, you may want to try the following:
-Enabled dev mode and experimental mode on Quest
-Enabled Spatial Anchors, Passthrough, and Experimental in OVRManager (last 2 may not necessary)