Happens only with version 5.6.0r3 and only when Oculus Rift is plugged in.
Nothing really useful in the crash logs.
“Unhandled exception at 0x00007FF6EC930B64 (app.exe) in crash.dmp: 0xC0000005: Access violation reading location 0x0000000000000000. occurred”
The app runs fine from editor, no errors in the console, it’s just the build. Tried 32-bit, 64-bit, developer mode, non-developer mode… everything crashes shortly after launch.
All good after unplugging Rift.
Thank you, guys!
I’ll mess around with this and will let you know about the results.
The thing is, we already have two cameras in the scene (2D and VR), so I’m not sure that solution will work, but I’ll try experimenting with camera depths because I can’t remember the values we’re using from the top of my head.
Changing the camera depths did prevent the crash, but unfortunately didn’t work for us because we needed a 2D camera to have the lower depth than the Rift camera.
However, I was managed to pinpoint the problem to anti-aliasing (in quality settings) - as soon as I turned it off, the crashing stopped.
Funny how the Unity team didn’t respond to this bug.