[release/6.0] [wasm][debugger] Avoid exception when calling WhenAny with a null parameter#76900
[release/6.0] [wasm][debugger] Avoid exception when calling WhenAny with a null parameter#76900thaystg wants to merge 1 commit intodotnet:release/6.0from
Conversation
…s from whenany to avoid an exception and closing the app
|
Tagging subscribers to this area: @thaystg Issue DetailsLooks like this is the exception: Trying to force it locally I cannot reproduce. But I'm trying to avoid the exception and adding extra log to help us to detect what is going on. fixes #68402
|
|
The real issue here is that it's a race condition, modifying Original commit: dotnet/runtime@ |
|
@radical can we backport it to 6? |
|
At a cursory glance, yeah, it looks doable. |
|
@lewing should we backport the correct and big fix? If the answer is yes I'll add this in my TODO list. |
|
@thaysg should this go into main first, then get backported to 6.0? |
Looks like this is the exception:
fail: Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception System.ArgumentException: The tasks argument included a null value. (Parameter 'tasks') at System.Threading.Tasks.Task.WhenAny(Task[] tasks) at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.Run(Uri browserUri, WebSocket ideSocket)Trying to force it locally I cannot reproduce. But I'm trying to avoid the exception and adding extra log to help us to detect what is going on.
fixes #68402