alvr-org / ALVR

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

ALVR loses connection and is unable to regain it. #940

Closed Kirottu closed 1 year ago

Kirottu commented 2 years ago

Description

ALVR after some time of playing completely freezes and the headset is unable to reconnect. The logs will say this on each attempt at reconnecting:

09:19:55.238679810 | [INFO] | ClientConnected
09:19:55.238867391 | [INFO] | Serial Number: 1WMGH000XX0000
09:19:55.238873562 | [INFO] | Model Number: Miramar
09:19:55.238877439 | [INFO] | Render Target: 2688 1440
09:19:55.238881928 | [INFO] | Seconds from Vsync to Photons: 0.005000
09:19:55.238885294 | [INFO] | Refresh Rate: 90
09:19:55.243840698 | [INFO] | Setting new IPD to: 0.063232
09:25:08.329056906 | [INFO] | ClientDisconnected
09:25:08.355546495 | [INFO] | Client disconnected. Cause: At alvr/sockets/src/control_socket.rs:32

General Troubleshooting

Environement

Hardware

hw-probe

Audio: pipewire

Installation

ALVR Version: Latest nightly, 2022.01.25

SteamVR Version: 1.21.6

Install Type:

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): Arch Linux

Enstrayed commented 2 years ago

This might be a network issue. Make sure your computer is connected via Ethernet to your Router/AP and that your Quest has a 5 GHz WiFi connection. It's not advised to use a shared Router/AP for this application.

Kirottu commented 2 years ago

It is connected directly with usb to my computer, and the logs show the client tries to connect but immediately disconnects as shown in the log snippet I attached to the issue.

Kirottu commented 2 years ago

It is the latter one and it is mentioned on the wiki, and as I said I do not think the actual connectivity is the issue. Especially as when the "disconnect" happens it just has the stream completely freeze but the client does not disconnect. When restarting the app it stays on "Searching for server" with those messages appearing in the log. A full SteamVR restart is required for it to start working again.

Enstrayed commented 2 years ago

Apologies, I was unaware of the USB method. Does SteamVR show any errors or does it continue working as expected, just disconnected from the Headset?

Kirottu commented 2 years ago

SteamVR does not display any errors, tracking is lost as expected due to the client being disconnected.

Kirottu commented 2 years ago

By looking at the source code, it seems like something goes wrong with receiving the packets at ControlSocketReceiver::recv.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.