ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 259 forks source link

Vive #990

Open kokkorollo opened 3 years ago

kokkorollo commented 3 years ago

I'm having a big trouble with unity 2020.3.10f1, the SteamVR Unity Plugin v2.7.3 (sdk 1.14.15), and steam vr input with open XR on Windows 10.

I've conencted two base station 2.0 and 2 vive tracker 3.0.

When I go in play mode everithing is working fine, but if I click with the mouse cursor outside of the unity window the system freeze the whole PC. Also moving a windows inside the unity editor itself cause a complete block of the machine. The only way to start agan the pc is aa forced Power OFF.

can someone help me with this isse? i'm going crazy because I can't test nothig. I've also tried changing 2 different Pc and nothing changes.

I hope someone can help me. thanks.

zite commented 3 years ago

Can you try with different versions of Unity? maybe 2019.4 to be safe? It should definitely work with that version, but I can't imagine what would be causing this behavior.

kokkorollo commented 3 years ago

I’ve already tried with 2019.4. Maybe could be cause by the bull driver in steam? Because I’m not using the headset, but only the trackers. The weird thing is that when I make the build everything is working fine

Jelkro commented 2 years ago

I'm having the exact same issue. Also using:

Tested and occurs in the following unity versions

And SteamVR Unity Plugin v2.7.3

Did anyone manage to find a solution? @kokkorollo ?

Jelkro commented 2 years ago

I did some more tests and the issue doesnt occur when NOT using the OpenVR plugin in Unity's new XR plugin framework. Instead, I only enabled virtual reality supported in player settings (this is however deprecated in Unity versions newer than 2019).

Tested using

I also tested upgrading this same project to Unity's new XR plugin framework (using the OpenVR plugin) and this caused the issue to return. So the issue seems to be caused by a combination of the OpenVR plugin with Unity's new XR plugin framework and using the Null driver in steamVR. I didn't test with a connected HMD though, because I currently dont have access to one. But if this issue would occur using the HMD, I would expect this bug report to pop up more frequently across the internet than I currently see.

Waffle1434 commented 8 months ago

I have been experiencing this exact issue for about a month now, it took me a while to realize what triggers it. I have to use the Vive Tracker 3.0 without a headset for a product at work. I am using Unity 2022.3.20f1 (2022.3.16f1 tested also), 1/15/2024 SteamVR Plugin 2.8.0 release, OpenVR XR Plugin 1.2.1, URP 14.0.10.

Using the Null Driver in SteamVR:

WIthout fail, every time I try to open a right click dropdown dialog in Windows during Play Mode, my OS permanently freezes and I have to hard power reset.

Immediate causes of freeze:

The issue will not occur if any of the following is true:

Attempted solutions that don't work:

It strikes me as related to SteamVR's rendering, perhaps SteamVR_Render or SteamVR_Behavior.

This reminds me of how every time a right click dialog was opened in Unity, SteamVR's rendering would freeze-frame in headset and screech to a halt until the dialog closed, I wonder if its related.

Waffle1434 commented 8 months ago

@zite For my use case, I was able to mostly solve this issue by eliminating all SteamVR plugin code. I'm interfacing directly with openvr_api.cs to get Vive Tracker 3.0 pose. Freezes seem to be a lot less common but still possible.

yaelmartin commented 6 months ago

WIthout fail, every time I try to open a right click dropdown dialog in Windows during Play Mode, my OS permanently freezes and I have to hard power reset.

Immediate causes of freeze:

  • Clicking "..." on a component in Unity
  • Right clicking the Windows Desktop
  • Sometimes when opening or closing the "Background Tasks" unity window, it usually takes me about 2 tries

The issue will not occur if any of the following is true:

  • OpenVR plugin is not active/loaded
  • SteamVR isn't running
  • No camera component and or "[SteamVR]" gameobject has been instantiated or loaded in play mode
  • Not in Play Mode

Attempted solutions that don't work:

I had freezes too with the null driver and Unity, and I found a Reddit post with the same issue https://www.reddit.com/r/SteamVR/comments/vum0lh/comment/izag4y6/ u/Instrvmentality's suggestion worked for me!

*Warning: I found that having the borderless mirror window open can cause Windows to crash during Play Mode in Unity. To avoid this, remove the following lines of code from SteamVR\drivers\null\resources\settings\default.vrsettings "windowX": 0, "windowY": 0, "windowWidth": 2160, "windowHeight": 1200,

Unity 2023.3.22f1 SteamVR 2.5.5, Tundra Tracker and hub, null driver Windows 10 22H2 19045.4291

nicotina04 commented 6 months ago

@yaelmartin This thread works for me! Thanks a lot!

Here are the details of my environment:

Machine: Vive Tracker 2018 HMD: null driver Unity: 2022.3.24f1 Vive Input Utility: 1.19 SteamVR: 2.8