Forum Discussion
shinymark
12 years agoHonored Guest
Unity editor crash with 0.4.3
I'm getting a crash in the Unity editor when entering play mode. It's 100% reproducible in my project. It appears to originate in OculusPlugin.dll. As you can imagine, this makes testing pretty frustrating.
Steps:
1. Open project
2. Enter play mode in the editor, the game runs successfully with typical Oculus distorted 2 camera setup in game view
3. Exit play mode
4. Enter play mode again
5. 100% crash, nothing displayed in game view before the crash
OS: Windows 8.1
Unity: 4.5.5 Pro
GPU: GeForce GTX 980
GPU driver version: 344.48
Render mode: DX11, Deferred
Here's the call stack reported in Visual Studio when hitting the "debug" option in the crash dialog.
I can't post the project publicly. I'm happy to send it to someone at Oculus privately if it would be helpful.
Is there anything I can try on my side to debug this further?
Steps:
1. Open project
2. Enter play mode in the editor, the game runs successfully with typical Oculus distorted 2 camera setup in game view
3. Exit play mode
4. Enter play mode again
5. 100% crash, nothing displayed in game view before the crash
OS: Windows 8.1
Unity: 4.5.5 Pro
GPU: GeForce GTX 980
GPU driver version: 344.48
Render mode: DX11, Deferred
Here's the call stack reported in Visual Studio when hitting the "debug" option in the crash dialog.
> ntdll.dll!7767d062() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
mono.dll!mono_jit_info_table_find(_MonoDomain * domain, char * addr) Line 392 C
mono.dll!get_method_from_ip(void * ip) Line 187 C
Unity.exe!StackWalker::ShowCallstackSimple(void * hThread, const _CONTEXT * context) Line 1511 C++
Unity.exe!winutils::ProcessInternalCrash(_EXCEPTION_POINTERS * pExInfo, bool passToDefaultCrashHandler) Line 514 C++
Unity.exe!_ProcessInternalCrash(_EXCEPTION_POINTERS * pExInfo) Line 524 C++
[External Code]
nvwgf2um.dll!58c0c80f() Unknown
[External Code]
nvwgf2um.dll!587c7b92() Unknown
[External Code]
OculusPlugin.dll!55665df0() Unknown
OculusPlugin.dll!55644b35() Unknown
OculusPlugin.dll!5564194d() Unknown
OculusPlugin.dll!5564303a() Unknown
Unity.exe!PluginsRenderMarker(int marker) Line 154 C++
Unity.exe!GfxDevice::InsertCustomMarker(int marker) Line 957 C++
Unity.exe!GfxDeviceWorker::RunCommand(ThreadedStreamBuffer & stream) Line 1277 C++
Unity.exe!GfxDeviceWorker::RunGfxDeviceWorker(void * data) Line 215 C++
Unity.exe!Thread::RunThreadWrapper(void * ptr) Line 40 C++
[External Code]
I can't post the project publicly. I'm happy to send it to someone at Oculus privately if it would be helpful.
Is there anything I can try on my side to debug this further?
12 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionI haven't heard of this before, and clearly that should not be happening.
If you want to send me a private message with a minimal example project, I can see if someone can take a look. - kalisclarkHonored GuestI am having a similar issue, with mine it is whenever I instantiate the OVRCameraRig and the scripts attached. It completely crashes unity and gives me the same unknown dll issue above. I hope someone can replicate this and we can get a fix.
- shinymarkHonored GuestI am also dynamically instantiating the OVRCameraRig prefab. I'll try making a dummy test project that does that only and see if it is reproducible.
- shinymarkHonored GuestOk, I've managed to isolate the problem in our project and have created a nearly-empty test project that crashes in the same way. All this project contains is the 0.4.3 OVR Unity plugin, a single scene file, a single C# Monobehaviour.
Download is here:
https://dl.dropboxusercontent.com/u/2003612/ovr-unity-0.4.3-crash.zip
To reproduce:
1. Unzip the project
2. Open in Unity 4.5.5 Pro
3. Open test scene at root of Asset folder
4. Enter play mode
5. Exit play mode
6. Enter play mode again
This causes a 100% crash for me with the system specs previously mentioned.
It appears to have something to do with the coroutine behavior in the test code SpawnCamera.cs. Without the exact coroutine sequence exhibited it does not crash for me.
The real project I'm working on has initialization code that has this basic structure, although of course it does something where the example project above calls DoNothing(). :) - productiveHonored GuestGave this a shot (ran your minimal project and followed repro steps) and I'm getting the same results. My callstack is slightly different but does contain more info. Whether that info can be trusted or not is beyond me.
ntdll.dll!77d722d2() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
mono.dll!mono_jit_info_table_find(_MonoDomain * domain, char * addr) Line 392 C
mono.dll!get_method_from_ip(void * ip) Line 187 C
Unity.exe!StackWalker::ShowCallstackSimple(void * hThread, const _CONTEXT * context) Line 1511 C++
> Unity.exe!winutils::ProcessInternalCrash(_EXCEPTION_POINTERS * pExInfo, bool passToDefaultCrashHandler) Line 514 C++
Unity.exe!_ProcessInternalCrash(_EXCEPTION_POINTERS * pExInfo) Line 524 C++
xinput1_3.dll!1b38c9d3() Unknown
kernel32.dll!775e0303() Unknown
ntdll.dll!77dc74ff() Unknown
ntdll.dll!77dc73dc() Unknown
ntdll.dll!77dc7281() Unknown
1458ec70() Unknown
ntdll.dll!77dab499() Unknown
ntdll.dll!77dab46b() Unknown
ntdll.dll!77dab40e() Unknown
ntdll.dll!77d60133() Unknown
KernelBase.dll!758b583b() Unknown
KernelBase.dll!758b59d3() Unknown
KernelBase.dll!758b0463() Unknown
d3d11.dll!6dc58a16() Unknown
OculusPlugin.dll!519df554() Unknown
OculusPlugin.dll!519df4bf() Unknown
OculusPlugin.dll!519d3bd4() Unknown
OculusPlugin.dll!519c4ac2() Unknown
OculusPlugin.dll!519c194d() Unknown
OculusPlugin.dll!519c303a() Unknown
Unity.exe!PluginsRenderMarker(int marker) Line 154 C++
Unity.exe!GfxDevice::InsertCustomMarker(int marker) Line 957 C++
Unity.exe!GfxDeviceWorker::RunCommand(ThreadedStreamBuffer & stream) Line 1277 C++
Unity.exe!GfxDeviceWorker::RunGfxDeviceWorker(void * data) Line 215 C++
Unity.exe!Thread::RunThreadWrapper(void * ptr) Line 40 C++
kernel32.dll!775a338a() Unknown
ntdll.dll!77d89f72() Unknown
ntdll.dll!77d89f45() Unknown
Could be something that xinput1_3.dll doesn't like? - kerskMeta EmployeeI was able to repro with your minimal project and got a useful stack trace.
I'll file a bug and we'll see if we can get this fixed for you.
A big thank you for this example project, it's a huge help! - shinymarkHonored GuestGreat, thanks!
- vrdavebOculus StaffWe've put in a fix for this. Not sure whether it will be available in 0.4.3.1 or later.
- ezRocketProtege
"vrdaveb" wrote:
We've put in a fix for this. Not sure whether it will be available in 0.4.3.1 or later.
Is 0.4.3.1 going to be a public patch or just for you guys? - kedoExplorerI'm getting a crash too. Whenever I instantiate the OVRCameraRig or OVRPlayerController.
SDK 0.4.3, Unity 4.5.5f1
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
- 2 years ago
- 10 months ago
- 3 years ago