Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser][MT] various WebWorkerTest CI failures #96628

Closed
stephentoub opened this issue Jan 8, 2024 · 22 comments
Closed

[browser][MT] various WebWorkerTest CI failures #96628

stephentoub opened this issue Jan 8, 2024 · 22 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@stephentoub
Copy link
Member

stephentoub commented Jan 8, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=517510
Build error leg or test failing: System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.ManagedDelay_ConfigureAwait_True
Pull request: #96605

Error Message

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

{
  "ErrorMessage": "[FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
559500 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97738
559336 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97365
558354 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #98147
550939 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97640
550368 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97845
549714 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97537
549619 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97764
549571 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97216
549423 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97640
549385 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97669
549274 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97508
546114 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97052
546109 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97052
545819 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #92279
545808 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97052
540861 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97441
540125 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97441
536248 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97270
535009 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97270
534977 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97270
534584 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96315
534325 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97249
534064 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97177
534079 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96707
533666 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97227
533707 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95370
533717 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96805
533539 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97052
533491 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97216
533333 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97210
533056 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97099
533028 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96354
533008 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution
532966 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97167
532960 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97196
532949 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97195
532443 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #94684
532452 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution
532326 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95758
531906 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97152
531914 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96841
531658 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96807
531484 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97114
531400 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96805
531250 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97090
530804 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97107
530614 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96806
530552 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95370
530214 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97099
530258 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96896
529968 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95370
529460 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96814
529156 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution
529033 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96814
528720 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95370
528662 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96445
528375 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #97021
527889 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #94764
527514 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96445
527398 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95904
527177 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96969
527171 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96894
527048 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96961
526876 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution
526254 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95904
526224 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96940
525405 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96903
525236 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96445
525169 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96895
524829 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96315
524464 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96805
524168 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96805
524193 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96858
524147 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96856
523904 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #96618
523551 dotnet/runtime WasmTestOnBrowser-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution #95370

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 4 76
@stephentoub stephentoub added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Jan 8, 2024
@ghost
Copy link

ghost commented Jan 8, 2024

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=517510
Build error leg or test failing: System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.ManagedDelay_ConfigureAwait_True
Pull request: #96605

Error Message

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

{
  "ErrorMessage": "ManagedDelay_ConfigureAwait_True",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: stephentoub
Assignees: -
Labels:

arch-wasm, blocking-clean-ci, Known Build Error

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jan 8, 2024
@stephentoub

This comment was marked as resolved.

@radical
Copy link
Member

radical commented Jan 8, 2024

cc @pavelsavara

@pavelsavara pavelsavara self-assigned this Jan 8, 2024
@pavelsavara
Copy link
Member

thanks

@pavelsavara

This comment was marked as resolved.

@pavelsavara pavelsavara changed the title ManagedDelay_ConfigureAwait_True test failure in CI [browser][MT] various WebWorkerTest CI failures Jan 14, 2024
@pavelsavara
Copy link
Member

Log
Build

[20:00:27] warn: [2024-01-11T20:00:27.311Z] [ERROR] FATAL UNHANDLED EXCEPTION: System.OperationCanceledException: The operation was canceled.
[20:00:27] warn:    at System.Runtime.InteropServices.JavaScript.JSSynchronizationContext.Post(SendOrPostCallback , Object )
[20:00:27] warn:    at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.PostAction(Object state)
[20:00:27] warn:    at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback , Object , Task& )
[20:00:27] warn: --- End of stack trace from previous location ---
[20:00:27] warn:    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
[20:00:27] warn:    at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
[20:00:27] warn:    at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[QueueUserWorkItemCallback](ExecutionContext , Action`1 , QueueUserWorkItemCallback& )
[20:00:27] warn:    at System.Threading.QueueUserWorkItemCallback.Execute()
[20:00:27] warn:    at System.Threading.ThreadPoolWorkQueue.Dispatch()
[20:00:27] warn:    at System.Threading.PortableThreadPool.WorkerThread.WorkLoopSemaphoreSuccess(LowLevelLifoAsyncWaitSemaphore semaphore, Object stateObject)
[20:00:27] warn:    at System.Threading.LowLevelLifoAsyncWaitSemaphore.InternalAsyncWaitSuccess(LowLevelLifoAsyncWaitSemaphore , WaitEntry )
[20:00:27] warn:    at System.Threading.LowLevelLifoAsyncWaitSemaphore.SuccessCallback(IntPtr lifoSemaphore, IntPtr userData)
[20:00:27] info: [0x4890000-worker] MONO_WASM [0x4890000-worker]: forceDisposeProxies done: 2 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[20:00:27] info: [2024-01-11T20:00:27.693Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.NativeThreadId(executor: JSWebWorker)
[20:00:27] info: System.OperationCanceledException : The operation was canceled.
[20:00:27] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.NativeThreadId(Executor executor)
[20:00:27] info: --- End of stack trace from previous location ---
[20:00:32] info: STATE CUE CARD: (? means a positive number, usually 1 or 2, * means any number)
[20:00:32] info: 	0x0	- starting (GOOD, unless the thread is running managed code)
[20:00:32] info: 	0x1	- detached (GOOD, unless the thread is running managed code)
[20:00:32] info: 	0x2	- running (BAD, unless it's the gc thread)
[20:00:32] info: 	0x?03	- async suspended (GOOD)
[20:00:32] info: 	0x?04	- self suspended (GOOD)
[20:00:32] info: 	0x?05	- async suspend requested (BAD)
[20:00:32] info: 	0x6	- blocking (BAD, unless there's no suspend initiator)
[20:00:32] info: 	0x?07	- blocking async suspended (GOOD)
[20:00:32] info: 	0x?08	- blocking self suspended (GOOD)
[20:00:32] info: 	0x?09	- blocking suspend requested (GOOD in coop; BAD in hybrid)
[20:00:32] info: --thread 0xa93fc0 id 0xdc5ec [0] state 109
[20:00:32] info: --thread 0x1ed8750 id 0x1edb5c0 [0] state 6
[20:00:32] info: --thread 0x20f3ec8 id 0x2157128 [0] state 109
[20:00:32] info: --thread 0x235d668 id 0x2460040 [0] state 108
[20:00:32] info: --thread 0x2b0fa68 id 0x2b1a038 [0] state 105
[20:00:32] info: --thread 0x325c9d8 id 0x326f0d0 [0] state 109
[20:00:32] info: --thread 0x360bac0 id 0x3617c78 [0] state 108
[20:00:32] info: --thread 0x3958368 id 0x3b3c3e8 [0] state 109
[20:00:32] info: --thread 0x45b9160 id 0x45ef460 [0] state 109
[20:00:32] info: --thread 0x4552258 id 0x4890000 [0] state 2  GC INITIATOR
[20:00:32] info: --thread 0x51c5738 id 0x53c0040 [0] state 104
[20:00:32] info: WAITING for 2 threads, got 1 suspended
[20:00:32] fail: [0x4890000-worker] Error: [MONO] /__w/1/s/src/mono/mono/utils/mono-threads.c:330 <disabled>
                     at Rt (http://127.0.0.1:36983/_framework/dotnet.runtime.js:3:13935)
                     at md (http://127.0.0.1:36983/_framework/dotnet.runtime.js:3:211225)
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[9144]:0x235edb
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[804]:0x43878
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[722]:0x41bf7
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[724]:0x41cba
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[725]:0x41ced
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[897]:0x4709b
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[3503]:0x100084
                     at http://127.0.0.1:36983/_framework/dotnet.native.wasm:wasm-function[1033]:0x4c112
[20:30:07] fail: Tests timed out. Killing driver service pid 78
[20:30:07] fail: Application has finished with exit code TIMED_OUT but 0 was expected

Log
Build

[20:11:04] info: [2024-01-11T20:11:04.844Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSObject_CapturesAffinity(executor1: JSWebWorker, executor2: JSWebWorker)
[20:11:04] info: System.OperationCanceledException : The operation was canceled.
[20:11:04] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<ActionsInDifferentThreads>d__20`1[[System.Runtime.InteropServices.JavaScript.JSObject, System.Runtime.InteropServices.JavaScript, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
[20:11:04] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSObject_CapturesAffinity(Executor executor1, Executor executor2)
[20:11:04] info: --- End of stack trace from previous location ---

Log
Build

[19:44:25] info: [0x4b1a5e8-worker] MONO_WASM [0x4b1a5e8-worker]: forceDisposeProxies done: 3 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[19:44:26] info: [2024-01-11T19:44:26.079Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSObject_CapturesAffinity(executor1: JSWebWorker, executor2: NewThread)
[19:44:26] info: System.OperationCanceledException : The operation was canceled.
[19:44:26] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<ActionsInDifferentThreads>d__20`1[[System.Runtime.InteropServices.JavaScript.JSObject, System.Runtime.InteropServices.JavaScript, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
[19:44:26] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSObject_CapturesAffinity(Executor executor1, Executor executor2)
[19:44:26] info: --- End of stack trace from previous location ---
[19:44:26] info: [0x5130040-worker] MONO_WASM [0x5130040-worker]: forceDisposeProxies done: 0 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[19:44:26] info: [0x4604040-worker] MONO_WASM [0x4604040-worker]: forceDisposeProxies done: 4 imports, 0 exports, 0 GCHandles, 0 JSHandles.

@pavelsavara
Copy link
Member

Log
Build

[04:23:41] info: [2024-01-15T04:23:41.398Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.ThreadingTimer(executor: ThreadPool)
[04:23:41] info: Assert.True() Failure
[04:23:41] info: Expected: True
[04:23:41] info: Actual:   False
[04:23:41] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.ThreadingTimer(Executor executor)
[04:23:41] info: --- End of stack trace from previous location ---
[04:23:48] info: [2024-01-15T04:23:48.486Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.JSImportExportTest.JsImportTaskEchoPendingException
[04:23:48] info: Assert.True() Failure
[04:23:48] info: Expected: True
[04:23:48] info: Actual:   False
[04:23:48] info:    at System.Runtime.InteropServices.JavaScript.Tests.JSImportExportTest.JsImportTaskEchoPendingException()
[04:23:48] info: --- End of stack trace from previous location ---

Log
Build

[20:42:22] info: [2024-01-14T20:42:22.044Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSSynchronizationContext_Send_Post_Items_Cancellation
[20:42:22] info: System.OperationCanceledException : The operation was canceled.
[20:42:22] info:    at System.Runtime.InteropServices.JavaScript.JSSynchronizationContext.Post(SendOrPostCallback , Object )
[20:42:22] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<>c__DisplayClass6_0.<JSSynchronizationContext_Send_Post_Items_Cancellation>b__2()
[20:42:22] info:    at System.Threading.Tasks.Task`1[[System.Threading.Tasks.Task, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
[20:42:22] info:    at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
[20:42:22] info:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
[20:42:22] info: --- End of stack trace from previous location ---
[20:42:22] info:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread , ExecutionContext , ContextCallback , Object )
[20:42:22] info:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& , Thread )
[20:42:22] info: --- End of stack trace from previous location ---
[20:42:22] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSSynchronizationContext_Send_Post_Items_Cancellation()
[20:42:22] info: --- End of stack trace from previous location ---

@pavelsavara
Copy link
Member

Log

[15:21:23] warn: worker sent an error! http://127.0.0.1:38929/_framework/dotnet.native.worker.js:1: Uncaught Error: Assert failed: JS interop is not installed on this worker.
[15:21:23] fail: MONO_WASM: Error
                     at Ze (http://127.0.0.1:38929/_framework/dotnet.js:3:19874)
                     at e (http://127.0.0.1:38929/_framework/dotnet.js:3:33959)
                     at http://127.0.0.1:38929/_framework/dotnet.js:3:34104
[15:21:23] warn: MONO_WASM: mono_wasm_exit failed unwind
[15:21:23] fail: [out of order message from the browser]: http://127.0.0.1:38929/_framework/dotnet.native.worker.js 0 Uncaught Error: Assert failed: JS interop is not installed on this worker.
[15:21:23] info: WASM EXIT 1

@radical
Copy link
Member

radical commented Jan 17, 2024

Should this one be a separate issue? worker sent an error! http://127.0.0.1:38929/_framework/dotnet.native.worker.js:1: Uncaught Error: Assert failed: JS interop is not installed on this worker.

@pavelsavara
Copy link
Member

This is kitchen sink right now, sorry. I will start sorting it out soon.

Capturing full zoo of specimens is useful and they don't all happen in one CI run or on my machine.
That's why I didn't remove the MT smoke tests from runtime pipeline yet.
Please let me know if this is too annoying and we can do that.

@pavelsavara
Copy link
Member

Log

[15:03:57] info: [2024-01-17T15:03:57.680Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WebSocketClient_ResponseCloseInDifferentThread(executor1: JSWebWorker, executor2: JSWebWorker)
[15:03:57] info: System.OperationCanceledException : The operation was canceled.
[15:03:57] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<ActionsInDifferentThreads>d__20`1[[System.Net.WebSockets.ClientWebSocket, System.Net.WebSockets.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
[15:03:57] info: --- End of stack trace from previous location ---

@pavelsavara
Copy link
Member

Log
Build

[06:40:32] info: [0x55fc058-worker] MONO_WASM [0x55fc058-worker]: forceDisposeProxies done: 0 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[06:40:33] info: [2024-01-19T06:40:33.266Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WebSocketClient_ResponseCloseInDifferentThread(executor1: Main, executor2: NewThread)
[06:40:33] info: System.OperationCanceledException : The operation was canceled.
[06:40:33] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<ActionsInDifferentThreads>d__20`1[[System.Net.WebSockets.ClientWebSocket, System.Net.WebSockets.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
[06:40:33] info: --- End of stack trace from previous location ---
[06:40:33] info: [0x5c30040-worker] MONO_WASM [0x5c30040-worker]: forceDisposeProxies done: 0 imports, 0 exports, 0 GCHandles, 0 JSHandles.

@pavelsavara
Copy link
Member

Log
Build

[19:21:02] warn: [2024-01-18T19:21:02.523Z] [ERROR] FATAL UNHANDLED EXCEPTION: System.OperationCanceledException: The operation was canceled.
[19:21:02] warn:    at System.Runtime.InteropServices.JavaScript.JSSynchronizationContext.Post(SendOrPostCallback , Object )
[19:21:02] warn:    at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.PostAction(Object state)
[19:21:02] warn:    at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback , Object , Task& )
[19:21:02] warn: --- End of stack trace from previous location ---
[19:21:02] warn:    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
[19:21:02] warn:    at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
[19:21:02] warn:    at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[QueueUserWorkItemCallback](ExecutionContext , Action`1 , QueueUserWorkItemCallback& )
[19:21:02] warn:    at System.Threading.QueueUserWorkItemCallback.Execute()
[19:21:02] warn:    at System.Threading.ThreadPoolWorkQueue.Dispatch()
[19:21:02] warn:    at System.Threading.PortableThreadPool.WorkerThread.WorkLoopSemaphoreSuccess(LowLevelLifoAsyncWaitSemaphore semaphore, Object stateObject)
[19:21:02] warn:    at System.Threading.LowLevelLifoAsyncWaitSemaphore.InternalAsyncWaitSuccess(LowLevelLifoAsyncWaitSemaphore , WaitEntry )
[19:21:02] warn:    at System.Threading.LowLevelLifoAsyncWaitSemaphore.SuccessCallback(IntPtr lifoSemaphore, IntPtr userData)
[19:21:02] info: [0x5000368-worker] MONO_WASM [0x5000368-worker]: forceDisposeProxies done: 0 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[19:21:02] info: [2024-01-18T19:21:02.666Z] [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WebSocketClient_CancelInDifferentThread(executor1: NewThread, executor2: JSWebWorker)
[19:21:02] info: System.OperationCanceledException : The operation was canceled.
[19:21:02] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<ActionsInDifferentThreads>d__20`1[[System.Net.WebSockets.ClientWebSocket, System.Net.WebSockets.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
[19:21:02] info: --- End of stack trace from previous location ---
[19:21:02] info: [0x49e0000-worker] MONO_WASM [0x49e0000-worker]: forceDisposeProxies done: 6 imports, 0 exports, 0 GCHandles, 0 JSHandles.

@radekdoulik

This comment was marked as resolved.

@pavelsavara
Copy link
Member

This is probably timeout in mono_exit while waiting for all managed threads to join.

Log
Build

[10:55:09] info: === TEST EXECUTION SUMMARY ===
[10:55:09] info: Total: 534, Errors: 0, Failed: 0, Skipped: 1, Time: 24.0933498s
[10:55:09] info: 
[10:55:10] info: Received expected 147597 of /root/helix/work/workitem/uploads/xharness-output/testResults.xml
[10:55:10] info: Finished writing 147597 bytes of RESULTXML
[10:55:10] info: Xml file was written to the provided writer.
[10:55:10] info: Tests run: 534 Passed: 533 Inconclusive: 0 Failed: 0 Ignored: 0 Skipped: 1
[10:55:10] info: test-main.js exiting WasmTestRunner.dll System.Runtime.InteropServices.JavaScript.Tests.dll with result 0
...
[10:55:10] info: MONO_WASM [0xdcd5c-main]: forceDisposeProxies done: 242 imports, 0 exports, 38 GCHandles, 107 JSHandles.
[11:24:42] fail: Tests timed out. Killing driver service pid 79
[11:24:42] fail: Application has finished with exit code TIMED_OUT but 0 was expected
XHarness exit code: 71 (GENERAL_FAILURE)

pavelsavara added a commit to pavelsavara/runtime that referenced this issue Jan 20, 2024
@pavelsavara

This comment was marked as resolved.

@pavelsavara
Copy link
Member

pavelsavara commented Jan 24, 2024

This is ves_icall_System_Environment_FailFast -> "Process terminated."

Log
Build

[21:30:38] info: [2024-01-23T21:30:38.609Z] [STRT] System.Runtime.InteropServices.JavaScript.Tests.JSImportExportTest.JsImportTaskTypes
[21:30:38] warn: [0x1f76248-worker][2024-01-23T21:30:38.688Z] [MONO] /__w/1/s/src/mono/mono/metadata/icall.c:6171 <disabled>
[21:30:38] warn: [0x1f76248-worker][2024-01-23T21:30:38.689Z] [MONO] /__w/1/s/src/mono/mono/metadata/icall.c:6180 <disabled>
[21:30:38] warn: [0x1f76248-worker] Aborted()
[21:30:38] info: WASM EXIT 1

This seems to be finalizer thread after mono_exit

@pavelsavara
Copy link
Member

  info: [STRT] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.JSDelay_ConfigureAwait_True(executor: JSWebWorker)
  warn: worker sent an error! http://127.0.0.1:61746/_framework/dotnet.native.worker.js:176: Uncaught Error: Assert failed: mono runtime didn't start yet
  warn: [0x04440000-jsww 15:50:44.309] MONO_WASM: JSSynchronizationContext is still installed on worker 0x4440000.
  warn: [0x000f1d10 15:50:44.309] MONO_WASM: mono_wasm_exit failed unwind
  fail: Error: [MONO] * Assertion at C:/Dev/runtime/src/mono/mono/mini/interp/interp.c:155, condition `stack->current == stack->first && stack->current->pos == (guint8*)&stack->current->data' not met

      at mono_wasm_stringify_as_error_with_stack (http://127.0.0.1:61746/_framework/dotnet.runtime.js:1181:18)
      at mono_wasm_trace_logger (http://127.0.0.1:61746/_framework/dotnet.runtime.js:1200:27)
      at wasm_trace_logger (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[18498]:0x35af37)
      at eglib_log_adapter (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[959]:0x5e3fc)
      at monoeg_g_logstr (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[835]:0x5a074)
      at monoeg_g_logv_nofree (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[833]:0x59fc9)
      at monoeg_assertion_message (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[837]:0x5a0f4)
      at mono_assertion_message (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[838]:0x5a152)
      at interp_free_context (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[201]:0x28a3b)
      at free_jit_tls_data (http://127.0.0.1:61746/_framework/dotnet.native.wasm:wasm-function[9157]:0x1fb495)
  warn: worker sent an error! http://127.0.0.1:61746/_framework/dotnet.native.worker.js:176: Uncaught unwind
  fail: [out of order message from the browser]: http://127.0.0.1:61746/_framework/dotnet.native.worker.js 175 Uncaught Error: Assert failed: mono runtime didn't start yet
  fail: [out of order message from the browser]: http://127.0.0.1:61746/_framework/dotnet.native.worker.js 175 Uncaught unwind
  info: WASM EXIT 1

locally on my box

@pavelsavara
Copy link
Member

pavelsavara commented Jan 26, 2024

[STRT] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WebSocketClient_CancelInDifferentThread(executor1: JSWebWorker, executor2: ThreadPool)
dotnet.runtime.js:1124 MONO_WASM: forceDisposeProxies done: 2 imports, 0 exports, 1 GCHandles, 0 JSHandles.
dotnet.native.js:993 Unexpected test case WebSocketClient_CancelInDifferentThread timeout after 00:00:05.0040000 ManagedThreadId:495
dotnet.native.js:1009 [ERROR] FATAL UNHANDLED EXCEPTION: System.OperationCanceledException: The operation was canceled.
dotnet.native.js:1009    at System.Runtime.InteropServices.JavaScript.JSSynchronizationContext.Post(SendOrPostCallback , Object ) in C:\Dev\runtime\src\libraries\System.Runtime.InteropServices.JavaScript\src\System\Runtime\InteropServices\JavaScript\JSSynchronizationContext.cs:line 174
dotnet.native.js:1009    at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.PostAction(Object state) in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs:line 428
dotnet.native.js:1009    at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback , Object , Task& ) in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs:line 697
dotnet.native.js:1009    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state) in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs:line 1925
dotnet.native.js:1009    at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs:line 1197
dotnet.native.js:1009    at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[QueueUserWorkItemCallback](ExecutionContext , Action`1 , QueueUserWorkItemCallback& ) in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs:line 307
dotnet.native.js:1009    at System.Threading.QueueUserWorkItemCallback.Execute() in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs:line 1213
dotnet.native.js:1009    at System.Threading.ThreadPoolWorkQueue.Dispatch() in C:\Dev\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs:line 913
dotnet.native.js:1009    at System.Threading.PortableThreadPool.WorkerThread.WorkLoopSemaphoreSuccess(LowLevelLifoAsyncWaitSemaphore semaphore, Object stateObject) in C:\Dev\runtime\src\mono\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.Browser.Threads.Mono.cs:line 84
dotnet.native.js:1009    at System.Threading.LowLevelLifoAsyncWaitSemaphore.InternalAsyncWaitSuccess(LowLevelLifoAsyncWaitSemaphore , WaitEntry ) in C:\Dev\runtime\src\mono\System.Private.CoreLib\src\System\Threading\LowLevelLifoAsyncWaitSemaphore.Browser.Threads.Mono.cs:line 159
dotnet.native.js:1009    at System.Threading.LowLevelLifoAsyncWaitSemaphore.SuccessCallback(IntPtr lifoSemaphore, IntPtr userData) in C:\Dev\runtime\src\mono\System.Private.CoreLib\src\System\Threading\LowLevelLifoAsyncWaitSemaphore.Browser.Threads.Mono.cs:line 211
    at WebSocket.local_on_error (dotnet.runtime.js:5816:23)

another local

@pavelsavara

This comment was marked as resolved.

@pavelsavara
Copy link
Member

pavelsavara commented Feb 2, 2024

Log

[02:57:19] info: [STRT] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WaitAssertsOnJSInteropThreads(executor: JSWebWorker)
[02:57:19] info: [0x0452ffe8-jsww 02:57:19.193] MONO_WASM: forceDisposeProxies done: 0 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[02:57:19] fail: [FAIL] System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WaitAssertsOnJSInteropThreads(executor: JSWebWorker)
[02:57:19] info: Assert.NotNull() Failure: Value is null
[02:57:19] info:    at System.Runtime.InteropServices.JavaScript.Tests.Executor.AssertBlockingWait(Exception exception)
[02:57:19] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.<>c__DisplayClass16_0.<WaitAssertsOnJSInteropThreads>b__0()
[02:57:19] info:    at System.Runtime.InteropServices.JavaScript.Tests.Executor.<>c__DisplayClass7_0.<Execute>g__wrapExecute|0()
[02:57:19] info:    at System.Runtime.InteropServices.JavaScript.JSWebWorker.<>c__DisplayClass5_0.<<RunAsync>b__0>d.MoveNext()
[02:57:19] info: --- End of stack trace from previous location ---
[02:57:19] info:    at System.Runtime.InteropServices.JavaScript.Tests.WebWorkerTest.WaitAssertsOnJSInteropThreads(Executor executor)
[02:57:19] info: --- End of stack trace from previous location ---

Filled #97914

@pavelsavara
Copy link
Member

closing this catch-all and we will continue creating individual issues with more granularity.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

4 participants