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] fail in System.Reflection.RuntimeMethodInfo.InternalInvoke #100831

Open
pavelsavara opened this issue Apr 9, 2024 · 4 comments
Open
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Apr 9, 2024

Log

[15:39:24] fail: [0x04b98030-long 15:39:24.608] [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/loader.c:1821, condition `<disabled>' not met
                 
                 Error
                     at cu (http://127.0.0.1:41877/_framework/dotnet.runtime.js:3:200949)
                     at wasm_trace_logger (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[199]:0x14a9a)
                     at eglib_log_adapter (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[693]:0x4bd37)
                     at monoeg_g_logv_nofree (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[615]:0x4a148)
                     at monoeg_assertion_message (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[619]:0x4a269)
                     at mono_assertion_message (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[621]:0x4a2ac)
                     at mono_assertion_message_disabled (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[620]:0x4a27f)
                     at mono_method_signature_checked_slow (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2272]:0xbc715)
                     at mono_method_get_name_full (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[1741]:0x9c0c8)
                     at mono_method_full_name (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[1742]:0x9c2c2)
                     at mono_interp_exec_method (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[258]:0x186da)
                     at interp_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[297]:0x270dc)
                     at mono_jit_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[3348]:0xfd83c)
                     at do_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2628]:0xd00ba)
                     at mono_runtime_invoke_checked (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2627]:0xd004a)
                     at ves_icall_InternalInvoke_raw (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[1985]:0xaaa68)
                     at do_icall (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[338]:0x28e9d)
                     at do_icall_wrapper (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[267]:0x2644e)
                     at mono_interp_exec_method (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[258]:0x18d0c)
                     at interp_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[297]:0x270dc)
                     at mono_jit_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[3348]:0xfd83c)
                     at do_runtime_invoke (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2628]:0xd00ba)
                     at mono_runtime_invoke_checked (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2627]:0xd004a)
                     at start_wrapper (http://127.0.0.1:41877/_framework/dotnet.native.wasm:wasm-function[2776]:0xd7263)
                     at Object.invokeEntryPoint (http://127.0.0.1:41877/_framework/dotnet.native.js:8:69009)
                     at handleMessage (http://127.0.0.1:41877/_framework/dotnet.native.worker.js:1:2306)
[15:39:24] info: [PASS] System.ComponentModel.TypeConverterTests.SizeConverterTests.ConvertFromString
[15:39:24] info: [PASS] System.ComponentModel.TypeConverterTests.PointConverterTests.ConvertTo_NotSupportedException
[15:39:24] info: [PASS] System.ComponentModel.TypeConverterTests.PointConverterTests.ConvertTo_NotSupportedException
[15:39:24] info: [PASS] System.ComponentModel.TypeConverterTests.SizeConverterTests.ConvertFromString
[15:39:24] fail: 
[15:39:24] fail: ".NET Long Running Task" tid=0x4b98030 this=0x25b9040 , thread handle : 0x4ae8498, state : not waiting
[15:39:24] fail:   at <unknown> <0xffffffff>
[15:39:24] fail:   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke (object,intptr*,System.Exception&) [0x0000c] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:24] fail:   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method (object,intptr*) [0x00000] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:24] fail:   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs (object,System.Span`1<object>,System.Reflection.BindingFlags) [0x0007e] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:24] fail:   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x000bd] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:24] fail:   at System.Reflection.RuntimeMethodInfo.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x0007d] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:24] fail:   at Xunit.Sdk.TestInvoker`1<Xunit.Sdk.IXunitTestCase>.CallTestMethod (object) [0x0000d] in <db5648acc12e4b9da4b8c0adf0ec56ab>:0

Another Log

[15:39:10] fail: [0x05d50040-long 15:39:10.068] [MONO] /__w/1/s/src/mono/mono/mini/interp/interp.c:3737 <disabled>
                 Error
                     at cu (http://127.0.0.1:42115/_framework/dotnet.runtime.js:3:200949)
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[199]:0x14a9a
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[693]:0x4bd37
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[615]:0x4a148
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[617]:0x4a20b
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[618]:0x4a23e
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[258]:0x2525a
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[297]:0x270dc
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[3348]:0xfd83c
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[2628]:0xd00ba
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[2627]:0xd004a
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[1985]:0xaaa68
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[338]:0x28e9d
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[267]:0x2644e
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[258]:0x18d0c
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[297]:0x270dc
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[3348]:0xfd83c
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[2628]:0xd00ba
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[2627]:0xd004a
                     at http://127.0.0.1:42115/_framework/dotnet.native.wasm:wasm-function[2776]:0xd7263
                     at Object.invokeEntryPoint (http://127.0.0.1:42115/_framework/dotnet.native.js:8:69009)
                     at handleMessage (http://127.0.0.1:42115/_framework/dotnet.native.worker.js:1:2306)
                     at self.startWorker (http://127.0.0.1:42115/_framework/dotnet.native.worker.js:1:1514)
                     at run (http://127.0.0.1:42115/_framework/dotnet.native.js:8:181730)
                     at runCaller (http://127.0.0.1:42115/_framework/dotnet.native.js:8:181564)
                     at removeRunDependency (http://127.0.0.1:42115/_framework/dotnet.native.js:8:11270)
                     at http://127.0.0.1:42115/_framework/dotnet.native.js:8:14113
                     at Object.loadWasmModuleToAllWorkers (http://127.0.0.1:42115/_framework/dotnet.native.js:8:67153)
                     at receiveInstance (http://127.0.0.1:42115/_framework/dotnet.native.js:8:14082)
                     at Object.gu [as instantiateWasm] (http://127.0.0.1:42115/_framework/dotnet.runtime.js:3:234829)
[15:39:10] info: [PASS] Microsoft.Extensions.Http.DefaultHttpClientFactoryTest.Factory_CreateClient_WithExpiry_CanExpire
[15:39:10] info: [PASS] Microsoft.Extensions.DependencyInjection.HttpClientFactoryServiceCollectionExtensionsTest.AddHttpClient_WithTypedClient_AndDelegate_ConfiguresNamedClient
[15:39:10] fail: 
[15:39:10] fail: ".NET Long Running Task" tid=0x5d50040 this=0x257dd70 , thread handle : 0x4cf3d50, state : not waiting
[15:39:10] fail:   at <unknown> <0xffffffff>
[15:39:10] fail:   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke (object,intptr*,System.Exception&) [0x0000c] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:10] fail:   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method (object,intptr*) [0x00000] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:10] fail:   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs (object,System.Reflection.BindingFlags) [0x00024] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:10] fail:   at System.Reflection.RuntimeMethodInfo.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x0005b] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:10] fail:   at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in <58a57e6b50e74990b5e98f755629bb6f>:0
[15:39:10] fail:   at Xunit.Sdk.TestInvoker`1<Xunit.Sdk.IXunitTestCase>.CallTestMethod (object) [0x00000] in <db5648acc12e4b9da4b8c0adf0ec56ab>:0
[15:39:10] fail:   at Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_0/<<InvokeTestMethodAsync>b__1>d<Xunit.Sdk.IXunitTestCase>.MoveNext () [0x00125] in <db5648acc12e4b9da4b8c0adf0ec56ab>:0

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=636336
Build error leg or test failing:

