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

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

Open
lewing opened this issue May 23, 2024 · 6 comments
Open

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

lewing opened this issue May 23, 2024 · 6 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono 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 os-browser Browser variant of arch-wasm
Milestone

Comments

@lewing
Copy link
Member

lewing commented May 23, 2024

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: #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
897471 dotnet/runtime WasmTestOnChrome-MT-System.Diagnostics.DiagnosticSource.Switches.Tests.WorkItemExecution #110779
891249 dotnet/runtime WasmTestOnChrome-MT-Microsoft.Extensions.Logging.Tests.WorkItemExecution #110477
889289 dotnet/runtime WasmTestOnChrome-MT-System.IO.Packaging.Tests.WorkItemExecution
881617 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Thread.Tests.WorkItemExecution
881479 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution #109978
877880 dotnet/runtime WasmTestOnFirefox-MT-System.Threading.Overlapped.Tests.WorkItemExecution #110119
880906 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeReader.Tests.WorkItemExecution #110117
881304 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.SDMSample.Tests.WorkItemExecution
881227 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeReader.Tests.WorkItemExecution #110232
881265 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution #110234
881162 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution #110229
880651 dotnet/runtime WasmTestOnFirefox-MT-System.Text.Encoding.Extensions.Tests.WorkItemExecution
879438 dotnet/runtime WasmTestOnFirefox-MT-System.Resources.Reader.Tests.WorkItemExecution #109584
880336 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.RuntimeInformation.Tests.WorkItemExecution #110196
880415 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Xml.Tests.WorkItemExecution #110186
880450 dotnet/runtime WasmTestOnFirefox-MT-System.Net.WebSockets.Client.Tests.WorkItemExecution #110208
880112 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.Properties.Tests.WorkItemExecution
878663 dotnet/runtime WasmTestOnFirefox-MT-System.IO.Hashing.Tests.WorkItemExecution #110156
879885 dotnet/runtime WasmTestOnChrome-MT-System.Collections.NonGeneric.Tests.WorkItemExecution #108731
879888 dotnet/runtime WasmTestOnFirefox-MT-System.Reflection.Tests.WorkItemExecution #108886
879584 dotnet/runtime WasmTestOnFirefox-MT-Common.Tests.WorkItemExecution #110117
879353 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Xml.Tests.WorkItemExecution
875301 dotnet/runtime WasmTestOnFirefox-MT-System.Private.Uri.ExtendedFunctional.Tests.WorkItemExecution #109861
878834 dotnet/runtime WasmTestOnFirefox-MT-System.Data.DataSetExtensions.Tests.WorkItemExecution #109996
878201 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.Properties.Tests.WorkItemExecution #109584
871580 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.xNodeReader.Tests.WorkItemExecution #109895
878139 dotnet/runtime WasmTestOnFirefox-MT-System.Xml.Linq.SDMSample.Tests.WorkItemExecution
877992 dotnet/runtime WasmTestOnFirefox-MT-System.Linq.Queryable.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 28

Known issue validation

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

@lewing lewing added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab labels May 23, 2024
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 23, 2024
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label May 23, 2024
@lewing lewing added this to the 9.0.0 milestone May 23, 2024
@ericstj
Copy link
Member

ericstj commented May 23, 2024

@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 lewing changed the title Firefox MT typeload exceptions [wasm][mt] fail: System.TypeLoadException: Could not load type of field" May 28, 2024
@lewing
Copy link
Member Author

lewing commented May 28, 2024

similar to #102762

@lewing lewing removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 14, 2024
@lewing lewing modified the milestones: 9.0.0, 10.0.0 Aug 14, 2024
@lewing
Copy link
Member Author

lewing commented Aug 14, 2024

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

@pavelsavara
Copy link
Member

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
Copy link
Member

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

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 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 os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants