is WorldAnchorTransferBatch broken in 5.5.0b11?

I’m using WorldAnchorTransferBatch to serialize WorldAnchors which is working great in the HoloLens Emulator. Once I use it on the actual HoloLens hardware it fails every time with the error “Failed to world lock serialization failed”. Here is the code that causes the error.

            var worldAnchorBatch = new WorldAnchorTransferBatch();
            worldAnchorBatch.AddWorldAnchor(AnchorName, anchor);
            WorldAnchorTransferBatch.ExportAsync(worldAnchorBatch, WriteBuffer, ExportComplete);

My questions are:

  • Is this broken or am I doing something wrong?
  • If it is broken in Unity, any idea when it will be fixed?

I’ve been banging my head against the wall for days, so any help is appreciated!

Can you submit a bug with a project that repro’s what you are seeing please so we can investigate the issue?

Thank you for the reply. I have created a bug with an attached repro. I’m looking forward to any info you can give me.
This is Case 854173.

This issue still exists in the released 5.5, there has been nothing posted or added to my bug and I can’t modify to add that new information. Any idea when this will at least be triaged? 2 or the 3 HoloLens Apps I’m working on are stuck because of this bug…

I am getting the same error with Unity 5.5.0f3 and 5.6.0b1 . Was the problem coming from Unity or was it something with your code?

I got feedback on my bug from Unity QA saying that my example works fine for them. They asked me to refine the example I have even smaller for them to review, which I will do today. So no idea where the actual issue is… I know there is another person I’m talking to on Stack Overflow with the same problem as well. My guess is its a unity issue based on three of us with the same problem, but who knows… I’ll keep this thread updated if I find out more.

I’ve submitted a new repro to Wesley, he was unable to reproduce this, which is a bit concerning.

1 Like

Could that be related to the device then. If I delete the spatial information from the hololens, I seem to get data to export but then the export fail. After a time I am just back to the error: “Failed to world lock serialization failed”