Skip to content

Test failure: System.ComponentModel.Tests.TypeDescriptorTests.TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes #124031

@shimingsg

Description

@shimingsg

Failed in: runtime-coreclr crossgen2 20260203.2

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.<TypeDescriptor_WithCustomProvider_UnloadsUnloadableTypes>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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions