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

Package: Unity Transport Package

-

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:

  1. Start a minimal session: 1 host and 1 client using Netcode for GameObjects with Unity Transport and Relay via SetRelayServerData
  2. Configure Disconnect Timeout to 5 minutes
  3. On Android, background the host (or client) app for ~1 minute
  4. Return to the app before the 5-minute timeout elapses
  5. 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:
*
**  

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.