Skip to main content
Up and Coming
August 23, 2014

Editor ok, Build crash

Hi,

I have a project setup with the following:

- DX9
- Forward rendering
- Linear colour space
- TImeWrap On
- Playing in extended mode

Playing in the editor is absolutely fine and the build was working with this setup previously but now I get a crash as soon as the game starts. I have tried numerous times.

The stack trace is as follows:

========== OUTPUTING STACK TRACE ==================

(0x687318A0) (OculusPlugin): (filename not available): (function-name not available) + 0x0
(0x687316AD) (OculusPlugin): (filename not available): (function-name not available) + 0x0
(0x68732A4D) (OculusPlugin): (filename not available): UnityRenderEvent + 0x4d
(0x00E4FDE7) (PE_Demo): (filename not available): Behaviour::Transfer<StreamedBinaryWrite<0> > + 0x93587
(0x00DCDEFC) (PE_Demo): (filename not available): Behaviour::Transfer<StreamedBinaryWrite<0> > + 0x1169c
(0x0110731B) (PE_Demo): (filename not available): AnimationEvent::Transfer<StreamedBinaryRead<1> > + 0xf10cb
(0x01109DD2) (PE_Demo): (filename not available): AnimationEvent::Transfer<StreamedBinaryRead<1> > + 0xf3b82
(0x00EBA04D) (PE_Demo): (filename not available): Behaviour::Transfer<StreamedBinaryWrite<0> > + 0xfd7ed
(0x75B1338A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
(0x771A9F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
(0x771A9F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36

Any ideas or has anyone seen similar?
    This topic has been closed for replies.

    37 replies

    Inspiring
    April 15, 2015
    @CBsGames: Can you provide a diagnostic log from the Oculus Config Util (Tools->Advanced)? Also, do you have multiple monitors or are they are strange (lower than 1080P) resolutions?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    May 30, 2015
    I haven't seen this again on my own system, but one of my fellow devs is getting it now.

    We're a little off the map, so there's a good chance no one can help us.

    We are stuck with Unity 4.3.3f1. Yep.

    I had been using Oculus Unity Integration 0.4.4 and everything had been going really well. I decided to upgrade to 0.6.0 for a couple of reasons- which did mean removing the UI code from the OVR package. It seems to be working fine, except for the following problems.

    It works just fine in editor on all systems.

    However in build it doesn't run on my buddy's 640 (win7x64) or my test pc's 740 (Win8x64). It runs just fine on my dev PC's AMD 7870, and my Laptop's intel gpu. Another fellow dev has a higher end nVidia 7XX (Win7x64) and it runs fine there.

    All have different monitors doing different resolutions, but we swapped out a 1080p monitor to the 640, and even ran the Rift as the only monitor. Always the same "couldn't switch to monitor resolution" error. Actually Win8 just crashes (no specific errors), but I suspect it's for the same reasons.

    Have tried V Synch both on and off.


    EDIT: Came down to Vsync. Our game sets it at launch, but apparently too late for OVRManager to care.

    I'm going to be doing some more testing with Unity 5 and the 0.6.0 SDK and the same machines, and a lot of combinations of things. But curious if anyone already solved this one.

    Thanks!
    Inspiring
    May 30, 2015
    It could just be that old version of Unity. It's recommended to be on the latest 4.6.x version. Unity 5 can work (with some small changes) but there are a couple of outstanding issues so it's not as solid as 4.6 right now.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    May 31, 2015
    I figured that would be the first answer. We don't have the option of moving forward to a later version of Unity. Either I'll figure out the issue with SDK 0.6.0, or I'll fall back to an earlier SDK.
    Up and Coming
    June 2, 2015
    I created a branch of our project on 4.6.5 to see if these errors would go away. They didn't. (I did remove my hacked SDK and replace it with a fresh copy of OVR Unity 0.6.0)

    In fact, I now get the resolution errors on my dev PC as well. So that didn't work. (Editor is still great everywhere, it's just builds that won't run)

    EDIT: Okay, I found my problem with Unity 4.3- In our settings, we allow users to choose between 4 Quality settings- and VSync was only defaulting to ON in the highest. Game defaults to second highest setting, and only Devs with nicer cards were setting it higher. Even so, users can override Vsync settings from our settings menu too, but apparently that setting was too late to prevent Rift from having resolution errors at startup. I can fix that.

    However- I have the problem where I don't get a DirectToRift exe from 4.6 (as documented here: viewtopic.php?f=37&t=23400) or I copy one from a previous build (exe names are still the same)

    How do I get it to appear on the Rift in Unity 4.6.5 and SDK 0.6.0?

    ---

    A little about how my project is set up:
    Game loads a scene called EntryPoint. This loads settings and sets up the top level stuff, before loading a new scene called MainMenu. If riftMode was true, it added the OVRCameraRig at that point (and all later scenes).

    MainMenu used to have a page with the option to turn VR mode on/off. This combined with DirectToRift worked 100% of the time (prior to 0.6.0). We thought it would be better if the game could detect Rift and auto-enable Rift mode, so I tried to use Ovr.Hmd.Detect during our EntryPoint scene, but had some issues with it. That was with SDK 0.4.4. I figured I wanted to move to 0.6.0 anyways, so I did that- still had Detect issues. Realized it was because I was calling OVRManager when no such thing existed yet (in EntryPoint). Added an empty game object and added OVRManager to it.

    Eureka! This makes my Detect code work! In the Editor and in the builds on my dev box. As described earlier, however, this made it not work on about half of the other PCs we tried. Turns out adding the OVRManager at this point was early enough that it was checking for VSync before our code was setting it to 1.
    Up and Coming
    June 3, 2015
    Okay, here's the gist of what we want to do:
    1· Force VSync on
    2· Wait for verification VSync is enabled (usually next frame)
    3· Create the OVRManager

    I can't find a way to verify #2. Checking the bool just tells me that I've set it- not that it's taken affect. Any ideas?

    I know I could just set VSync to on for all Qualities, but I'm being overridden. Lead Programmer thinks this way is better.
    Up and Coming
    June 18, 2015
    Hi There,

    I have a strange crash that appears sometimes, not always. I have a build of my game that runs fine, but sometimes it crashes when launching the game,it displays the following error( bottom page). It also happens that my computer simply not recognize the HMD, i have to reboot my system for that.

    I use the 0.4.4 SDK reason i'm not working with 0.6.0 is integration issues with some of my unity assets that not support 0.6.0. yet.

    I have seen the 'ovr_WaitTillTime' crash multiple times in this topic, so thats why i post this here.

      Initialize engine version: 4.6.4f1 (99f88340878d)
      GfxDevice: creating device client; threaded=1
      Crash!!!
      SymInit: Symbol-SearchPath: '.;C:\GVR\GVR_2.08;C:\GVR\GVR_2.08;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Oculus'
      OS-Version: 6.2.9200 () 0x100-0x1
      C:\GVR\GVR_2.08\GVR_2.08.exe:GVR_2.08.exe (00007FF726B70000), size: 15650816 (result: 0), SymType: '-exported-', PDB: 'C:\GVR\GVR_2.08\GVR_2.08.exe', fileVersion: 4.6.4.63619
      C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FF9B51C0000), size: 1728512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\ntdll.dll', fileVersion: 6.3.9600.17278
      C:\Windows\system32\KERNEL32.DLL:KERNEL32.DLL (00007FF9B4CF0000), size: 1286144 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\KERNEL32.DLL', fileVersion: 6.3.9600.17056
      C:\Windows\system32\KERNELBASE.dll:KERNELBASE.dll (00007FF9B2600000), size: 1110016 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\KERNELBASE.dll', fileVersion: 6.3.9600.17278
      C:\Windows\SYSTEM32\HID.DLL:HID.DLL (00007FF9B1750000), size: 53248 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\HID.DLL', fileVersion: 6.3.9600.16384
      C:\Windows\system32\WS2_32.dll:WS2_32.dll (00007FF9B43A0000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WS2_32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\USER32.dll:USER32.dll (00007FF9B4E90000), size: 1511424 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\USER32.dll', fileVersion: 6.3.9600.17344
      C:\Windows\SYSTEM32\VERSION.dll:VERSION.dll (00007FF9B0140000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\VERSION.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\ole32.dll:ole32.dll (00007FF9B4400000), size: 1540096 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\ole32.dll', fileVersion: 6.3.9600.17042
      C:\Windows\system32\SHLWAPI.dll:SHLWAPI.dll (00007FF9B4770000), size: 331776 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\SHLWAPI.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\ADVAPI32.dll:ADVAPI32.dll (00007FF9B4A10000), size: 675840 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\ADVAPI32.dll', fileVersion: 6.3.9600.17031
      C:\Windows\system32\GDI32.dll:GDI32.dll (00007FF9B5070000), size: 1327104 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\GDI32.dll', fileVersion: 6.3.9600.17246
      C:\Windows\system32\SHELL32.dll:SHELL32.dll (00007FF9B2E30000), size: 21032960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\SHELL32.dll', fileVersion: 6.3.9600.17331
      C:\Windows\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FF9A5D30000), size: 1183744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\OPENGL32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\WINMM.dll:WINMM.dll (00007FF9B0120000), size: 126976 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINMM.dll', fileVersion: 6.3.9600.17078
      C:\Windows\system32\OLEAUT32.dll:OLEAUT32.dll (00007FF9B2A40000), size: 790528 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\OLEAUT32.dll', fileVersion: 6.3.9600.17403
      C:\Windows\SYSTEM32\MSACM32.dll:MSACM32.dll (00007FF9A9BD0000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSACM32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\IMM32.dll:IMM32.dll (00007FF9B4830000), size: 212992 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\IMM32.dll', fileVersion: 6.3.9600.17031
      C:\Windows\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FF9B1C60000), size: 667648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DNSAPI.dll', fileVersion: 6.3.9600.17039
      C:\Windows\SYSTEM32\IPHLPAPI.DLL:IPHLPAPI.DLL (00007FF9AC620000), size: 167936 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\IPHLPAPI.DLL', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FF9AB430000), size: 806912 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINHTTP.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\msvcrt.dll:msvcrt.dll (00007FF9B4580000), size: 684032 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\msvcrt.dll', fileVersion: 7.0.9600.16384
      C:\Windows\system32\NSI.dll:NSI.dll (00007FF9B4390000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\NSI.dll', fileVersion: 6.3.9600.16384
      C:\Windows\system32\RPCRT4.dll:RPCRT4.dll (00007FF9B4630000), size: 1273856 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\RPCRT4.dll', fileVersion: 6.3.9600.17216
      C:\Windows\SYSTEM32\combase.dll:combase.dll (00007FF9B4AC0000), size: 1925120 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\combase.dll', fileVersion: 6.3.9600.17031
      C:\Windows\SYSTEM32\sechost.dll:sechost.dll (00007FF9B5010000), size: 356352 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\sechost.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\GLU32.dll:GLU32.dll (00007FF9B03C0000), size: 180224 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\GLU32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\DDRAW.dll:DDRAW.dll (00007FF9A5C30000), size: 999424 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DDRAW.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (00007FF9AFE50000), size: 172032 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINMMBASE.dll', fileVersion: 6.3.9600.17080
      C:\Windows\system32\MSCTF.dll:MSCTF.dll (00007FF9B2B10000), size: 1282048 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSCTF.dll', fileVersion: 6.3.9600.17031
      C:\Windows\SYSTEM32\WINNSI.DLL:WINNSI.DLL (00007FF9AC5C0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINNSI.DLL', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\DCIMAN32.dll:DCIMAN32.dll (00007FF9AFF00000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DCIMAN32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\cfgmgr32.dll:cfgmgr32.dll (00007FF9B2760000), size: 303104 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\cfgmgr32.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\DEVOBJ.dll:DEVOBJ.dll (00007FF9B13A0000), size: 155648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DEVOBJ.dll', fileVersion: 6.3.9600.16384
      C:\GVR\GVR_2.08\GVR_2.08_Data\Plugins\OculusPlugin.DLL:OculusPlugin.DLL (00007FF99BB60000), size: 761856 (result: 0), SymType: '-exported-', PDB: 'C:\GVR\GVR_2.08\GVR_2.08_Data\Plugins\OculusPlugin.DLL'
      C:\Windows\SYSTEM32\dxgi.dll:dxgi.dll (00007FF9AFE80000), size: 520192 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dxgi.dll', fileVersion: 6.3.9600.17201
      C:\Windows\system32\SETUPAPI.dll:SETUPAPI.dll (00007FF9B2C50000), size: 1916928 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\SETUPAPI.dll', fileVersion: 6.3.9600.17031
      C:\Windows\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FF9A6A60000), size: 1605632 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dbghelp.dll', fileVersion: 6.3.9600.16520
      C:\Windows\SYSTEM32\d3d9.dll:d3d9.dll (00007FF9AA920000), size: 2129920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\d3d9.dll', fileVersion: 6.3.9600.17095
      C:\Windows\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FF9B0970000), size: 131072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dwmapi.dll', fileVersion: 6.3.9600.17238
      C:\Windows\SYSTEM32\d3d11.dll:d3d11.dll (00007FF9AFF10000), size: 2129920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\d3d11.dll', fileVersion: 6.3.9600.17041
      C:\Windows\SYSTEM32\d3d10core.dll:d3d10core.dll (00007FF99BB00000), size: 348160 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\d3d10core.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\d3d10.dll:d3d10.dll (00007FF99B9C0000), size: 1269760 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\d3d10.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\OVRDisplayRT64.dll:OVRDisplayRT64.dll (00007FF9A6BF0000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\OVRDisplayRT64.dll', fileVersion: 1.2.2.0
      C:\Windows\SYSTEM32\MSVCP120.dll:MSVCP120.dll (00007FF99B910000), size: 679936 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSVCP120.dll', fileVersion: 12.0.21005.1
      C:\Windows\SYSTEM32\MSVCR120.dll:MSVCR120.dll (00007FF99B820000), size: 978944 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSVCR120.dll', fileVersion: 12.0.21005.1
      C:\Windows\SYSTEM32\shcore.dll:shcore.dll (00007FF9B1090000), size: 651264 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\shcore.dll', fileVersion: 6.3.9600.17238
      C:\GVR\GVR_2.08\GVR_2.08_Data\Mono\mono.dll:mono.dll (00007FF99CC40000), size: 2990080 (result: 0), SymType: '-exported-', PDB: 'C:\GVR\GVR_2.08\GVR_2.08_Data\Mono\mono.dll'
      C:\Windows\system32\PSAPI.DLL:PSAPI.DLL (00007FF9B4CD0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\PSAPI.DLL', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\MSWSOCK.dll:MSWSOCK.dll (00007FF9B1E50000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSWSOCK.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (00007FF9B13D0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\kernel.appcore.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (00007FF9B2470000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\CRYPTBASE.dll', fileVersion: 6.3.9600.16384
      C:\Windows\SYSTEM32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FF9B2410000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\bcryptPrimitives.dll', fileVersion: 6.3.9600.17120
      C:\Windows\system32\uxtheme.dll:uxtheme.dll (00007FF9B1270000), size: 1183744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\uxtheme.dll', fileVersion: 6.3.9600.17031
      C:\Windows\SYSTEM32\SspiCli.dll:SspiCli.dll (00007FF9B23E0000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\SspiCli.dll', fileVersion: 6.3.9600.16408

      ========== OUTPUTING STACK TRACE ==================

      (0x00007FF99BB67CA8) (OculusPlugin): (filename not available): ovr_WaitTillTime + 0x1548

      ========== END OF STACKTRACE ===========

      **** Crash! ****



    and also:

    Unity Player [version: Unity 4.6.4f1_99f88340878d]

    OculusPlugin.DLL caused an Access Violation (0xc0000005)
    in module OculusPlugin.DLL at 0033:9bb67ca8.

    Error occurred at 2015-06-18_100536.
    C:\GVR\GVR_2.08\GVR_2.08.exe, run by Oculus.
    12% memory in use.
    8121 MB physical memory [7139 MB free].
    9401 MB paging file [8295 MB free].
    134217728 MB user address space [134217551 MB free].
    Read from location 00000000 caused an access violation.

    Context:
      RDI: 0x9bc08008 RSI: 0x0000003b RAX: 0x0000003b
      RBX: 0x00dcf018 RCX: 0x00000000 RDX: 0x0000004b
      RIP: 0x9bb67ca8 RBP: 0xffffffff SegCs: 0x00000033
      EFlags: 0x00010202 RSP: 0x00dcef40 SegSs: 0x0000002b
      R8: 0x00dcf238 R9: 0x0000003b R10: 0x00dcf228
      R11: 0x00000006 R12: 0x00000008 R13: 0x00000000
      R14: 0x00dcf228 R15: 0x00dcf018

      Bytes at CS:EIP:
      48 8b 01 ff 50 08 48 8b d8 c6 44 30 0c 00 b8 01
      == [end of error.log] ==