alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.3k stars 474 forks source link

SteamVR crash with Half-Life: Alyx #1534

Closed GhostNaN closed 1 year ago

GhostNaN commented 1 year ago

Description

When reloading the shotgun in Half-Life: Alyx SteamVR will hard crash (SEGV) while the game is still running. This issue is 100% replicable and only occurs after this commit: https://github.com/alvr-org/ALVR/commit/617b4670ee10b9e6b24642a9e454ed5fe2e290fe

Troubleshooting

Realizing that the only thing that was the same with the shotgun, was the haptic feedback. I was able to narrow down this issue fairly easily.

I have also tried disabling haptic feedback in the settings, but it made no difference.

There wasn't much in the steamvr logs because it was a hard crash, but ALVR had this to say: What happened: panicked at 'can not convert float seconds to Duration: value is negative', /rustc/8460ca823e8367a30dda430efda790588b8c84d3/library/core/src/time.rs:780:23 Backtrace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: _ZN9CVRServer8RunFrameEv 10: _ZN9CVRServer3RunEv 11: _Z8RealMainjR19VRServerArguments_t 12: main 13: 14: __libc_start_main 15: _start

Let me know if you need anything else.

Environment

Hardware

Here are my pc specs: https://linux-hardware.org/?probe=29ec74ac8b Quest 2

SteamVR Version: 1.25.7

zarik5 commented 1 year ago

Thank you, I'll take a look.

zarik5 commented 1 year ago

I pushed a fix, let me know it it works.

GhostNaN commented 1 year ago

This: https://github.com/alvr-org/ALVR/commit/d2576299022307ba7fe66a8539c42f784df58322 Didn't fix the issue unfortunately. With the exact same results and error.

GhostNaN commented 1 year ago

This commit: https://github.com/alvr-org/ALVR/commit/e3f68f3770c66fc2e6742921d1ed17a311abd363 Did indeed fix the issue "for real", thx.