Build Crashes Immediately, OVR.

,

Hi,

I’ve recently started toying around with the Oculus VR SDK package for unity and everything is working well in editor. Of course, the build I finally make fatally and immediately crashes. It seems to be only OVR—as recent builds from other projects don’t fail. It also doesn’t appear to matter what’s in the scene—building just a blank scene in the VR project also crashes. x86 and x64 architectures and debug builds fail.

Win 10 64 bit
Radeon R9 390 Driver: 17.1.1

Unity 2017.1.0b2 Personal Edition
OVR Sample Framework 1.14.0
OVR Utilities for Unity 5 1.15.0

My error.log:
"
Unity Player [version: Unity 2017.1.0b2 (5e138e18bf82)]

vr_build01.exe caused an Access Violation (0xc0000005)
in module vr_build01.exe at 0033:beb5fa3d.

Error occurred at 2017-06-02_212942.
C:\folder\folder\folder\Builds\vr_build01.exe, run by yaboi.
33% memory in use.
16352 MB physical memory [10924 MB free].
18784 MB paging file [9450 MB free].
134217728 MB user address space [134216710 MB free].
Read from location 09974360 caused an access violation.

Context:
RDI: 0x0d9743fc RSI: 0x048cf960 RAX: 0x3f800000
RBX: 0x00000009 RCX: 0x048cf960 RDX: 0x0004e7ec
RIP: 0xbeb5fa3d RBP: 0x0d974360 SegCs: 0x00000033
EFlags: 0x00010206 RSP: 0x012ee2b0 SegSs: 0x0000002b
R8: 0x00000000 R9: 0x0004e7a0 R10: 0x00000000
R11: 0x012ee2a8 R12: 0x0000000c R13: 0x00000000
R14: 0x012ee670 R15: 0x00000000

Bytes at CS:EIP:
f3 0f 59 44 c5 00 0f 14 c0 0f 5a c8 0f 28 c7 f2

Stack: …
[Removed here for brevity].
0x012f02a0: 00000000 00000000 00000000 00000000 …

Module 1
C:\WINDOWS\SYSTEM32\xinput1_3.dll
Image Base: 0x00400000 Image Size: 0x0001e000
File Size: 107368 File Time: 2007-04-04_195422
Version:
Company: Microsoft Corporation
Product: Microsoft® DirectX for Windows®
FileDesc: Microsoft Common Controller API
FileVer: 9.18.944.0
ProdVer: 9.18.944.0

== [end of error.log] ==
"

output_log.txt :
"
Initialize engine version: 2017.1.0b2 (5e138e18bf82)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: AMD Radeon ™ R9 390 Series (ID=0x67b1)
Vendor: ATI
VRAM: 8169 MB
Driver: 22.19.162.4
Begin MonoManager ReloadAssembly
Platform assembly: …

  • Completed reload, in 0.024 seconds
    OnLevelWasLoaded was found on OVRHarness
    This message has been deprecated and will be removed in a later version of Unity.
    Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed

(Filename: Line: 376)

OnLevelWasLoaded was found on OVRScreenFade2
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed

(Filename: Line: 376)

OnLevelWasLoaded was found on OVRInspector
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed

(Filename: Line: 376)

Initializing input.

Input initialized.

Initialized touch support.

Crash!!!
SymInit: Symbol-SearchPath: ‘.’, symOptions: 534, UserName: ‘yaboi’
OS-Version: 10.0.15063 () 0x100-0x1
C:\folder\folder\folder\Builds\vr_build01.exe:vr_build01.exe (00007FF7BE390000), size: 24031232 (result: 0), SymType: ‘-deferred-’, PDB: ‘’, fileVersion: 2017.1.0.5006

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

ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BEB5FA3D)
0x00007FF7BEB5FA3D (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BEB60513)
0x00007FF7BEB60513 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE5FE44E)
0x00007FF7BE5FE44E (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE603646)
0x00007FF7BE603646 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE6086B4)
0x00007FF7BE6086B4 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE57D235)
0x00007FF7BE57D235 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE597B53)
0x00007FF7BE597B53 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE59FF27)
0x00007FF7BE59FF27 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE5A04C2)
0x00007FF7BE5A04C2 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE5A0571)
0x00007FF7BE5A0571 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE5C14B1)
0x00007FF7BE5C14B1 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE5D2805)
0x00007FF7BE5D2805 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE8ADAE2)
0x00007FF7BE8ADAE2 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE8ADD6D)
0x00007FF7BE8ADD6D (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE8ACC9D)
0x00007FF7BE8ACC9D (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE42F27B)
0x00007FF7BE42F27B (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE42F41A)
0x00007FF7BE42F41A (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BE4407A0)
0x00007FF7BE4407A0 (vr_build01)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00007FF7BF422070)
0x00007FF7BF422070 (vr_build01)
0x00007FFC3A132774 (KERNEL32) BaseThreadInitThunk
0x00007FFC3C7E0D61 (ntdll) RtlUserThreadStart

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

**** Crash! ****
"

Please let me know what other information is needed.

Thanks

This error is more prevalent in AMD systems. There was awhile ago another thread on it, but it was eventually fixed. I assume this fix since it was so long ago that it is present in the 2017 betas but doesn’t hurt to ask someone at Unity.

https://forum.unity3d.com/threads/game-stops-responding-attempt-to-access-invalid-address-error.402857/

I’d submit a bug report and tag @gintautass to verify that this previous fix is present in the betas.

Thanks, greg. I’ll submit a bug report.