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
- The cursor moves into wrong place when renaming folder/asset
- Assertion error "(dx - width < padding) || (dy - height < padding)" when using Pack Preview
- [Memory Profiler] The EntryType.NativeAllocationSites_MemoryLabelIndex of snapshots only reports -1 or 0 instead of the MemLabel used for allocations made from any call site.
- [Vulkan] Artifacts appear in the Player when using Screen Space shadows with orthographic camera
- Errors OnGUIDepth changed & GUIUtility:ProcessEvent when opening Textures with Third Party App
Add comment