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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
Resolution Note:
OnClientDisconnectCallback was not properly removed.