Error Message

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

{
  "ErrorMessage": "at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=636336
Error message validated: [at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/9/2024 5:57:07 PM UTC

Report

Build Definition Test Pull Request
858887 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Channels.Tests.WorkItemExecution #108401
857266 dotnet/runtime WasmTestOnFirefox-MT-System.Drawing.Primitives.Tests.WorkItemExecution #104097
849193 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Extensions.Http.Tests.WorkItemExecution #108188
847017 dotnet/runtime WasmTestOnChrome-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution #107769
844600 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.MetadataLoadContext.Tests.WorkItemExecution #108924
843225 dotnet/runtime WasmTestOnChrome-MT-System.Threading.Tasks.Dataflow.Tests.WorkItemExecution #108731
828228 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Tests.WorkItemExecution #108535
827681 dotnet/runtime WasmTestOnChrome-MT-System.IO.FileSystem.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 8
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm labels Apr 9, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Apr 9, 2024
Copy link
Contributor

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

@pavelsavara pavelsavara changed the title [browser][MT] [browser][MT] fail in System.Reflection.RuntimeMethodInfo.InternalInvoke Apr 9, 2024
@pavelsavara
Copy link
Member Author

@kg any ideas what this is or what would be next step to investigate ?

@kg
Copy link
Member

kg commented Apr 9, 2024

That error message pattern is probably too broad, I think it will match almost any wasm failure.

@pavelsavara
Copy link
Member Author

Log

[21:11:08] warn: [0x01573b30-dpty 21:11:08.317] [MONO] Can't find custom attr constructor image: System.ComponentModel.TypeConverter.dll mtoken: 0x0a0003c5 due to: Could not load file or assembly 'System.Runtime.Loader, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
[21:11:08] fail: [0x01573b30-dpty 21:11:08.368] [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1673, condition `is_ok (error)' not met, function:mono_assembly_load_friends, Could not load file or assembly 'System.Runtime.Loader, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
                 
                 Wl<@mono_wasm_synchronization_context_pump (http://127.0.0.1:37751/_framework/dotnet.runtime.js:3:199500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

3 participants