microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6.02k stars 2.12k forks source link

Scene understanding crashes Unity 2020.3.2f1 #10099

Closed sBailey5449 closed 3 years ago

sBailey5449 commented 3 years ago

Describe the bug

Unity immediately crashes when trying to open the Scene Understanding example scene in Unity 2020.3.2f1. Produces the error message shown in screenshots. This also happens if you try to add the WindowsSceneUnderstandingObserver in the MixedRealityToolkit object where all various MRTK settings reside.

To reproduce

Create a new project in Unity 2020.3.2f1 and import essential MRTK components. Import the Scene Understanding sample scene via package manager. Navigate to the example scene and try to open it. Application immediately crashes.

Or

Have an existing MRTK project and try to add the WindowsSceneUnderstandingObserver in the MixedRealityToolkit object under Spatial Awareness/

Expected behavior

Expect there to be no errors

Screenshots

If applicable, add screenshots to help explain your problem.

Your setup (please complete the following information)

Target platform (please complete the following information)

error
MaxWang-MS commented 3 years ago

Thanks for reporting the issue. I was not able to reproduce with Unity 2020.3.2, MRTK 2.7.2, Mixed Reality OpenXR plugin 1.0.1 and Scene Understanding 0.6.0 (I was able to open the sample scene and run it successfully). Could you share with us which XR pipeline you used (Windows XR Plugin or OpenXR) and maybe attach the Unity editor log located at %LOCALAPPDATA%\Unity\Editor\Editor.log if you feel comfortable? Otherwise please reply with the lines in the editor log that seems relevant so that we can better troubleshoot the issue.

sBailey5449 commented 3 years ago

I have tried both the Windows XR Plugin and OpenXR with the exact same result. Just tried this again with a totally new project and used the mixed reality feature tool to add MRTK, examples, extensions, foundation, and standard assets. Also adding platform support for Mixed Reality OpenXR plugin and Mixed Reality Scene Understanding. Latest versions selected for all items. After opening the project I import the scene understanding example via package manager and try to open the example scene that results in the error above.

There is nothing in the Editor Log to indicate the error even happened. The last lines in the file are attached.

noerror
MaxWang-MS commented 3 years ago

Now that seems very weird now... So the runtime library popped up, you clicked OK, Unity crashed and there is nothing in their log? Could you send us a copy of the fresh project that on your side exhibited the behavior? We'll try to do a repro with it. At this point I am almost wondering if it's a runtime library not properly installed issue.

sBailey5449 commented 3 years ago

Turns out this problem was resolved once I upgraded to a more recent version of windows