Unity 5.3 - VR application crashes

Hello,

I made an Oculus Rift application with Unity 5.3.

In the editor everything works fine, also building the game works, but when I try to execute it, the game gets stuck in the splash screen or crashes right after the splash screen.

Error log says: “…Access Violation (0xc0000005)…”

Mine did this for a while and restarting my computer fixed it. In my case I suspect that it was my Antivurus (avast) blocking necessary files.

Quick question: are you using Unity 5.3?

And do you have Virtual Reality Supported checked, or are you using the Oculus Utilities package instead? (I ask because the old Oculus Utilities pack was designed for Unity 4 not 5 and causes this error for some people)

I am using Unity 5.3 and yes, the VR supported checkbox is checked and I don’t use the Oculus Utilities package.

I also restarted my computer several times, never had this problem before.

If you’re comfortable uploading the exe online I can try to run it on my machine.

Also, maybe try the command-line arguments -force-d3d9 and -force-d3d11 (not both at the same time of course). Or try reinstalling DirectX?

Also make sure dx11 is enabled in the player settings.

Thanks for your help.

But Unity 5.3.1 already solved the problem for me. Don’t know the reason why it didn’t work though.

Anyway, thanks for your help!

Awesome, no problem.