Skip to content

[browser][MT] PlatformNotSupportedException Blocking wait is not supported on the JS interop threads #98804

Closed
@pavelsavara

Description

@pavelsavara

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "System\.PlatformNotSupportedException ?: Blocking wait is not supported on the JS interop threads",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Log
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=574940

[22:24:46] info: [FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_EmptyResponseBody_HandlerProducesWellBehavedResponseStream
[22:24:46] info: System.PlatformNotSupportedException : Blocking wait is not supported on the JS interop threads.
[22:24:46] info:    at System.Threading.Thread.AssureBlockingPossible()
[22:24:46] info:    at System.Threading.SemaphoreSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[22:24:46] info:    at System.Threading.SemaphoreSlim.Wait()
[22:24:46] info:    at System.IO.Stream.BeginReadInternal(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state, Boolean serializeAsynchronously, Boolean apm)
[22:24:46] info:    at System.IO.Stream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
[22:24:46] info:    at System.Threading.Tasks.TaskFactory`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FromAsyncImpl[Byte[],Int32,Int32](Func`6 beginMethod, Func`2 endFunction, Action`1 endAction, Byte[] arg1, Int32 arg2, Int32 arg3, Object state, TaskCreationOptions creationOptions)
[22:24:46] info:    at System.Threading.Tasks.TaskFactory.FromAsync[Byte[],Int32,Int32,Int32](Func`6 beginMethod, Func`2 endMethod, Byte[] arg1, Int32 arg2, Int32 arg3, Object state)
[22:24:46] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.<ReadAsStreamAsync_EmptyResponseBody_HandlerProducesWellBehavedResponseStream>b__29_0(Uri uri)
[22:24:46] info:    at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
[22:24:46] info: --- End of stack trace from previous location ---
[22:24:46] info:    at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
[22:24:46] info:    at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
[22:24:46] info: --- End of stack trace from previous location ---
[22:24:46] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[22:24:46] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.ReadAsStreamAsync_EmptyResponseBody_HandlerProducesWellBehavedResponseStream()
[22:24:46] info: --- End of stack trace from previous location ---

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 4/15/2024 7:27:53 PM UTC

Report

Build Definition Test Pull Request
643881 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #101056
644056 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #101038
643951 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #100765
643885 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #100898
643867 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #100266
643892 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #100949
643833 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #100947

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 7 7

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-threading-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-browserBrowser variant of arch-wasm

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions