microsoft / MixedReality-WorldLockingTools-Unity

Unity tools to provide a stable coordinate system anchored to the physical world.
https://microsoft.github.io/MixedReality-WorldLockingTools-Unity/README.html
MIT License
188 stars 45 forks source link

HoloLens 2 - Lost Tracking message using XRSDK subsystem #300

Open Kialarr opened 2 years ago

Kialarr commented 2 years ago

Hi, I'm trying to build the WorldLockingBasic scene from Examples to HoloLens 2, setting Anchor subsystem to XRSDK and applying the WLT HL2 MRTK profile, but for some reason I can't get it to work on the device - I'm getting the Lost Tracking message, no further explanation. Do you know if I could have missed something in the configuration? I'm using Unity 2021.3 but also tried it on 2020 LTS with same result.

mrvnbrk commented 2 years ago

Hi, I have the same problem. Have you been able to solve it in the meantime? I will let you know if I find a solution.

Kialarr commented 2 years ago

No, I just switched to AR Foundation and its XR Anchor Store, I won't bother to work with a solution where I can't even get the examples to run properly.

mrvnbrk commented 2 years ago

Do you have documentation for this solution? I am still a beginner and need support.

BookSadprasid commented 2 years ago

@fast-slow-still I am also facing the same issue using the WorldLockedPhysicsSample.

Here are the details of my setup.

Custom Packages:

Unity Technologies Packages:

The only changes to the base sample are:

Deployment-wise, I just build it using the MRTK/Unity recommended build settings and deploy it remotely via Visual Studio 2022.

This is a screenshot showing the Loss Tracking error message a Current Fragment: Invalid. Due to this error, no Anchors or edges are being instantiated.

20220730_143420_HoloLens

KoltonG commented 2 years ago

+1 for @BookSadprasid's issue. I am facing the exact same problem.

I've also tried to change the anchor subsystem to ARFoundation with the same issue of "Lost Tracking".

This is unfortunately blocking my project from using WLT since both XRSDK and ARFoundation are not working.

johnluksas commented 2 years ago

Hello All

I was facing the same issue on the examples but was able to fix it by rolling back the Mixed Reality OpenXR Plugin to 1.4.1. I have not tried Mixed Reality OpenXR Plugin 1.4.2 so it is possible that version may work.

Old Config (did not work for me) Unity: 2020.3.34f1 Mixed Reality OpenXR Plugin: 1.4.3 OpenXR Plugin: 1.4.2 XR Plugin Management: 4.2.1 Anchor Sub-system: XRSDK

New Config (worked for me) Unity: 2020.3.34f1 Mixed Reality OpenXR Plugin: 1.4.1 OpenXR Plugin: 1.4.2 XR Plugin Management: 4.2.1 Anchor Sub-system: XRSDK

@BookSadprasid @KoltonG Let me know if that works for you so I know that was the actual issue and not another thing I happened to change.

The easiest way to change the Mixed Reality OpenXR Plugin version is in the dropdown on the Mixed Reality Feature Tool

image
mrvnbrk commented 2 years ago

@crusher1013 That's it! Thank you!

BookSadprasid commented 2 years ago

@crusher1013 thank you so much, that was it! I tried with Mixed Reality OpenXR Plugin: 1.4.2 and got the "Lost Tracking" error so for now I will stick with Mixed Reality OpenXR Plugin: 1.4.1