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!
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 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.
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”