Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4.0f1
2019.1.0a1
2019.1.1f1
2019.2.0a1
2019.3.0a1
Issue ID
1153171
Regression
No
Debugging while Async method is running randomly causes the debugger to jump back to the initial breakpoint or crash
How to reproduce:
1. Open attached project "case_662397-asyncCrashRepro.zip" and scene "AsyncRepro"
2. Open Visual Studio and attach the Unity Editor for debugging
3. In Visual Studio, place a breakpoint on line 75 (on int a = 1) and uncomment line 16
4. In Unity Editor, enter Play mode
5. In Visual Studio, press "Step Into" multiple times button (shortcut is F11)
6. Observe each Visual Studio line after each "Step Into"
Expected result: the debugger does not randomly reset after the "Step Into" or "Step Over" and does not crash at any point
Actual result: the debugger randomly resets after the "Step Into" or "Step Over" and occasionally crashes when jumping between Await/Async methods
Reproducible with: 2018.1.9f2, 2018.3.14f1, 2018.4.0f1, 2019.1.2f1, 2019.2.0b2, 2019.3.0a2
Could not test with: 2017.4.27f1, 2018.3.0a1, 2018.3.0b1 (Visual Studio does not find coresponding location, unable to debug)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
This issue can be avoided by setting "Exception support" to "false" in the "Tools for Unity" setting in Visual Studio.