Forum Discussion
srowlands
9 years agoExplorer
Application crashes on start with Unity 5.3.5p2 - 5.3.5p6
We recently upgraded to Unity 5.3.5p2 & updated the Oculus platform settings & utilities.
Our application now crashes on startup when running from a build. it runs fine in the Unity editor, I've tried newer Unity versions up to and including 5p6 but the crashing continues.
The error log reports "nvwgf2umx.dll caused an Access Violation" or "OVRPlugin.dll caused an Access Violation"
We are using Oculus runtime v1.5 and our graphics drivers are up to date.
Could you offer any advice on this matter?
Thanks!
Our application now crashes on startup when running from a build. it runs fine in the Unity editor, I've tried newer Unity versions up to and including 5p6 but the crashing continues.
The error log reports "nvwgf2umx.dll caused an Access Violation" or "OVRPlugin.dll caused an Access Violation"
We are using Oculus runtime v1.5 and our graphics drivers are up to date.
Could you offer any advice on this matter?
Thanks!
22 Replies
Replies have been turned off for this discussion
- jtw62074ProtegeNevermind, I see what you meant. My mind is half stuck in pre Oculus Home 1.3 mode still.
Just tested in Unity and I think everything is probably ok now. Without either of the dll's in there I imagine the problem will go away on the offending user machines. Thanks so very much for your help. :) - jtw62074ProtegeHmm... On second thought: Call me crazy but it looks like Unity is creating that OVRPlugin.dll out of thin air. I don't see it anywhere in my project until I build, then presto, there it is. So I'm not so sure this is really going to fix the problem. I thought this would eliminate the need for OVRPlugin.dll entirely and therefore the "can't find OVRPlugin.dll" problem would go away with it, but that doesn't appear to be the case.
I'll post a version for the guys to test but don't think this is probably going to do the trick. - vrdavebOculus Staff> I'm not using the Oculus Utilities, just the native Unity integration.
It sounds like you are using the Unity 4 integration and not the new Unity 5 VR system or Utilities. I would recommend upgrading as described above.
> it looks like Unity is creating that OVRPlugin.dll
Please restart Unity before trying to delete the Oculus plugins from your project. Unity often holds onto a handle to the DLL that it opened when you hit play. When you are done, there should be no OculusPlugin.dll OR OVRPlugin.dll in your Assets/Plugins folder. - jtw62074ProtegeAs far as I know I haven't used the Unity 4 integration in upwards of two years. I was working on my VR project at that time and went through the transition into Unity 5.
I have no OculusPlugin.dll or OVRPlugin.dll anywhere in my project. For some strange reason Unity appears to be creating OVRPlugin.dll and inserting it into my build (but not the project) when I build it. It'll then show up in the project in a staging area, but it does this even if OVRPlugin.dll is not in the project.
More on that here:
https://forum.unity3d.com/threads/serious-issue-with-released-build-crashes-with-win-10-64-bit-while-searching-for-oculus-plugin.441802/#post-2862001 - jtw62074ProtegeMaybe you could provide a direct link to the exact version of the Oculus utilities I'm supposed to be using? I don't think the one I found was right, the zip file was OculusUtilities_0_1_0_beta and the OculusUtilities Unity package file is dated 7/6/2015. Am I blind?
Now that I look again I don't see it. I must have been somewhere else on your site:
https://developer3.oculus.com/downloads/
All I see there is Unity 4.x legacy integration which I know better than to use with Unity 5. I don't see any other "utilities" having anything to do with Unity on that page. What Oculus utilities package am I supposed to have, exactly? - jtw62074ProtegeThe one I'm using now does not have OVRPlugin.dll or the other one in it. Yet Unity is still somehow managing to insert one into my project, and without it there my build won't run.
- jtw62074ProtegeOk, think I found what I need.
https://developer3.oculus.com/downloads/game-engines/1.9.0/Oculus_Utilities_for_Unity_5/
Please ask someone to update this page:
https://developer3.oculus.com/downloads/
The Oculus Utilties for Unity 5 do not show up when it's filtered for "all categories" which is the default. You have to hit "game engines" to even see the utilities.
I am running the wrong version so will try the new one. Somehow I think Unity is still going to create that OVRPlugin.dll anyway and this problem won't be solved, but I'll give it a shot. - jtw62074ProtegeYeah, same result as before. Even when deleting the OVR folder again and running this package:
https://developer3.oculus.com/downloads/game-engines/1.9.0/Oculus_Utilities_for_Unity_5/
..then verifying that there is no OVRPlugin.dll, metas, or signature files anywhere in my project before and after starting and then restarting Unity, Unity still creates the OVRPlugin.dll file when I build it and inserts it into my build. At that point it also appears here:
H:\Unity Projects\Water1\Temp\StagingArea\DIDIBoats_Data\Plugins
In the staging area. Doesn't matter which version of the Oculus Utilties I'm using, the result on this end is the same. Again, there is no OVRPlugin.dll anywhere in my project until after I build it, at which point it appears out of thin air in the staging area. - vrdavebOculus StaffOVRPlugin is distributed inside Unity 5. it is expected to be in builds, but not in your project's Assets folder. sounds like that is already the case. 1.9.0 is the right copy of the Utilities. It sounds like you might be missing the MSVC 2015 redistributable. we have removed that dependency from an upcoming release, but you will need it for 1.9.
- jtw62074ProtegeYes, I'm doing this through Steam and the only redist I'm using is 2012. I'll add 2015 to it and see if that fixes the problem. Thanks
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 7 months ago
- 2 years agoAnonymous