Unity Issue Tracker - WebGL Client encounters connection errors when Player tab runs in the background
Closed
UGSB-9
WebGL Client encounters connection errors when Player tab runs in the background
Package: UGS-Wire
Won't Fix
1.2.X
There are no fixes planned for this Bug
How to reproduce:
1. Open the “unity-multiplayer-2022.3.10f1.zip“ project
2. Open Edit → Project Settings → Services
3. Connect to an Organization and link to a project
4. Find the project in cloud.unity.com and launch Relay
3. In the Editor, navigate to File → Build and Run
4. In Player, press the “Host“ button
5. Switch to a different tab and wait for 2 minutes
6. Switch back to the Player tab and observe the Web Console
Expected result: No errors are seen
Actual result: Errors regarding Relay, transport and Netcode are seen
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Notes:
If the issue does not reproduce wait for 2 more minutes
If a WebSocket error is seen refresh the page (where the Player is running) and repeat steps 4-7
Errors:
Received error message from Relay: player timed out due to inactivity.
Relay allocation is invalid. See NetworkDriver.GetRelayConnectionStatus and RelayConnectionStatus.AllocationInvalid for details on how to handle this situation.
Transport failure! Relay allocation needs to be recreated, and NetworkManager restarted. Use NetworkManager.OnTransportFailure to be notified of such events programmatically.
[Netcode] Host is shutting down due to network transport failure of UnityTransport!
Prioritise and Follow this issue
Have a workaround or additional info about this issue?