MixedRealityToolkit-Unity: Access Denied using Sharing Service + Holographic Remoting

I am getting an access denied for the WorldAnchorTransferBatch ExportAsync.

This only happens in Holographic Remoting. It works fine if remoting is not active (both device and editor).

The world anchor has been saved… just fails to export.

// Save the anchor to our local anchor store. if (anchorStore.Save(exportingAnchorName, anchor)) { sharedAnchorInterface = new WorldAnchorTransferBatch(); sharedAnchorInterface.AddWorldAnchor(guidString, anchor); WorldAnchorTransferBatch.ExportAsync(sharedAnchorInterface, WriteBuffer, ExportComplete); } else { Debug.Log("This anchor didn't work, trying again"); currentState = ImportExportState.InitialAnchorRequired; }

Here is the stack trace on the error: SpatialAnchorTransferManager denied access to WorldAnchor serialization 0x00000001414DD7FB (Unity) StackWalker::GetCurrentCallstack 0x00000001414DF4AE (Unity) StackWalker::ShowCallstack 0x00000001414AE583 (Unity) GetStacktrace 0x00000001411B7A7B (Unity) DebugStringToFile 0x00000001411B7EEC (Unity) DebugStringToFile Which sound similar to this post https://forums.hololens.com/discussion/1549/access-denied-on-world-anchor-export but I am saving successfully prior to the export call.

I also tried enabling every capability to ensure it was not a permissions issue though I think those may only trigger on deployment (not sure).

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 1
  • Comments: 23 (8 by maintainers)

Most upvoted comments

I could repro this issue with HoloToolkit-Unity Sharing test scene.

  1. Anchor creation worked.
  2. Anchor got located.
  3. Anchor got saved.
  4. Export gave SpatialAnchorTransferManager denied access to WorldAnchor serialization.

Will follow up internally.

It was over 10mb. Here is just the assets folder… hopefully you can just drop it in a project.

Assets.zip

Posted a project here.

Let me know if you have issues downloading and I can tweak permissions.

All I did was create a new project, drop in latest hololens, and wire up some of the base prefab/components. The only code I changed was to add some additional logs.

I dropped a cube in the scene but at this point nothing visual is necessary.

To reproduce run this in 5.5. Have a sharing session running. Enable remoting. The app will connect but then fail to serialize the anchor as discussed above.

In case link is broken:: https://drive.google.com/file/d/0B-WNtodAE0QpbW0taG5oUlVKNHc/view?usp=sharing

I can’t share this one… but I’ll work on re-creating in a sample this afternoon.

@HodgsonSDAS WorldAnchorStore GetAsync completes successfully for the Editor while Remoting.