You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have the following problem. When exiting playmode, the editor crashes due to OpenVR. I'm using 1 x Vive Tracker 3.0, 1 x Base Station 2.0, null hmd driver. After starting playmode everything works fine, but when exiting playmode the editor crashes.
I tried different versions of the editor: 2021.3, 2022.3. The problem remains. I tried different versions of SteamVR Plugin: 2.8.0, 2.8.3 (in which, according to the description, they fixed the editor crash). The problem remains. I tried reinstalling SteamVR, installing different versions of it from the network and even beta versions. Nothing helped.
When creating a new project and a clean installation of the SteamVR Plugin, the editor may start 1-2 times and exit playmode without errors, but then everything repeats again. I can't reproduce the actions that lead to this. This also affects POGO pins. They can work 1-2 times, and then stop sending events. At the same time, in the SteamVR menu you can see that the buttons work.
After looking at the editor logs after the crash, I came to the conclusion that errors occur in 2 places in the ViveTrackersManager class: _cvrSystem.GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin.TrackingUniverseStanding, 0f, _ovrTrackedDevicePoses); _cvrSystem.GetControllerState(tracker.ID.trackedDevice_Index, ref _ovrControllerState, _ovrControllerStateSize);
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
at <unknown> <0xffffffff>
at System.Object:wrapper_native_00007FF831E842E0 <0x00908>
at <Module>:invoke_void_ETrackingUniverseOrigin_single_TrackedDevicePose_t[]_uint <0x0016d>
at Valve.VR.CVRSystem:GetDeviceToAbsoluteTrackingPose <0x000c2>
at ViveTrackers.ViveTrackersManager:UpdateTrackers <0x00312>
at ViveTrackers.ViveTrackersTest:Update <0x00178>
at System.Object:runtime_invoke_void__this__ <0x00187>
=================================================================
Received signal SIGSEGV
Obtained 2 stack frames
I was able to get around editor crash by writing a small method to exit playmode using a button on the keyboard. The point is simple:
disable UpdateTrackers (so as not to call the 2 methods described above)
wait a little time
exit playmode
Using this workaround, the editor no longer crashes, but now you cannot exit playmode using a button in top panel in editor.
Another option I found is to replace the GetDeviceToAbsoluteTrackingPose method call with the OpenVR.Compositor.GetLastPoses method. I also disabled button handling because I couldn't find an alternative method to replace GetControllerState. Everything works, but the trackers are now a little jittery compared to the original method (this doesn’t bother me, as long as there are no crashes).
The text was updated successfully, but these errors were encountered:
Hello, I have the following problem. When exiting playmode, the editor crashes due to OpenVR. I'm using 1 x Vive Tracker 3.0, 1 x Base Station 2.0, null hmd driver. After starting playmode everything works fine, but when exiting playmode the editor crashes.
I tried different versions of the editor: 2021.3, 2022.3. The problem remains. I tried different versions of SteamVR Plugin: 2.8.0, 2.8.3 (in which, according to the description, they fixed the editor crash). The problem remains. I tried reinstalling SteamVR, installing different versions of it from the network and even beta versions. Nothing helped.
When creating a new project and a clean installation of the SteamVR Plugin, the editor may start 1-2 times and exit playmode without errors, but then everything repeats again. I can't reproduce the actions that lead to this. This also affects POGO pins. They can work 1-2 times, and then stop sending events. At the same time, in the SteamVR menu you can see that the buttons work.
After looking at the editor logs after the crash, I came to the conclusion that errors occur in 2 places in the ViveTrackersManager class:
_cvrSystem.GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin.TrackingUniverseStanding, 0f, _ovrTrackedDevicePoses);
_cvrSystem.GetControllerState(tracker.ID.trackedDevice_Index, ref _ovrControllerState, _ovrControllerStateSize);
Here is part from the log:
I was able to get around editor crash by writing a small method to exit playmode using a button on the keyboard. The point is simple:
Using this workaround, the editor no longer crashes, but now you cannot exit playmode using a button in top panel in editor.
Another option I found is to replace the GetDeviceToAbsoluteTrackingPose method call with the OpenVR.Compositor.GetLastPoses method. I also disabled button handling because I couldn't find an alternative method to replace GetControllerState. Everything works, but the trackers are now a little jittery compared to the original method (this doesn’t bother me, as long as there are no crashes).
The text was updated successfully, but these errors were encountered: