dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.36k stars 4.74k forks source link

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

Open lewing opened 5 months ago

lewing commented 5 months ago

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": ["WasmTestRunner","fail","Could not load type of field"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
870865 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeReader.Tests.WorkItemExecution dotnet/runtime#109638
869781 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109814
869615 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Channels.Tests.WorkItemExecution
869464 dotnet/runtime WasmTestOnFirefox-MT-System.Resources.Reader.Tests.WorkItemExecution dotnet/runtime#109638
869434 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109766
869235 dotnet/runtime WasmTestOnChrome-MT-System.Net.Mail.Unit.Tests.WorkItemExecution dotnet/runtime#109801
869149 dotnet/runtime WasmTestOnFirefox-MT-System.Security.SecureString.Tests.WorkItemExecution dotnet/runtime#109363
868930 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.Extensions.Tests.WorkItemExecution dotnet/runtime#109137
868738 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109776
868709 dotnet/runtime WasmTestOnFirefox-MT-System.ComponentModel.Annotations.Tests.WorkItemExecution dotnet/runtime#109772
868643 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#109769
868566 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.TypeExtensions.Tests.WorkItemExecution dotnet/runtime#109638
866912 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Intrinsics.Tests.WorkItemExecution dotnet/runtime#109707
866509 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Tasks.Dataflow.Tests.WorkItemExecution dotnet/runtime#109540
865840 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Thread.Tests.WorkItemExecution dotnet/runtime#109678
866096 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Json.Unit.Tests.WorkItemExecution dotnet/runtime#109137
865989 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Serialization.Schema.Tests.WorkItemExecution dotnet/runtime#109638
865986 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#109684
865898 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Schema.Extensions.Tests.WorkItemExecution
865724 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution
865058 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#109651
864790 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Xml.Tests.WorkItemExecution dotnet/runtime#109634
864427 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.ThreadPool.Tests.WorkItemExecution
863922 dotnet/runtime WasmTestOnFirefox-MT-System.Memory.Data.Tests.WorkItemExecution
863764 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.RateLimiting.Tests.WorkItemExecution dotnet/runtime#109584
863562 dotnet/runtime WasmTestOnFirefox-MT-System.Text.Encoding.CodePages.Tests.WorkItemExecution dotnet/runtime#109540
862974 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Schema.Extensions.Tests.WorkItemExecution
862813 dotnet/runtime WasmTestOnFirefox-MT-System.Text.RegularExpressions.Unit.Tests.WorkItemExecution dotnet/runtime#109584
862715 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.CompilerServices.Unsafe.Tests.WorkItemExecution dotnet/runtime#109544
862338 dotnet/runtime WasmTestOnFirefox-MT-System.Security.SecureString.Tests.WorkItemExecution
861682 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#108806
861209 dotnet/runtime WasmTestOnFirefox-MT-System.Composition.Convention.Tests.WorkItemExecution dotnet/runtime#109477
861198 dotnet/runtime WasmTestOnFirefox-MT-System.Console.Tests.WorkItemExecution dotnet/runtime#109540
860443 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Xml.Tests.WorkItemExecution
860035 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109507
859673 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Extensions.FileProviders.Physical.Tests.WorkItemExecution
859273 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeBuilder.Tests.WorkItemExecution
859264 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Tasks.Parallel.Tests.WorkItemExecution dotnet/runtime#108469
859186 dotnet/runtime WasmTestOnFirefox-MT-System.Data.DataSetExtensions.Tests.WorkItemExecution dotnet/runtime#109363
858983 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.RuntimeInformation.Tests.WorkItemExecution dotnet/runtime#108469
858887 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Schema.Extensions.Tests.WorkItemExecution dotnet/runtime#108401
858785 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.Tests.WorkItemExecution
858426 dotnet/runtime WasmTestOnChrome-MT-System.ObjectModel.Tests.WorkItemExecution dotnet/runtime#109447
858442 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.Tests.WorkItemExecution dotnet/runtime#109261
858382 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Tasks.Extensions.Tests.WorkItemExecution dotnet/runtime#109232
858306 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Serialization.Json.ReflectionOnly.Tests.WorkItemExecution
858226 dotnet/runtime WasmTestOnChrome-MT-System.Console.Manual.Tests.WorkItemExecution dotnet/runtime#109413
857959 dotnet/runtime WasmTestOnFirefox-MT-System.Diagnostics.Tools.Tests.WorkItemExecution
857523 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Tasks.Parallel.Tests.WorkItemExecution dotnet/runtime#109278
857625 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109415
857511 dotnet/runtime WasmTestOnFirefox-MT-System.Security.SecureString.Tests.WorkItemExecution dotnet/runtime#109413
857377 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Timer.Tests.WorkItemExecution dotnet/runtime#109079
857318 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Primitives.Pal.Tests.WorkItemExecution dotnet/runtime#109406
857281 dotnet/runtime WasmTestOnFirefox-MT-System.Security.SecureString.Tests.WorkItemExecution
857266 dotnet/runtime WasmTestOnChrome-MT-System.Resources.Writer.Tests.WorkItemExecution dotnet/runtime#104097
856912 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution dotnet/runtime#109349
856935 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeReader.Tests.WorkItemExecution
856869 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Tests.WorkItemExecution dotnet/runtime#109381
856325 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Extensions.Hosting.Systemd.Tests.WorkItemExecution
856118 dotnet/runtime WasmTestOnFirefox-MT-System.Security.Cryptography.ProtectedData.Tests.WorkItemExecution dotnet/runtime#109362
854889 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.Emit.ILGeneration.Tests.WorkItemExecution
854549 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.Serialization.Primitives.Tests.WorkItemExecution dotnet/runtime#109185
853212 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.ReflectionInvokeEmit.Tests.WorkItemExecution dotnet/runtime#109221
853077 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.Axes.Tests.WorkItemExecution dotnet/runtime#109079
852881 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Extensions.Configuration.Functional.Tests.WorkItemExecution dotnet/runtime#108999
850951 dotnet/runtime WasmTestOnFirefox-MT-System.Resources.Writer.Tests.WorkItemExecution dotnet/runtime#108512
850566 dotnet/runtime WasmTestOnFirefox-MT-Microsoft.Extensions.FileSystemGlobbing.Tests.WorkItemExecution dotnet/runtime#108636
848876 dotnet/runtime WasmTestOnFirefox-MT-System.Diagnostics.TraceSource.Config.Tests.WorkItemExecution dotnet/runtime#108636
848282 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Primitives.Pal.Tests.WorkItemExecution dotnet/runtime#109053
846994 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebProxy.Tests.WorkItemExecution dotnet/runtime#108990
845889 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.Serialization.Json.Tests.WorkItemExecution dotnet/runtime#108512

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 20 71

Known issue validation

Build: :mag_right: Result validation: :warning: Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: :mag_right:" line. Validation performed at: 10/1/2024 9:46:37 AM UTC

dotnet-policy-service[bot] commented 5 months ago

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

ericstj commented 5 months ago

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

lewing commented 5 months ago

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

lewing commented 3 months ago

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

pavelsavara commented 1 month ago

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 ?