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

WLT + ASA not working #286

Closed Ahim13 closed 2 years ago

Ahim13 commented 2 years ago

WLT is implemented in our project and is working fine, and now we wanted to implement ASA as well. After following the guides, the build is successful, but on the Hololens 2 the following issues are present:

  1. Grabbing the spheres in the scene with the Sofa they just snap back to their original place and seemingly they don't do much (only print new values to the console)
  2. When pressing Publish it starts the process, but immediately gives back an error: "Could not obtain the ARAcnhor.Nativeptr". (- probably because of this the loading / search does not find any matching anchors from the server.)

We tried it in our project then tried the sample project (https://github.com/microsoft/MixedReality-WorldLockingTools-Samples/tree/master/Advanced).

The sample project had the same result (also worth mentioning that the sample project did not work out of the box, but we had to add the ASA core and ASA windows SDKs and also readd FrozenWorld from Nuget to make it compile and build)

Tried Unity Versions:

WLT,MRTK,ASA

using the latest version - our setup Provided version - sample project

XR Provider

both scenario - used WindowsMR / Windows Mixed Reality

Hololens version

image

Briefly: Both projects and setup gave the same error and issues. WLT + ASA not working in both scenarios.

fast-slow-still commented 2 years ago

Great info, thanks! Could you attach your UnityPlayer.log file? Also, could you post what versions the various dependencies you are using?

It sounds like ASA isn't successfully initializing, the problem may be buried in the UnityPlayer.log file.

The sample project had the same result (also worth mentioning that the sample project did not work out of the box, but we had to add the ASA core and ASA windows SDKs and also readd FrozenWorld from Nuget to make it compile and build)

Yes, that's correct. For legal reasons WLT can't distribute other products like ASA, but can only tell you how to add dependencies in the documentation, for example here.

Ahim13 commented 2 years ago

Sure. Attached the Player log UnityPlayer.log

The versions are the following:

Our setup:

Sample project (from the previous link):

Relevant packages in our setup:

image image image

fast-slow-still commented 2 years ago

I was able to repro the issue on a clean version of the sample.

Then I updated the AR Foundation package to version 4.1.9, and everything started working again.

Could you try updating AR Foundation and let me know if it fixes things or if you still have problems?

I'm going to leave this issue open to track updating the sample's AR Foundation package to 4.1.9 (I know 4.1.8 also works).

Thanks!

Ahim13 commented 2 years ago

I can confirm, updating AR Foundation to 4.1.9 did the trick and solved it, now it is working.

Thanks!

fast-slow-still commented 2 years ago

Excellent, thanks for the feedback!