an unhandled win32 exception occurred in unity.exe [26640]

When trying to press play within my unity application the error occurs. I’m not sure what this is from. I just upgraded to the latest version of unity and the newest holotoolkit. I was running 5.5 before this. It is a brand new project build with the format for the mixed reality program and some game objects.

Unhandled exception at 0x00000001418ABCD4 in Unity.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

If there is a handler for this exception, the program may be safely continued.

This appears in visual studio when opened

I’m getting the same issue. I’m also developing for hololens but I’m not using the holotoolkit.

The issue appears to be raycasting and then moving the camera. Although sometimes it just crashes instantly when I play the scene.

I also noticed that the direction argument of the Raycast seemed to make a difference.
When I used


it crashed less…
When I used

(world.transform.position - Camera.main.transform.position).normalized;

It crashed every time I moved the camera in the scene.

Running Hololens or Mixed Reality Hardware, you should definetly use Unity 2017.2 MRTP5. It’s a microsoft branch where they fix MR issues within Unity on a different schedule than the usual Unity versions