MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

SharingTest not working, Anchor data invalid

Open fraspadafora opened this issue 8 years ago • 9 comments

Overview

I'm trying to run the SharingTest demo, but anchors are not valid and not uploaded to the sharing service. I tried with 4 different Hololens, removing the Spaces, creating the anchors after 10 seconds, creating a custom scene but there is no solution. 20180212_213018_hololens

Expected Behavior

SharingTest demo on two Hololens connected to the Sharing Service and sharing the WorldStage anchor of the first hololens connected.

Actual Behavior

When running the first Hololens and running the SharingTest, the Anchor is not uploaded. The anchor data is 0 bytes. I checked the size in the method "ExportComplete" of SharingWorldAnchorManager class, line 588 if (rawAnchorUploadData.Count < MinTrustworthySerializedAnchorDataSize)

The demo worked fine 2-3 times, uploading the anchors, after that it never worked again, I tried with 4 Hololens and it is not working.

Steps to reproduce

Just compile the SharingTest project and run it on the Hololens.

Unity Editor Version

2017.3.1f 64Bit I tried also with 2017.2.1f and it is not working.

Mixed Reality Toolkit Release Version

HoloToolkit-Unity-2017.2.1.1

fraspadafora avatar Feb 12 '18 20:02 fraspadafora

How much data was the anchors generating?

StephenHodgson avatar Feb 13 '18 04:02 StephenHodgson

Hi @StephenHodgson The anchor data is 0 bytes. I checked the size in the method "ExportComplete" of SharingWorldAnchorManager class, line 588

if (rawAnchorUploadData.Count < MinTrustworthySerializedAnchorDataSize)

The weird thing is that it worked 2-3 times, and then suddendly it never worked again in anyone of the devices.

Do you have any idea of why the anchor is creating is empty?

fraspadafora avatar Feb 13 '18 07:02 fraspadafora

From your video the lighting seemed to be really low. I'd suggest making sure that your ambient lighting is brighter.

StephenHodgson avatar Feb 13 '18 15:02 StephenHodgson

I tried also in my office with lot of light, but the problem persists. My tries at the moment are:

  • Different places (Home, Office)
  • Different WiFi
  • Unity 2017.3.1f and Unity 2017.2.1f
  • HoloToolkit-Unity-2017.2.1.1
  • 4 Hololens

Any further suggestion?

fraspadafora avatar Feb 14 '18 16:02 fraspadafora

Unity: 2017.2.0f3 (also tested with 2017.3.1p1) MRTK: 2017.2.1.0

I have a similar problem with the Sharing Service and the anchors. When I launch our Unity app on a Hololens and connect to the sharing server, everything looks fine and the anchors get updated (the debug text says so). When I launch the app on a second Hololens and connect to the same room via sharing service, the debug texts says that the anchor data is invalid.

I can also see that the shared holograms which are seen by both devices (this is actually working fine) are not in the same space in the real world. I would assume that the invalid anchor data is referring to my SharedWorldAnchor - therefore the anchors are at different positions on both devices because the update won't work correctly.

Maybe my problem is related to this one from @fraspadafora .

msdoseightysix avatar Feb 16 '18 12:02 msdoseightysix

I'm doing other tests. I think the problem is in the order of execution of the Netowrk scripts.

  • Sharing Stage
  • SharingWorldAnchorManager
  • AutoJoinSessionAndRoom

I'm checking this.

fraspadafora avatar Feb 21 '18 06:02 fraspadafora

Hello @fraspadafora!

I may have had this exact same issue.

You might need to enable the SpatialPerception capability for your Unity project. It is located under Edit -> Project Settings -> Player -> Publishing Settings

FCuttino avatar Feb 26 '18 22:02 FCuttino

Hi @StephenHodgson When i ran the SharingTest.scene in MixedRealityToolkit on PC happend the same question.

daxuewuqing avatar Mar 12 '18 08:03 daxuewuqing

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.

wiwei avatar Apr 11 '19 20:04 wiwei