Skip to content

[wasm-mt] WasmTestOnBrowser-System.Net.WebSockets.Client.Tests fails #74413

@simonrozsival

Description

@simonrozsival

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 ---
    

Full console log: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-74342-merge-b05c5a1bd5ab47119e/WasmTestOnBrowser-System.Net.WebSockets.Client.Tests/1/console.c02a8019.log?helixlogtype=result

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-System.Netdisabled-testThe test is disabled in source code against the issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions