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
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Resolution Note:
OnClientDisconnectCallback was not properly removed.