Search Issue Tracker

By Design

Votes

0

Found in [Package]

1.0.0-pre.4

Issue ID

1394086

Regression

No

[Netcode] During Shutdown() NetworkManager is using OnClientDisconnectCallback that was removed

Package: Unity Netcode

-

Reproduction steps:
1. Open attached project and scene "StartMenu"
2. In Build Settings window, Build and Run for Standalone
3. In Standalone Player, press the "Host LAN Game" button, then the "Ready" button
4. In Editor, enter Play Mode, press the "Join LAN Game" button, then the "Ready" button
5. In Standalone Player, press the "Close Game" button
6. Observe Console window

Expected result: No errors
Actual result: "MissingReferenceException: The object of type 'LobbyControl' has been destroyed but you are still trying to access it. <...> LobbyControl.OnClientDisconnectCallback" error

Reproducible with: 1.0.0-pre.4 (2021.2.8f1, 2022.1.0b2, 2022.2.0a1)
Could not test with: 2019.4.34f1 (NetCode for GameObjects not available), 2020.3.26f1 (compilation errors break project)

  1. Resolution Note:

    OnClientDisconnectCallback was not properly removed.

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.