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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
OnClientDisconnectCallback was not properly removed.