runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[wasm][mt] fail: System.TypeLoadException: Could not load type of field"

Open lewing opened this issue 1 year ago • 3 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=685548 Build error leg or test failing: WasmTestOnFirefox-MT-Microsoft.Extensions.FileSystemGlobbing.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/102489

Error Message

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

{
  "ErrorMessage": "fail: System.TypeLoadException: Could not load type of field",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
724459 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Uri.Unit.Tests.WorkItemExecution dotnet/runtime#103915
724468 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Bcl.Numerics.Tests.WorkItemExecution dotnet/runtime#104176
724194 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Bcl.Numerics.Tests.WorkItemExecution dotnet/runtime#103752
723835 dotnet/runtime WasmTestOnFirefox-MT-System.Formats.Asn1.Tests.WorkItemExecution dotnet/runtime#104141
719238 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.InvokeInterpreted.Tests.WorkItemExecution dotnet/runtime#102403
717150 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Uri.ExtendedFunctional.Tests.WorkItemExecution dotnet/runtime#103837
712828 dotnet/runtime WasmTestOnFirefox-MT-System.Composition.TypedParts.Tests.WorkItemExecution dotnet/runtime#103574
712064 dotnet/runtime WasmTestOnFirefox-MT-System.Memory.Data.Tests.WorkItemExecution dotnet/runtime#102670
705570 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.CSharp.Tests.WorkItemExecution dotnet/runtime#103332
705145 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.Misc.Tests.WorkItemExecution dotnet/runtime#103341
704974 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.Events.Tests.WorkItemExecution dotnet/runtime#103037
704840 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Serialization.Json.Tests.WorkItemExecution
701296 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.TreeManipulation.Tests.WorkItemExecution dotnet/runtime#103189
697168 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Serialization.Json.ReflectionOnly.Tests.WorkItemExecution dotnet/runtime#103037

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 6 14

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=685548 Error message validated: [fail: System.TypeLoadException: Could not load type of field] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 5/28/2024 2:31:27 PM UTC

lewing avatar May 23 '24 16:05 lewing

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

@lewing the ordering in your ErrorMessage array matters. In the log geckodriver INFO occurs before fail: System.TypeLoadException so the order in the query needs to swap. I fixed it.

ericstj avatar May 23 '24 17:05 ericstj

similar to https://github.com/dotnet/runtime/issues/102762

lewing avatar May 28 '24 15:05 lewing

This hasn't been hit in a couple of weeks, keeping open for now but moving to 10

lewing avatar Aug 14 '24 22:08 lewing

Log

System.TypeLoadException: Could not load type of field 'Mono.Options.OptionSet:ValueOption' (3) due to: 
Could not resolve type with token 0100002f from typeref 
(expected class 'System.Text.RegularExpressions.Regex' in assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51') assembly:netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 type:System.Text.RegularExpressions.Regex member:(null)

Do we need memory barrier after we load the assembly from fetch ?

pavelsavara avatar Sep 24 '24 09:09 pavelsavara

I thought lot of those issues are only visible on FF, but here we have Chrome specimen.

Log

[09:18:53] fail: [0x000ebcc8--UI- 09:18:53.626] MONO_WASM: Could not set up parent class, due to: Could not load type of field 'Xunit.Xunit2Discoverer:<TestFrameworkAssemblyName>k__BackingField' (7) due to: Could not load file or assembly 'System.Reflection, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:xunit.runner.utility.netcoreapp10.dll type:Xunit2Discoverer member:(null)
                    at Xunit.XunitFrontController.EnsureInitialized()
                    at Xunit.XunitFrontController.get_InnerController()
                    at Xunit.XunitFrontController.Find(Boolean includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions)
                    at Microsoft.DotNet.XHarness.TestRunners.Xunit.XUnitTestRunner.Run(Assembly assembly, String assemblyPath)

That means it's our problem, not FF

pavelsavara avatar Dec 09 '24 12:12 pavelsavara