You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue where using Visual Studio in combination with UniTask is causing the Unity editor to crash.
Reproduction Steps
Write an async function that returns a UniTaskVoid, UniTask, or UniTask<T> and awaits at least once.
Using Visual Studio, set a breakpoint on the await statement and attach the debugger to the editor.
Run your game in the editor until Visual Studio hits the breakpoint.
Try to step over the await statement.
Notes
I've tested this with Visual Studio 2019 on Windows with Unity 2019.2.4f1.
Stepping over await statements appears to work correctly when using async void, async Task, and async Task<T>, so the issue appears to have something to do with UniTask.
It's not clear if the issue is with Visual Studio, Unity, or UniTask. To test this, it would be good to try the following things:
Create a non-Unity C# project with Visual Studio 2019 and create a custom task-like type, matching what UniTask provides. See if you can use the debugger here.
Create a basic task-like type, similar to what UniTask provides but as minimal as possible, and see if that still causes the editor to crash.
I'll try to dig into this issue more, but I wanted to open this ticket in case I don't have time.
The text was updated successfully, but these errors were encountered:
I'm running into an issue where using Visual Studio in combination with UniTask is causing the Unity editor to crash.
Reproduction Steps
async
function that returns aUniTaskVoid
,UniTask
, orUniTask<T>
andawait
s at least once.await
statement and attach the debugger to the editor.await
statement.Notes
await
statements appears to work correctly when usingasync void
,async Task
, andasync Task<T>
, so the issue appears to have something to do with UniTask.I'll try to dig into this issue more, but I wanted to open this ticket in case I don't have time.
The text was updated successfully, but these errors were encountered: