Search Issue Tracker
Active
Votes
0
Found in [Package]
transport-2.6.0
Issue ID
MTTB-1773
Regression
No
Android backgrounding causes silent Relay transport failure (“ghost disconnect”) without callbacks; session becomes desynced
Context: [https://discussions.unity.com/t/unity-relay-netcode-for-gameobjects-ghost-disconnect-when-app-is-put-in-background-for-1-minute/1699269]{}{{}}{}{{}}
Steps to reproduce:
- Start a minimal session: 1 host and 1 client using Netcode for GameObjects with Unity Transport and Relay via SetRelayServerData
- Configure Disconnect Timeout to 5 minutes
- On Android, background the host (or client) app for ~1 minute
- Return to the app before the 5-minute timeout elapses
- Notice that no disconnect or transport failure callbacks; peers stop seeing each other’s actions. and host eventually gets disconnect only after timeout
Actual results:
- No disconnect or OnTransportFailure callback fired after ~1 minute background
- Session becomes desynced
- Host only gets a disconnect after the full 5-minute timeout
Expected results:
if the OS or Relay causes a transport failure in the background, NetworkManager.OnTransportFailure should be invoked
Reproducible with versions:
- Platform: Android
- Network: Unity Transport with Relay configured via SetRelayServerData
- Netcode for GameObjects: 2.7.0
Transport: 2.6.0
- Editor: 6.3
Not reproducible with versions:
Can’t test with versions:
Tested on (OS):
Notes:
*
**
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Terms of Service agreement checkbox is invisible under specific OS system themes (UI Accessibility)
- Tile Palette: "Create New Tilemap" dropdown area is displayed in several colors
- Input.mousePosition stops syncing to touch input when using "DownloadHandlerTexture" in WebGL build
- UI Builder canvas doesn't update element styling accordingly when changing Active Theme for some Editor Authoring elements
- Selector Value buttons are not aligned with parameters in UI Builder
Add comment