Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
118 stars 1 forks source link

Unplugging a VR headset causes an instant freeze, unrecoverable #2019

Closed 989onan closed 3 weeks ago

989onan commented 1 month ago

Describe the bug?

While using a Valve Index (Maybe others) unplugging the headset causes an instant freeze and the game never recovers. Is extremely reproducible and happens every time a headset is unplugged. Possibly related to issue #1739

To Reproduce

Expected behavior

the game should not freeze and get stuck forever.

Screenshots

No response

Resonite Version Number

Beta 2024.5.7.505

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index

Log Files

CHEW-PC - 2024.5.7.505 - 2024-05-09 16_59_38.log

Additional Context

As someone who has a bad cable, this makes the game entirely unplayable. I launch the game and crash within minutes due to this.

Reporters

Paste into discord to format: <@434468177062133772>

5H4D0W-X commented 1 month ago

This also happens with quest over wired link (USB), but not always. My hypothesis is that it depends on whether the disconnection is caused by a hardware or software issue (and both the link software and my cable are unstable).

989onan commented 1 month ago

Update, the crash does not happen if use default device is turned on, but the second it turns on, instant freeze during the time of limbo, I cannot hear anything, still making the game near unusable due to having to restart every 10 minutes

989onan commented 1 month ago

Update number 2, the headset I was previously using as my default before steam launching becomes my new default, and the steam VR headset is never used until the game restarts....

Bisclaveret commented 3 weeks ago

Update, the crash does not happen if use default device is turned on, but the second it turns on, instant freeze during the time of limbo, I cannot hear anything, still making the game near unusable due to having to restart every 10 minutes

I used to, with my G2, have a similar issue with switching to desktop mode and back if the audio source changed. Is it possible that your OS swapping audio sources from one device to the other on disconnect (or from one device to 'default' audio selection) is causing the problem, or is this unrelated? For example, if I to take my headset off, i could swap to desktop. This is great and all, but my audio would still come from my VR headset and the speakers would be active and I'd have to balance that near my head or something to hear. If i went into the settings, and swapped audio source from the 'Realtek USB Headset 2.0' to my logi headphones or something, resonite would freeze and be uncrecoverable. I could see this being the case if the audio input/output swaps from your headset to whatever devices are set for default on your computer. I haven't tested this since the settings rework, it's been a bit as I changed from the G2 to a Q3 and haven't reinstalled.

989onan commented 3 weeks ago

sounds very related it seems

shiftyscales commented 3 weeks ago

Update, the crash does not happen if use default device is turned on, but the second it turns on, instant freeze

This leads me to suspect you were correct in your initial assumption that it might be caused by #1739. I've disconnected (and reconnected) my Quest 1 via USB Oculus Link without issue prior, and have had others which have disconnected and reconnected other headsets like the Vive Pro 2 without issue either.

We're not likely to prioritize putting time into an issue that is caused by a hardware issue on the users' end- I'd highly recommend you try to replace your headset cable when you are able.

Thank you for the report.