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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note:
OnClientDisconnectCallback was not properly removed.