Test failure: System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
**Failed in:** [runtime-coreclr crossgen2 20260203.2](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1279220)
**Failed tests:**
```
net11.0-windows-Release-x64-TestReadyToRun_Release-Windows.Amd64.Server2022.Open
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-windows-Release-x64-TestReadyToRun_Release-Windows.Server2025.Amd64.Open
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-windows-Release-x64-TestReadyToRun_Release-Windows.11.Amd64.Client.Open
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-windows-Release-x64-TestReadyToRun_Release-(Windows.Nano.1809.Amd64.Open)windows.10.amd64.serverrs5.open@mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-osx-Release-x64-TestReadyToRun_Release-OSX.15.Amd64.Open
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-linux-Release-x64-TestReadyToRun_Release-Ubuntu.2204.Amd64.Open
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-linux-Release-x64-TestReadyToRun_Release-(AzureLinux.3.0.Amd64.Open)AzureLinux.3.Amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-helix-amd64
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
net11.0-linux-Release-x64-TestReadyToRun_Release-(Centos.10.Amd64.Open)AzureLinux.3.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream-10-helix-amd64
- System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes
```
**Error message:**
```
System.InvalidCastException : Unable to cast object of type 'UnloadableTestTypes.SimpleTypeDescriptionProvider' to type 'System.ComponentModel.TypeDescriptionProvider'.
```
**Stack trace:**
```
at System.ComponentModel.Tests.TypeDescriptorTests.<>c.b__94_0(Assembly assembly) in /_/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs:line 1644
at System.ComponentModel.Tests.TypeDescriptorTests.ExecuteAndUnload(String assemblyfile, Action`1 assemblyAction, WeakReference& alcWeakRef) in /_/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs:line 1573
at System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes() in /_/src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs:line 1630
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
```
Contributor guide
Assessment
This issue has not been assessed yet.