MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
412 stars 111 forks source link

[BUG] MRTK Example Project Aquarium crashes to Shell Environment on Launch #513

Closed ARGs-code closed 1 year ago

ARGs-code commented 1 year ago

Describe the bug

Entire project doesn't seem to be functional on Hololens 2. There is not much useful information in the Unity Log before it abruptly ends.

To reproduce

Steps to reproduce the behavior: Follow the documentation here: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/mrtk3-aquarium Clone the repo listed in the documentation: https://github.com/microsoft/MRTK3-iet-tutorials Open in Unity 2021.3.28f1 Target UWP, ARM64 Architecture. Change player settings so platform target Holographic is checked. Open and Run Aquarium scene in the Editor. Everything appears to work as intended. Add Aquarium scene to build (it's the only scene in the build). Build project. Open Visual Studio SLN from Unity build. Target ARM64, Release. Build and deploy. Open App on Hololens 2. App Crashes to Shell Environment before anything else happens.

Expected behavior

Project functions in Hololens 2 like it functions in the Unity Editor.

Your setup (please complete the following information)

Target platform (please complete the following information)

Additional context

Included the Unity Log that results, though there isn't a lot of helpful info there. ExampleMRTK3Issue.log

AMollis commented 1 year ago

Hi @ARGs-code what version of "com.unity.inputsystem" are you using? An older version of "com.unity.inputsystem" will crash on launch. Please update "com.unity.inputsystem" to 1.6.1 and try again.

We should also update this sample to latest MRTK3

ARGs-code commented 1 year ago

Thanks for the quick response @AMollis .

I'm not sure if it was the 1.6.1 or changing the .net to .net framework from .net 2.1 but things are working now as expected.

The project by default was on the .net 2.1 framework.