com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

When NetworkManager.StartHost() is called with invalid ConnectionData in Unity Transport, the NetworkManager is irrecoverably shutdown

Open tangx246 opened this issue 3 years ago • 3 comments

Description

If we call NetworkManager.StartHost() and it fails to connect due to invalid IP address format (e.g. "127.0.0."), then the NetworkManager shuts itself down and seems to be unable to retry a connection even if the ConnectionData is fixed

Reproduce Steps

  1. Have a NetworkManager
  2. Add a Unity Transport
  3. Set ConnectionData.Address to "127.0.0." (invalid IP address)
  4. Call NetworkManager.StartHost()
  5. Set ConnectionData.Address to "127.0.0.1"
  6. Call NetworkManager.StartHost()

Actual Outcome

StartHost() fails and there appears to be a memory leak as well

Expected Outcome

StartHost() is successful

Screenshots

image

Environment

  • OS: Windows 10
  • Unity Version: 2021.3.1
  • Netcode Version: 1.0.0-pre.8

tangx246 avatar May 02 '22 22:05 tangx246

This may be a duplicate in Boss Room bug list

will-mearns avatar May 03 '22 16:05 will-mearns

MTT-3452

ashwinimurt avatar May 03 '22 23:05 ashwinimurt

Assigning to myself to follow up with Transport

ashwinimurt avatar Aug 11 '22 18:08 ashwinimurt