Closed Jukka-L closed 9 months ago
Hello, I get exactly the same errors with Unity 2019.4.3f1 but, I can build and even install the application, but I can't put any anchors due to errors.
@polar-kev Kevin maybe you can help redirect the issue to the ASA team?
@HurjaSolutionsJukkaL @Pandalex1
@mr0ng, any advice on this one? @hferrone, what's the best way to route this to the DMC github repo so it can live with the tutorial?
@polar-kev yes, looks like the solution is provided in the comment above. For a longer term solution, we may need to look at removing the rest sharp dependency and use UnityWebRequest, which is built in.
Hello @Bathur , your solution works to me, with step 2.1 and 2.2 works!, I can export without those errors, BUT, for some reason I can't create any anchors, when I try, the debug shows a lot of errors so I'm stuck again:
@Pandalex1 are you able to share your tutorial repo via GitHub so we can see how you've configured it on your end?
@Pandalex1 I have seen this runtime error message, but I have seen it when I have not resolved the build error. You may be able to try to upgrade the ASA plugin version to the latest version. I later changed the version provided in the tutorial to 2.7.0 and it still worked.
@Bathur I tried with ASA 2.7 and got the same error:
@HurjaSolutionsJukkaL @Pandalex1
- Select "..\Assets\MRTK.Tutorials.AzureSpatialAnchors\Plugins\RestSharp.dll"
- Change the settings of the inspector panel 2.1 Platform settings->SDK->UWP 2.2 Check "Don't process" 2.3 Uncheck “Select platforms for plugin->Any Platform”, and Check ALL platforms below P.S. I'm not sure which step took effect. For steps 2.1 to 2.3, I did it together. According to experience, I think step 2.1 is the key, but I still did 2.2 and 2.3 to ensure that it is correct.
Thanks, this removed Unity build-time errors for me too, but unfortunately in the built application I'm receiving the same errors as @Pandalex1 mentioned earlier.
@HurjaSolutionsJukkaL Strangely, after I did the steps I shared, the program worked normally. I tried the asa plug-in version (2.4) provided by the tutorial and the asa plug-in version (2.6, 2.7) referenced by UPM, and there is no problem. My unity version has used 2019.4.15f1 and 2019.4.16f1. This is all the information I can provide.
@Bathur
Strangely, after I did the steps I shared, the program worked normally. I tried the asa plug-in version (2.4) provided by the tutorial and the asa plug-in version (2.6, 2.7) referenced by UPM, and there is no problem. My unity version has used 2019.4.15f1 and 2019.4.16f1. This is all the information I can provide.
Would you be able to make a github repo of your project so I could try it out and see if I can find some differences? Just remember to remove all sensitive information like azure account information etc.
Hello @HurjaSolutionsJukkaL , good news! I managed to make it work, I did exactly the same proyect, but instead of using AzureSpatialAnchors.unitypackage (2.2.1), I used AzureSpatialAnchors.unitypackage (2.5) from: https://github.com/Azure/azure-spatial-anchors-samples/releases
But, I noticed that ASA 2.7 says: "This SDK 2.7.0 release contains an important change. All clients are required to upgrade to 2.7.0 SDK or later before February 3, 2021. Any client application on earlier versions of Azure Anchors SDK will not be able to connect to the ASA service starting February 3, 2021.", so I think I'll have to upgrade to 2.7 eventually, but now i'm finally able to check how to use ASA. I hope it works for you too.
Hello @HurjaSolutionsJukkaL , good news! I managed to make it work, I did exactly the same proyect, but instead of using AzureSpatialAnchors.unitypackage (2.2.1), I used AzureSpatialAnchors.unitypackage (2.5) from: https://github.com/Azure/azure-spatial-anchors-samples/releases
But, I noticed that ASA 2.7 says: "This SDK 2.7.0 release contains an important change. All clients are required to upgrade to 2.7.0 SDK or later before February 3, 2021. Any client application on earlier versions of Azure Anchors SDK will not be able to connect to the ASA service starting February 3, 2021.", so I think I'll have to upgrade to 2.7 eventually, but now i'm finally able to check how to use ASA. I hope it works for you too.
I got it working too using the 2.7 version by starting a fresh project, following the instructions of the tutorial in original post, but instead of installing the 2.2.1 unitypackage, I went directly to the 2.7.0 package manager version, described here (package manager tab): https://docs.microsoft.com/azure/spatial-anchors/how-tos/setup-unity-project
And then I did the steps Bathur mentioned (https://github.com/microsoft/MixedRealityToolkit-Unity/issues/8839#issuecomment-732730691) to get it working. Thanks for the effort people!
I'm leaving this still open, as the steps in the tutorial won't be enough to reach a working solution.
Hi @mr0ng , yes here it's:
https://github.com/Pandalex1/MRTK-Azure
Many thanks in advance.
Hi, the link is no longer working. :(
I encountered same error on Unity2019.4.19f and ASA2.71 and MRTK2.5. #8839 didn't solve. Additionally, I changed ScriptingBackend to IL2Cpp. I'm not sure why but this solved problem.
@mr0ng were there changes to the tutorial assets that would prevent this from working on older versions of MRTK?
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!
Describe the bug
I followed this tutorial very carefully step-by-step: https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-asa-01
When I got this part https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-asa-02#trying-the-basic-behaviors-of-azure-spatial-anchors And tried to build it in unity I was able to get it built, but with a bunch of errors:
In the hololens 2 application, on step 3 (Create Azure Anchor) there's an error message displayed. I'm having hard time getting the error message out completely from the app, if required I can dig deeper.
To reproduce
Steps to reproduce the behavior: Follow the tutorial linked in description and build in Unity, Try out the application and try to create an azure spatial anchor.
Expected behavior
A working unity build without error messages, a working sample hololens 2 application which doesn't give errors when trying to create an azure spatial anchor.
Setup
Target platform