Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

VR 5.4.0b9 Multiple Crashes with OpenVR and Vive

Discussion in '5.4 Beta' started by freekstorm, Mar 9, 2016.

  1. freekstorm

    freekstorm

    Joined:
    Nov 11, 2010
    Posts:
    86
    I'm getting multiple crashes in Unity when starting VR scenes. Symptoms:
    1. Scene starts
    2. Get the message to put on the headset
    3. Headset appears to have light
    4. Headset goes on
    5. Headset goes white
    6. Headset goes black
    7. Unity Crashes
     
  2. freekstorm

    freekstorm

    Joined:
    Nov 11, 2010
    Posts:
    86
    Additional info. I managed to catch it between the HMD going black and the crash and stopped the play. This prevented the crash, but next time I ran the scene no HMD was detected by Unity. I have to restart Unity and power cycle the headset to recover.
     
  3. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    Hi freekstorm,

    Can you please submit a bug report along with the crash logs and post the case # here?

    There are known issues with outdated SteamVR plugins and the new native support. We are looking in to a way to catch the access violation caused by outdated plugins to give an informative error rather than a crash.

    Please update to all the latest plugins and utilities to avoid crashes for now.

    Thanks for your time and patience,

    Will
     
  4. freekstorm

    freekstorm

    Joined:
    Nov 11, 2010
    Posts:
    86
    I've submitted a bug, no case # yet.
    I installed the latest plugin for SteamVR (first installation so no old rubbish).
    If there is a place I can get updated oculus drivers please let me know where because I cant find any for the 5.4.0b9 release..
     
  5. freekstorm

    freekstorm

    Joined:
    Nov 11, 2010
    Posts:
    86
    (Case 778363) 5.4.0b9 Multiple Crashes with OpenVR and Vive
     
    MrEsquire likes this.
  6. freekstorm

    freekstorm

    Joined:
    Nov 11, 2010
    Posts:
    86
    I'm feeling really stupid right now. After playing about I realised that it was the process of putting it on my head that caused the problem. I pulled off the cable cover and found one of the connectors was loose, just enough that the cable strain would break the connection when putting the headset on , and make the connection when I put it on the table !

    Sorry to have bothered everyone.
     
  7. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    Thank you.

    It's worth noting that there are issues with the oculus dk2 + tracker + open VR. When the dk2 is outside of the tracking frustrum, the SteamVR client sends some bad data to Unity. We are still trying to decide who's side of the fence this issue falls on (valves or ours, are we handling the data wrong or should they never have sent it in the first place). I have seen this problem cause everything from crashes, to garbage in the dk2 headset, to a frozen last frame.

    Usually the work around is to cycle the DK2 and the SteamVR client, which sucks but we are working on making it not suck I swear!

    Now I know you said Vive + OpenVR = Crash but I am having trouble reproducing the issue. Does this happen in a blank project? Or a basic project with some basic features (baked light, particles, occlusion, etc)? I'll continue to dig in on this but any info you have will be much appreciated.
     
  8. williamj

    williamj

    Unity Technologies

    Joined:
    May 26, 2015
    Posts:
    94
    Hmmm, not stupid. For example, I don't think a crash is a good response to a loose cable but that is a tricky case for us to catch. I will see what we can do about adding warnings when devices are not attached properly*.
     
    Last edited: Mar 9, 2016