Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.4.0b7
Issue ID
773837
Regression
No
Unity hangs and crashes on debugging project with KeyNotFoundException: The given key was not present in the dictionary error
To repro:
1. Open project attached.
2. Open any scene and Open RestartGame script.
3. Add breakpoint on Press function.
4. Attach to Unity process.
5. Run Unity. Press Play.
6. Go to Monodevelop. Skip this method.
7. Press Pause execution.
8. Add comment into method and save script.
9. Go to Unity and trigger breakpoints again.
10. Detach Monodevelop ant return to Unity.
Actual result: You'll get errors in Editor. After some time Unity crashes.
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[GameManager+GameStates,System.Action].get_Item (GameStates key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
GameManager.Update () (at Assets/MonoPong/Script/GameManager.cs:97)
Reproduces in 5.3.30f1, 5.4.0b7.
Same problem happens with similar scenario in VS2015.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment