Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os error 997 (WSA_IO_PENDING) causes disconnection randomly #1814

Closed
5 tasks done
cathiecode opened this issue Aug 30, 2023 · 7 comments · Fixed by #2522
Closed
5 tasks done

os error 997 (WSA_IO_PENDING) causes disconnection randomly #1814

cathiecode opened this issue Aug 30, 2023 · 7 comments · Fixed by #2522
Labels
bug Something isn't working windows This seems to be window-specific

Comments

@cathiecode
Copy link

cathiecode commented Aug 30, 2023

I tested with VRChat however probably causes with any applications.

Description

The client randomly disconnects from the server with log os error 997.
According to Microsoft documentation, Winsock error 997 is called WSA_IO_PENDING, which indicates requested system calls will be done lately. I think this is harmless, at least when I use UDP connections.
This may be caused by overload however my connection and system seem to have enough bandwidth for streaming. Anyway, I think WSA_IO_PENDING should be handled as a non-fatal disconnection.

General Troubleshooting

  • I carefully followed the instructions in the README and successfully completed the setup wizard
  • I read the ALVR Wikis here and here

Environment

Hardware

Note: for Linux, an upload to the hw-probe database is preferred: hw-probe -all -upload

CPU: Ryzen 5 5500

GPU: Radeon RX 6600 XT

GPU Driver Version: 23.7.2

Audio: On-board configuration (High definition audio device)

Network: Windows 11 -> (Ethernet) -> Wi-fi router -> (5Ghz Wi-fi) -> Quest 2

Installation

ALVR Version: 20.2.1 and v21.0.0-dev00+nightly.2023.08.27

ALVR Settings File: Default setting, provided with the setup wizard. session.json.txt

SteamVR Version: 1.26.7

Install Type:

  • Packaged (exe, deb, rpm, etc) - tested with stable
  • Portable (zip) - tested with nigthly
  • Source

OS Name and Version : Windows 11 Home Build 22621.2134 (Japanese)

Log around error 997 from nightly: session_log_around_error_997.txt
Full Log: Too big to upload so I uploaded to Google Drive. File
Translated error 997 log text from Japanese: Client disconnected. Cause: Performing duplicate I/O operations. (os error 997)
Log by local debug build: スクリーンショット 2023-08-30 181427

Sorry for my poor English and scarce knowledge.

@cathiecode cathiecode changed the title os error 997 (WSA_IO_PENDING) causes disconnect randomly os error 997 (WSA_IO_PENDING) causes disconnection randomly Aug 30, 2023
@cathiecode
Copy link
Author

After some investigation, I realized it may be a regression made around 444d087 - e440137 for synced socket.

@zmerp
Copy link
Member

zmerp commented Aug 30, 2023

Thank you for your help. Are you able to find the exact commit of the regression?

@cathiecode
Copy link
Author

I don't know how it works and disconnection occurs randomly so it will take a long time, But I'll try. Thanks for the huge effort in developing ALVR.

@cathiecode
Copy link
Author

I bisected and I comfirmed this does not happen before 7/17 nightly and occurs in 20.2.1 Release, at least.
I tried to check 8/16 nightly, the log does not appears but crashes without log, so I gave up bisecting.
After inspecting several crash logs and codes, I'm suspecting changes around 803ffb5 causing this phenomenon.
I Sorry for unclear report.

@stale
Copy link

stale bot commented Oct 15, 2023

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.

@stale stale bot added the stale label Oct 15, 2023
@Vixea
Copy link
Collaborator

Vixea commented Nov 16, 2023

Nawh unstale

@stale stale bot removed the stale label Nov 16, 2023
@Vixea Vixea added bug Something isn't working windows This seems to be window-specific labels Nov 16, 2023
@Malachiel87
Copy link

Any new about this issue? it happen also with ALVR wired USB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows This seems to be window-specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants