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
- ACES Tonemapping causes banding artifacts and negative values in ColorGradingLUT when HDR is enabled and "High Dynamic Range" Grading mode is selected while Android Platform is used
- Android Player freezes when an Audio Source is playing and an incoming call is picked up and then hung up and the Audio Source is started again
- Green success icon is poorly visible in the light Unity theme
- Incorrect input into the Input Field when using Microsoft IME Japanese
- Multiplayer role "ClientAndServer" is displayed without the spaces in the "Play Mode Scenarios" window
Resolution Note:
This issue can be avoided by setting "Exception support" to "false" in the "Tools for Unity" setting in Visual Studio.