-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Netdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issue
Milestone
Description
There are 123 failing tests in WasmTestOnBrowser-System.Net.WebSockets.Client.Tests when multi-threading is enabled.
- 42 tests fail with the following exception stack trace:
System.Net.WebSockets.WebSocketException : An internal WebSocket error occurred. Please see the innerException, if present, for more details. ---- System.Runtime.InteropServices.JavaScript.JSException : TypeError: Failed to execute 'decode' on 'TextDecoder': The provided ArrayBufferView value must not be shared. at System.Net.WebSockets.BrowserWebSocket.SendAsyncCore(ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage, CancellationToken cancellationToken) at System.Net.WebSockets.Client.Tests.CloseTest.CloseOutputAsync_ClientInitiated_CanReceive_CanClose(Uri server) --- End of stack trace from previous location --- ----- Inner Stack Trace ----- at System.Net.WebSockets.BrowserInterop.WebSocketSend(JSObject webSocket, IntPtr bufferPtr, Int32 bufferLength, Int32 messageType, Boolean endOfMessage) at System.Net.WebSockets.BrowserInterop.UnsafeSendSync(JSObject jsWs, ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage) at System.Net.WebSockets.BrowserWebSocket.SendAsyncCore(ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage, CancellationToken cancellationToken) at jc (http://127.0.0.1:42359/dotnet.js:5:96779) at Object.Oc [as ws_wasm_send] (http://127.0.0.1:42359/dotnet.js:5:93626) at _bound_js_INTERNAL_ws_wasm_send (https://dotnet.generated.invalid/_bound_js_INTERNAL_ws_wasm_send:11:21) at Object.li (http://127.0.0.1:42359/dotnet.js:5:58079) at _mono_wasm_invoke_bound_function (http://127.0.0.1:42359/dotnet.js:14:121580) at do_icall (http://127.0.0.1:42359/dotnet.wasm:wasm-function[374]:0x27df1) at do_icall_wrapper (http://127.0.0.1:42359/dotnet.wasm:wasm-function[342]:0x2728f) at interp_exec_method (http://127.0.0.1:42359/dotnet.wasm:wasm-function[282]:0x1893e) at interp_entry (http://127.0.0.1:42359/dotnet.wasm:wasm-function[328]:0x26c8b) at interp_entry_static_0 (http://127.0.0.1:42359/dotnet.wasm:wasm-function[401]:0x2895e) - 39 tests fail with the following exception stack trace:
System.Net.WebSockets.WebSocketException : An internal WebSocket error occurred. Please see the innerException, if present, for more details. ---- System.Runtime.InteropServices.JavaScript.JSException : TypeError: Failed to execute 'send' on 'WebSocket': The provided ArrayBufferView value must not be shared. at System.Net.WebSockets.BrowserWebSocket.SendAsyncCore(ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage, CancellationToken cancellationToken) at System.Net.WebSockets.Client.Tests.SendReceiveTest.SendReceive_VaryingLengthBuffers_Success(Uri server) --- End of stack trace from previous location --- ----- Inner Stack Trace ----- at System.Net.WebSockets.BrowserInterop.WebSocketSend(JSObject webSocket, IntPtr bufferPtr, Int32 bufferLength, Int32 messageType, Boolean endOfMessage) at System.Net.WebSockets.BrowserInterop.UnsafeSendSync(JSObject jsWs, ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage) at System.Net.WebSockets.BrowserWebSocket.SendAsyncCore(ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage, CancellationToken cancellationToken) at Tc (http://127.0.0.1:42359/dotnet.js:5:95034) at Object.Oc [as ws_wasm_send] (http://127.0.0.1:42359/dotnet.js:5:93684) at _bound_js_INTERNAL_ws_wasm_send (https://dotnet.generated.invalid/_bound_js_INTERNAL_ws_wasm_send:11:21) at Object.li (http://127.0.0.1:42359/dotnet.js:5:58079) at _mono_wasm_invoke_bound_function (http://127.0.0.1:42359/dotnet.js:14:121580) at do_icall (http://127.0.0.1:42359/dotnet.wasm:wasm-function[374]:0x27df1) at do_icall_wrapper (http://127.0.0.1:42359/dotnet.wasm:wasm-function[342]:0x2728f) at interp_exec_method (http://127.0.0.1:42359/dotnet.wasm:wasm-function[282]:0x1893e) at interp_entry (http://127.0.0.1:42359/dotnet.wasm:wasm-function[328]:0x26c8b) at interp_entry_static_0 (http://127.0.0.1:42359/dotnet.wasm:wasm-function[401]:0x2895e) - 42 tests fail with:
Actual WebSocketErrorCode NativeError when System.Net.WebSockets.WebSocketException (0x80004005): An internal WebSocket error occurred. Please see the innerException, if present, for more details. ---> TypeError: Failed to execute 'decode' on 'TextDecoder': The provided ArrayBufferView value must not be shared. at System.Net.WebSockets.BrowserWebSocket.SendAsyncCore(ArraySegment`1 buffer, WebSocketMessageType messageType, Boolean endOfMessage, CancellationToken cancellationToken) at System.Net.WebSockets.Client.Tests.CancelTest.<>c.<<CloseOutputAsync_Cancel_Success>b__5_0>d.MoveNext() --- End of stack trace from previous location --- at System.Net.WebSockets.Client.Tests.ClientWebSocketTestBase.TestCancellation(Func`2 action, Uri server) Expected: True Actual: False at System.Net.WebSockets.Client.Tests.ClientWebSocketTestBase.TestCancellation(Func`2 action, Uri server) at System.Net.WebSockets.Client.Tests.CancelTest.CloseOutputAsync_Cancel_Success(Uri server) --- End of stack trace from previous location ---
aquino-a
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Netdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issue