Mixedrealitytoolkit-unity: GesturesInput freezes Unity Editor

Created on 5 Jun 2017  路  17Comments  路  Source: microsoft/MixedRealityToolkit-Unity

Hi all!

I've experiencing some issues with the GesturesInput script attached to the InputManger prefab:

On my Surface Pro 3, Windows 10 Pro (15063.296), Visual Studio 2017, Unity 5.6.1f1 setup, the Editor freezes immediately after pressing play. The "play" button doesn't event turn blue, there are no console messages and Unity doesn't have any CPU activity (0,0 %). I could isolate the GesturesInput script as the troublemaker by disabling all GameObjects in the hierarchy and enabling them one by one again. One can also notice that a running application freezes as soon as the checkbox for the GesturesInput component is enabled again in an already running scene (started with disabled GesturesInput).

I couldn't fix the issue by neither reinstalling Unity nor re-downloading my repo or deleting all created files by the build process.

Strange thing is, that this issue doesn't appear on my desktop computer (same software) or my work laptop (also the same, but VS 2015).

Question

Most helpful comment

I am experiencing the same freeze using GesturesInput on a project. My colleague, however, is running the exact same project without any issues. We have compared our setups but we can't find any differences we can target as culprit.

I am sitting on a Macbook Pro with a Windows 10 1703 partition using Bootcamp. I am running Unity 5.6.0f3 and have both installed Visual Studio Community 2017 and 2015. I have updated my windows to the latest version.

I have found some more instances of this bug, some which states they have found a solution:

Clean Windows Install - https://github.com/Microsoft/HoloToolkit-Unity/issues/464

Installed Windows 10 SDK - https://forum.unity3d.com/threads/unity-freezes-when-creating-a-new-gesturerecognizer-5-5-and-up.468514/

Enabled Windows developer mode - https://server2.kproxy.com/servlet/redirect.srv/sruj/sbxpxbzdx/skfomkc/p2/discussion/7595/holotoolkit-problem-with-play-mode-in-unity

--- Succese ---
After struggling with this in two days, I finally got it working. I am not exactly certain which of my last steps did the trick, so I'll just note them down for someone else who stumbles upon it.
The last step I did to get it work was to:

1: Install All versions of Windows 10 SDK. I did that through Visual Studio:
http://i.imgur.com/8sZ9EmM.png

2: Enable Windows Developer Mode
http://i.imgur.com/HmOU9oE.png

3: Restart your computer!
At first step 1. and 2. did not appear to work and the editor still froze. But after restarting my computer, it all worked.

All 17 comments

Is a Surface Pro 3 up to spec to run Unity Editor?

I would have guessed that the SP3 outperforms the hardware of the HoloLens by far, so it is suitable as development device.

I can understand the device running the application under development, but the unity editor can be quite a resource hog by itself, depending on the size of your project.

The whole rest works quite performant and even the GesturesInput didn't make any troubles for a long while, so I can only assume its some kind of bug. But I understand that its difficult to track because it seems I'm the only one with this bug (and just on one device) and it occurs so early after starting that I don't have any console output.

No worries, yeah if you can get a solid reproduction process down, please add it here so we can try to fix the issue.

I am experiencing the same freeze using GesturesInput on a project. My colleague, however, is running the exact same project without any issues. We have compared our setups but we can't find any differences we can target as culprit.

I am sitting on a Macbook Pro with a Windows 10 1703 partition using Bootcamp. I am running Unity 5.6.0f3 and have both installed Visual Studio Community 2017 and 2015. I have updated my windows to the latest version.

I have found some more instances of this bug, some which states they have found a solution:

Clean Windows Install - https://github.com/Microsoft/HoloToolkit-Unity/issues/464

Installed Windows 10 SDK - https://forum.unity3d.com/threads/unity-freezes-when-creating-a-new-gesturerecognizer-5-5-and-up.468514/

Enabled Windows developer mode - https://server2.kproxy.com/servlet/redirect.srv/sruj/sbxpxbzdx/skfomkc/p2/discussion/7595/holotoolkit-problem-with-play-mode-in-unity

--- Succese ---
After struggling with this in two days, I finally got it working. I am not exactly certain which of my last steps did the trick, so I'll just note them down for someone else who stumbles upon it.
The last step I did to get it work was to:

1: Install All versions of Windows 10 SDK. I did that through Visual Studio:
http://i.imgur.com/8sZ9EmM.png

2: Enable Windows Developer Mode
http://i.imgur.com/HmOU9oE.png

3: Restart your computer!
At first step 1. and 2. did not appear to work and the editor still froze. But after restarting my computer, it all worked.

Hello,
I have the same problem.
I installed:
-a fresh image of windows 10 pro with all the updates.
-unity 5.6.1f1 with all the needed extensions.
-visual studio 2017 with win10 sdk.
I tried to play the scenes from the HoloLens toolkit and for all of them unity freezes.
I deployed scenes to the HoloLens and I get this error:
20170616_080309_hololens

Can't read the error well. Any change you can run for VS and paste the output? Thanks.

I was in the same boat.

I have a new alienware laptop and it was freezing on play when there was a GesturesInput in the scene but otherwise it worked fine. More specifically, if I commented out creating a new GestureRecognizer it worked.

I had windows 10 SDK installed.

I just turned on Developer Mode and restarted the computer and that fixed it.

Thanks for the tip.

I think we should add a section to the getting started doc that describes the environment setup and required software as well.

I had exactly the same issue on my new laptop running windows 10.
Turned on developer mode and restarted my computer -> it solved the problem.

Does anyone know if this has been reported to Unity as a bug? Enabling developer mode fixed this for me, but it would be nice for Unity to present instructions to the user instead of hanging.

I created a minimum repro case and reported this via the Unity Bug Reporter.

@ForrestTrepte, can we get the case number to track?

My case number with Unity is 933776, but is that publicly visible or is that just a number in their internal database.

Going to close this. It's probably been archived by google by now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matatabi-ux picture matatabi-ux  路  3Comments

brean picture brean  路  3Comments

amfdeluca picture amfdeluca  路  3Comments

chrisfromwork picture chrisfromwork  路  3Comments

dustin2711 picture dustin2711  路  3Comments