Skip to content

PlatformNotSupportedException thrown for System.ComponentModel.TypeDescriptor.NodeFor #90311

Closed

Description

@steveharter

Error when running /azp run runtime-extra-platforms
windows.10.amd64.android.open

Several errors like:

  Starting:    System.ComponentModel.TypeConverter.Tests (parallel test collections = on, max threads = 2)
    System.ComponentModel.Tests.PropertyDescriptorTests.PropertyDescriptorCanBeCreatedThatAccessesNonPublicPropertyOnAssociatedDesigner [FAIL]
      System.PlatformNotSupportedException : Operation is not supported on this platform.
      Stack Trace:
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(1545,0): at System.ComponentModel.TypeDescriptor.NodeFor(Object instance, Boolean createDelegator)
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(1509,0): at System.ComponentModel.TypeDescriptor.NodeFor(Object instance)
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(892,0): at System.ComponentModel.TypeDescriptor.GetDescriptor(Object component, Boolean noCustomTypeDesc)
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(1299,0): at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(1242,0): at System.ComponentModel.TypeDescriptor.GetProperties(Object component, Boolean noCustomTypeDesc)
        /_/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs(1232,0): at System.ComponentModel.TypeDescriptor.GetProperties(Object component)
        /_/src/libraries/System.ComponentModel.TypeConverter/tests/PropertyDescriptorTests.cs(221,0): at System.ComponentModel.Tests.PropertyDescriptorTests.PropertyDescriptorCanBeCreatedThatAccessesNonPublicPropertyOnAssociatedDesigner()
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "at System.ComponentModel.TypeDescriptor.NodeFor",
  "BuildRetry": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974
Error message validated: at System.ComponentModel.TypeDescriptor.NodeFor
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/10/2023 1:46:54 PM UTC

Report

Build Definition Test Pull Request
374116 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport
373453 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport
373115 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90519
372849 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90519
372550 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport
372445 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90270
372307 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
372186 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport
372071 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
371961 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90023
371811 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport
371518 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
371313 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90413
370857 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
370244 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
369565 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90304
369870 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #89712
369604 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90150
369496 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
369482 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90298
369160 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90199
368974 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export #90119
368875 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export
368230 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90184
368204 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90225
367894 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.CanExport #90150
362691 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Export

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 26 27

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    runtime-monospecific to the Mono runtime
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Aug 10, 2023
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Aug 10, 2023
  3. added this to the 8.0.0 milestone on Aug 10, 2023
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 10, 2023
  5. ericstj commented on Aug 11, 2023

    @ericstj
    Member

    @JeremyKuhne it looks like this is regression from f43b0c1

    else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
    && ComWrappers.TryGetComInstance(instance, out nint unknown))

    Looks like these are running Mono on Windows. I guess mono runtime doesn't implement this. Can we get this condition updated to exclude Mono runtime?

  6. ericstj commented on Aug 14, 2023

    @ericstj
    Member

    Let's just wrap TryGetComInstance in a try/catch(PNSE)

  7. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 14, 2023
  8. added a commit that references this issue on Aug 14, 2023
    fe931fb
  9. assigned and unassigned on Aug 15, 2023
  10. added a commit that references this issue on Aug 15, 2023
    762030c
  11. added a commit that references this issue on Aug 15, 2023
    325eeb7
  12. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 15, 2023
  13. added a commit that references this issue on Aug 15, 2023
    cc9145b
  14. added a commit that references this issue on Aug 16, 2023
    b33c596
  15. ghost locked as resolved and limited conversation to collaborators on Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions