Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Unity 5.2.1f1 and Oculus 0.8.0 - Crash with blank project

Discussion in 'AR/VR (XR) Discussion' started by mxweas, Nov 4, 2015.

  1. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    I have Unity 5.2.1f1 and Oculus runtime 0.8.0. If I make a brand new project and enable "Virtual Reality Supported" in Player Settings, Unity crashes when I hit play. If I export a build and run, it also crashes as soon as the scene starts...

    Any Ideas?

    Max

    Code (csharp):
    1.  
    2. Unity Editor [version: Unity 5.2.1f1_44735ea161b3]
    3.  
    4.  OVRPlugin.dll caused an Access Violation (0xc0000005)
    5.    in module OVRPlugin.dll at 0033:c6b84f4d.
    6.  
    7.  Error occurred at 2015-11-04_083514.
    8.  C:\Program Files\Unity\Editor\Unity.exe, run by Max.
    9.  10% memory in use.
    10.  32709 MB physical memory [29309 MB free].
    11.  33822 MB paging file [29453 MB free].
    12.  134217728 MB user address space [134215980 MB free].
    13.  Read from location 00000008 caused an access violation.
    14.  
    15.  Context:
    16.  RDI:    0x41a7b188  RSI: 0x000004b1  RAX:   0x00000000
    17.  RBX:    0x00000000  RCX: 0x419c09c0  RDX:   0x007e00da
    18.  RIP:    0xc6b84f4d  RBP: 0x0024df29  SegCs: 0x00000033
    19.  EFlags: 0x00010202  RSP: 0x0024de50  SegSs: 0x0000002b
    20.  R8:    0x00343000  R9: 0x00000000  R10:   0x00000000
    21.  R11:    0x00000064  R12: 0x41a7b2a0  R13:   0x00000000
    22.  R14:    0x00000000  R15: 0x41a7ae20
    23.  
    24.  Bytes at CS:EIP:
    25.  44 39 70 08 0f 8e c0 00 00 00 89 74 24 38 8b 45
    26.  
    27.  Stack:
    28.  0x0024de50: 430e7e70 00000001 00000010 00000000 p~.C............
    29.  0x0024de60: 00000000 00000000 30b74360 00000000 ........`C.0....
    30.  0x0024de70: 41a7b2a0 00000000 0000038a 00000001 ...A............
    31.  0x0024de80: 00000000 00000000 00000010 00000000 ................
    32.  0x0024de90: 00000010 00000000 00000000 00000000 ................
    33.  0x0024dea0: 41a7b188 00000000 00000000 00000000 ...A............
    34.  0x0024deb0: 00000000 00000000 fffffffe ffffffff ................
    35.  0x0024dec0: 000004b1 000005b8 00000001 00000001 ................
    36.  0x0024ded0: 0000001d 00000001 00000000 00000000 ................
    37.  0x0024dee0: 00000028 00000000 00000000 00000000 (...............
    38.  0x0024def0: 00000032 00000000 00000000 00000000 2...............
    39.  0x0024df00: 00000000 00000000 daf81a93 00007ff9 ................
    40.  0x0024df10: 41a7b188 00000000 c6b88959 00007ff9 ...A....Y.......
    41.  0x0024df20: 983b06b2 0000908f daf83bc7 00007ff9 ..;......;......
    42.  0x0024df30: 4460a720 00000000 00000000 00000000  .`D............
    43.  0x0024df40: 034bfb80 00000000 30b74360 00000000 ..K.....`C.0....
    44.  0x0024df50: 00000000 00000000 41a7ae20 00000000 ........ ..A....
    45.  0x0024df60: 0024e019 00000000 c6b8545d 00007ff9 ..$.....]T......
    46.  0x0024df70: 00000010 00000000 43139150 00000000 ........P..C....
    47.  0x0024df80: 41a7b188 00000000 41a7ae20 00000000 ...A.... ..A....
    48.  0x0024df90: 000004b1 00000000 000005b8 00000000 ................
    49.  0x0024dfa0: 00000001 00000000 0679cd00 00000000 ..........y.....
    50.  0x0024dfb0: 00000000 00000000 07b89f20 00000000 ........ .......
    51.  0x0024dfc0: 41a7b188 00000000 fffffffe ffffffff ...A............
    52.  
     
  2. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    Yes, we've had reports of this problem and we are looking into it now. I will update this thread once I have more details.
     
  3. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    We have a verified fix for this problem. It seems that the Unity and the 0.8 runtime interact a little differently than expected but we've got it sorted and it should be in the next possible patch release.

    -Will
     
  4. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    Do you have a rough eta for the next release?
     
  5. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    No later than 1 week. Keep an eye out for 5.2.2p4.

    I apologize for this issue, it's pretty glaring and should have been a ship-stopper in my opinion but keep in mind that this issue seems to be hardware dependent and thus was able to slip through during the transition to 0.8.

    1) Is it 100% reproducible?
    2) Also, can you try upgrading to 5.2.2? It may help.
     
  6. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,734
    Not sure if this is the same issue, but I can consistently reproduce similar behavior if D3D 9 is above D3D 11 in the Windows Graphics API list. Windows 10, runtime 0.8.
     
  7. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    It is 100% reproducible (10 out of 10 times). Is 5.2.2 out? Last I checked Unity said I had the latest version. I'll try again later this weekend.

    Max
     
  8. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    Just tried on 5.2.2f1. Still crashes 100% of the time. I'm just creating a fresh project, enabling virtual reality support and then hitting Play. It crashes when I Build & Run too.
     
  9. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,734
    In Player Settings > Other Settings, what's the order of your Graphics APIs for Windows? Mine is Direct3D11, then Direct3D9. I found that if I put Direct3D9 first, it always crashes.
     
  10. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    Mine was set to automatic, but if I turn that off, my list is Direct3D11 then Direct3D9.

    Max
     
  11. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    Tried both configurations. Crashes on playback no matter what order I use.

    Max
     
    Last edited: Nov 8, 2015
  12. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    You'll need to keep an eye out for patch releases of 5.2.2 in order to get the expected fix. 5.2.2p4 was mentioned in this thread, and although not out right now I guess we might expect it tomorrow.

    This is the forum thread that Unity post to when a new patch is released:

    http://forum.unity3d.com/threads/unity-patch-releases.246198/page-3

    When p4 is available we'll still need to read the release notes to see if the fix actually made it into this version.
     
  13. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    Thanks for the info. I'll keep waiting and check the release notes for each release.

    Max

    EDIT: I spoke too soon, looks like it already came out! "5.2.2p4 - VR: Update to Oculus OVRPlugin". Will give it a shot and report back
     
  14. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    So it crashed the first few runs, but it seems to be working beautifully now! Thanks again!!!

    Max
     
  15. zachypin

    zachypin

    Joined:
    Jun 7, 2011
    Posts:
    33
    How is yours setup? I've installed 5.2.2p4 and it still crashes whenever I turn VR support on.