Search Issue Tracker
Fixed
Fixed in 1.0.0-pre.8
Votes
0
Found in [Package]
1.0.0-pre.6
Issue ID
NCCBUG-144
Regression
Yes
[Netcode] Connecting to non existing server fails with KeyNotFoundException
How to reproduce:
1. Open attached project
2. Load StartMenu scene
3. Enter Play Mode
4. Click Join LAN Game
5. Observe Console
Expected result: Error 'Client failed to connect to server' and popup in-game
Actual result: KeyNotFoundException in Console and no in-game popup
Error:
Failed to connect to server.
UnityEngine.Debug:LogError (object)
Unity.Netcode.UnityTransport:ProcessEvent () (at Library/PackageCache/com.unity.netcode.adapter.utp@1.0.0-pre.6/Runtime/UnityTransport.cs:659)
Unity.Netcode.UnityTransport:Update () (at Library/PackageCache/com.unity.netcode.adapter.utp@1.0.0-pre.6/Runtime/UnityTransport.cs:699)
KeyNotFoundException: The given key '4294967296' was not present in the dictionary.
System.Collections.Generic.Dictionary`2\[TKey,TValue].get_Item (TKey key) (at <5c11b4a72acd40aeb3dee4e6d69cca92>:0)
Unity.Netcode.NetworkManager.TransportIdToClientId (System.UInt64 transportId) (at Library/PackageCache/com.unity.netcode.gameobjects@1.0.0-pre.6/Runtime/Core/NetworkManager.cs:1340)
Reproduced with: 2022.1.0b12, 1.0.0-pre.6
Does not reproduce with: 1.0.0-pre.5
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 (fix version 1.0.0-pre.8):
This was fixed in commit f1c61d3bf28c0981e77fe90bdeb81bcb2f7b34c7