Search Unity

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

Bug Unity Crashes When Using Valve Index

Discussion in 'VR' started by ThatRaincoat, Dec 7, 2021.

  1. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    We've been switching our project to the OpenXR plugin and have gotten the Oculus Headsets working as intended. The Oculus Headsets work in both the Oculus and Steam VR backends.

    However when using the Valve Index Unity freezes and becomes unresponsive as soon as the play button is pressed. The only way to get Unity working again is to restart.

    We also tested builds and the result is similar. The game will not launch after running the .exe and then once the Index is disconnected the game will start.

    The Index works for every other game on steam we tested so it doesn't seem to be a hardware issue.

    Is this a bug or possibly a configuration issue on our end?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    Did you upgrade OpenXR to the latest version?
    And did you disable steamvr runtime and added the controllers you use to openxr?
     
  3. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    What version of Unity?
    What version of OpenXR plugin?
    What version of Steam VR?

    Could you also send me your editor log (assuming you are running in editor)?

    We will double check the index here to make sure its not something new.
     
  4. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    Ran it on index here using SteamVR 1.20.4 and it seems to work and track ok.
     
  5. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    Thanks for the reply! I really appreciate it.

    I actually just made a test project and sent in a bug report with a small example project.

    I'm using Unity 2020.3.24f1
    OpenXR Plugin 1.2.8
    XR Plugin Management 4.0.1

    We aren't using Steam VR.

    I've uploaded an editor log here.
     

    Attached Files:

    rz_0lento likes this.
  6. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    How are you using the Valve Index without the Steam VR OpenXR Runtime?
     
  7. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    Oh sorry I meant not using the SteamVR Plugin.

    We are using Steam with SteamVR runtime version 1.20.4
     
  8. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    I think I found the bug your submitted and tried the project myself but was unable to reproduce the crash, at least with 2021.2.4f1.
     
  9. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    Hrm... Interesting!

    Unfortunately we cannot upgrade beyond 2020.3 due to it breaking a number of our tools.
    Can you reproduce it on your end via 2020.3.24f1?

    I'll try 2021.2.4f1 for the little experiment project I sent in as a crash report and see what happens.
     
  10. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    What issue number were you given for the bug you submitted? The one I found was made on 2021 so maybe it was a different one. I would be surprised if there was a difference on 2020.3 but once I find the bug you submitted I will try it there.
     
  11. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    It was case number: 1387356
     
  12. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    Ok grabbed your test project and was able to see the blue cube attached to my left hand with the valve index controller using SteamVR 1.20.4 as the active runtime.

    The editor logs attached to the bug did not even show OpenXR being initialized, could you possibly send me your player.log file for when you run it with a build? It may give some more insight.
     
  13. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    Sorry for the delay our studio was out of office.

    To clarify are you also testing with the Valve Index headset in addition to the controller?

    We tested in 2021.2 and still are experiencing the same issue.

    I am not sure I can get a player.log file as the exe doesn't seem to launch at all while the Index headset is connected.
     
  14. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    Yes I was using the headset and controllers. At this point the only suggestion I have is to create a test project and submit a bug so we can take a look at it. If you do please post the issue number here. Thank you
     
  15. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    I was able to generate a Player.log! The exe runs and is shown in task manager but never truly starts. However a log file is generated.

    It does look like there is potentially a problem.

    This was from build made using the project submitted with my previous test project in case number 1387356

    I have attached two player logs from the same build of the test project. They are both using Steam's OpenXR runtime. The Oculus headset starts immediately and works normally but when using the Index headset the game never starts.
     

    Attached Files: