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 258 forks source link

Sudden crash when stopping play mode. #996

Open Chgv99 opened 2 years ago

Chgv99 commented 2 years ago

I use steam vr to connect HTC Vive Pro to Unity and it works perfectly most of the time. But at one point it started to crash the editor sometimes when stopping the play mode. No console errors or anything, just a straight crash. I once lost changes on a SAVED project.

Stack trace: at <0xffffffff> at (wrapper managed-to-native) object.wrapper_native_00007FFA26F92740 (uint,Valve.VR.ETrackedDeviceProperty,Valve.VR.ETrackedPropertyError&) [0x0000b] in <695d1cc93cca45069c528c15c9fdd749>:0 at Valve.VR.CVRSystem.GetFloatTrackedDeviceProperty (uint,Valve.VR.ETrackedDeviceProperty,Valve.VR.ETrackedPropertyError&) [0x00000] in C:\Users\Guest\VRSinCrash\Library\PackageCache\com.valvesoftware.unity.openvr@3ad36e93bc4a-1614121125000\Runtime\openvr_api.cs:2139 at Valve.VR.SteamVR.GetFloatProperty (Valve.VR.ETrackedDeviceProperty,uint) [0x00002] in C:\Users\Guest\VRSinCrash\Assets\SteamVR\Scripts\SteamVR.cs:314 at Valve.VR.SteamVR.get_hmd_DisplayFrequency () [0x00000] in C:\Users\Guest\VRSinCrash\Assets\SteamVR\Scripts\SteamVR.cs:278 at Valve.VR.SteamVR_Action_Pose_Source.UpdateValue (bool) [0x0007e] in C:\Users\Guest\VRSinCrash\Assets\SteamVR\Input\SteamVR_Action_Pose.cs:640

zite commented 2 years ago

Thanks for the report, I believe this has been fixed in the next release. I'll update here when that happens.

Separately you should never lose data on a saved project. That's likely a unity issue.