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] Wasm.Browser.Threads.Minimal sample is failing #88057

Closed
pavelsavara opened this issue Jun 26, 2023 · 2 comments · Fixed by #88052
Closed

[browser][MT] Wasm.Browser.Threads.Minimal sample is failing #88057

pavelsavara opened this issue Jun 26, 2023 · 2 comments · Fixed by #88052
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Jun 26, 2023

Error Blob

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=320864&view=results

{
  "ErrorMessage": "fetchelper.js was not imported yet",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

The Wasm.Browser.Threads.Minimal sample is failing - log.

at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunctionImpl(String , String , ReadOnlySpan`1 )
   at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunction(String functionName, String moduleName, ReadOnlySpan`1 signatures)
   at Sample.Test.FetchHelperResponseText(JSObject , Int32 )
   at Sample.Test.\u003C>c__DisplayClass24_0.\u003C\u003CFetchBackground>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Sample.Test.FetchBackground(String )
Error: Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.
    at http://127.0.0.1:39189/dotnet.runtime.js:3:52310
    at Vo (http://127.0.0.1:39189/dotnet.runtime.js:3:52775)
    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x211f3)
    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)
    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)
    at interp_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[152]:0x1ebdf)
    at mono_jit_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[3044]:0xe96ed)
    at do_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2348]:0xbe395)
    at mono_runtime_try_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2357]:0xbedef)
    at mono_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2384]:0xc15fe)
    at Cr (http://127.0.0.1:39189/dotnet.runtime.js:3:36672)
    at xr (http://127.0.0.1:39189/dotnet.runtime.js:3:36357)
    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x210db)
    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)
    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)
    at interp_entry (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[187]:0x2023c)
    at interp_entry_static_0 (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[208]:0x2092d)
    at wasm_native_to_interp_System_Runtime_InteropServices_JavaScript_JSSynchronizationContext_BackgroundJobHandler (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[8227]:0x204ec5)
    at mono_background_exec (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[746]:0x46fa6)
    at Ts (http://127.0.0.1:39189/dotnet.runtime.js:3:63074)

[14:26:52] info: smoke: running FetchBackground(blurst.txt)
[14:26:52] info: smoke: FetchBackground 1 ManagedThreadId:1, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 2 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 3A ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 3B ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 4 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 5 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.js 2:594 "MONO_WASM:    at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunctionImpl(String , String , ReadOnlySpan`1 )\n   at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunction(String functionName, String moduleName, ReadOnlySpan`1 signatures)\n   at Sample.Test.FetchHelperResponseText(JSObject , Int32 )\n   at Sample.Test.\u003C>c__DisplayClass24_0.\u003C\u003CFetchBackground>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n   at Sample.Test.FetchBackground(String )\nError: Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.\n    at http://127.0.0.1:39189/dotnet.runtime.js:3:52310\n    at Vo (http://127.0.0.1:39189/dotnet.runtime.js:3:52775)\n    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x211f3)\n    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)\n    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)\n    at interp_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[152]:0x1ebdf)\n    at mono_jit_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[3044]:0xe96ed)\n    at do_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2348]:0xbe395)\n    at mono_runtime_try_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2357]:0xbedef)\n    at mono_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2384]:0xc15fe)\n    at Cr (http://127.0.0.1:39189/dotnet.runtime.js:3:36672)\n    at xr (http://127.0.0.1:39189/dotnet.runtime.js:3:36357)\n    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x210db)\n    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)\n    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)\n    at interp_entry (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[187]:0x2023c)\n    at interp_entry_static_0 (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[208]:0x2092d)\n    at wasm_native_to_interp_System_Runtime_InteropServices_JavaScript_JSSynchronizationContext_BackgroundJobHandler (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[8227]:0x204ec5)\n    at mono_background_exec (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[746]:0x46fa6)\n    at Ts (http://127.0.0.1:39189/dotnet.runtime.js:3:63074)"
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.runtime.js 2:36671 Uncaught ManagedError: Error: Assert failed: ES6 module ./fetchelper.js w…89/dotnet.native.wasm:wasm-function[2384]:0xc15fe
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.js 2:214 Uncaught ManagedError: Error: Assert failed: ES6 module ./fetchelper.js w…89/dotnet.native.wasm:wasm-function[2384]:0xc15fe
[14:26:52] info: http://127.0.0.1:39189/dotnet.runtime.js 2 Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.

From #87996

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=320864
Result validation: ✅ Known issue matched with the provided build.

Report

Build Definition Test Pull Request
320058 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87916
322531 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87335
322295 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88006
322087 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88079
321975 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #86047
321950 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87930
321661 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88075
321651 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88073
321602 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88026
321440 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88026
321338 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88043
321334 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88043
321274 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87993
321139 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88055
321101 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88043
320993 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88041
320948 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88047
320939 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87868
320864 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #87996
320714 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88041
320669 dotnet/runtime Wasm.Browser.Threads.Minimal.Sample.WorkItemExecution #88040

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 21
@pavelsavara pavelsavara added this to the 8.0.0 milestone Jun 26, 2023
@pavelsavara pavelsavara self-assigned this Jun 26, 2023
@ghost
Copy link

ghost commented Jun 26, 2023

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

Issue Details

The Wasm.Browser.Threads.Minimal sample is failing - log.

at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunctionImpl(String , String , ReadOnlySpan`1 )
   at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunction(String functionName, String moduleName, ReadOnlySpan`1 signatures)
   at Sample.Test.FetchHelperResponseText(JSObject , Int32 )
   at Sample.Test.\u003C>c__DisplayClass24_0.\u003C\u003CFetchBackground>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Sample.Test.FetchBackground(String )
Error: Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.
    at http://127.0.0.1:39189/dotnet.runtime.js:3:52310
    at Vo (http://127.0.0.1:39189/dotnet.runtime.js:3:52775)
    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x211f3)
    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)
    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)
    at interp_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[152]:0x1ebdf)
    at mono_jit_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[3044]:0xe96ed)
    at do_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2348]:0xbe395)
    at mono_runtime_try_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2357]:0xbedef)
    at mono_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2384]:0xc15fe)
    at Cr (http://127.0.0.1:39189/dotnet.runtime.js:3:36672)
    at xr (http://127.0.0.1:39189/dotnet.runtime.js:3:36357)
    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x210db)
    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)
    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)
    at interp_entry (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[187]:0x2023c)
    at interp_entry_static_0 (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[208]:0x2092d)
    at wasm_native_to_interp_System_Runtime_InteropServices_JavaScript_JSSynchronizationContext_BackgroundJobHandler (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[8227]:0x204ec5)
    at mono_background_exec (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[746]:0x46fa6)
    at Ts (http://127.0.0.1:39189/dotnet.runtime.js:3:63074)

[14:26:52] info: smoke: running FetchBackground(blurst.txt)
[14:26:52] info: smoke: FetchBackground 1 ManagedThreadId:1, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 2 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 3A ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 3B ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 4 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] info: smoke: FetchBackground 5 ManagedThreadId:19, SynchronizationContext: System.Runtime.InteropServices.JavaScript.JSSynchronizationContext
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.js 2:594 "MONO_WASM:    at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunctionImpl(String , String , ReadOnlySpan`1 )\n   at System.Runtime.InteropServices.JavaScript.JSFunctionBinding.BindJSFunction(String functionName, String moduleName, ReadOnlySpan`1 signatures)\n   at Sample.Test.FetchHelperResponseText(JSObject , Int32 )\n   at Sample.Test.\u003C>c__DisplayClass24_0.\u003C\u003CFetchBackground>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n   at Sample.Test.FetchBackground(String )\nError: Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.\n    at http://127.0.0.1:39189/dotnet.runtime.js:3:52310\n    at Vo (http://127.0.0.1:39189/dotnet.runtime.js:3:52775)\n    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x211f3)\n    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)\n    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)\n    at interp_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[152]:0x1ebdf)\n    at mono_jit_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[3044]:0xe96ed)\n    at do_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2348]:0xbe395)\n    at mono_runtime_try_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2357]:0xbedef)\n    at mono_runtime_invoke (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[2384]:0xc15fe)\n    at Cr (http://127.0.0.1:39189/dotnet.runtime.js:3:36672)\n    at xr (http://127.0.0.1:39189/dotnet.runtime.js:3:36357)\n    at do_icall (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[229]:0x210db)\n    at do_icall_wrapper (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[123]:0x1db60)\n    at mono_interp_exec_method (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[116]:0x1111c)\n    at interp_entry (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[187]:0x2023c)\n    at interp_entry_static_0 (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[208]:0x2092d)\n    at wasm_native_to_interp_System_Runtime_InteropServices_JavaScript_JSSynchronizationContext_BackgroundJobHandler (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[8227]:0x204ec5)\n    at mono_background_exec (http://127.0.0.1:39189/dotnet.native.wasm:wasm-function[746]:0x46fa6)\n    at Ts (http://127.0.0.1:39189/dotnet.runtime.js:3:63074)"
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.runtime.js 2:36671 Uncaught ManagedError: Error: Assert failed: ES6 module ./fetchelper.js w…89/dotnet.native.wasm:wasm-function[2384]:0xc15fe
[14:26:52] fail: [out of order message from the browser]: http://127.0.0.1:39189/dotnet.js 2:214 Uncaught ManagedError: Error: Assert failed: ES6 module ./fetchelper.js w…89/dotnet.native.wasm:wasm-function[2384]:0xc15fe
[14:26:52] info: http://127.0.0.1:39189/dotnet.runtime.js 2 Error: Assert failed: ES6 module ./fetchelper.js was not imported yet, please call JSHost.ImportAsync() first.

From #87996

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: 8.0.0

@pavelsavara pavelsavara added 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 Jun 27, 2023
@radical
Copy link
Member

radical commented Jun 27, 2023

@pavelsavara could you please disable the test on main for now?

pavelsavara added a commit to pavelsavara/runtime that referenced this issue Jun 27, 2023
pavelsavara added a commit that referenced this issue Jun 27, 2023
@radical radical added disabled-test The test is disabled in source code against the issue and removed blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' labels Jun 27, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 1, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 24, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 24, 2023
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 disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants