Skip to content

[mono] The type initializer for System.Drawing.DrawingCom threw an exception: Operation is not supported on this platform #110150

Open
@kotlarmilos

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=878000&view=logs&j=55625a83-07ac-525a-fb32-9d705da79581&t=ed547991-520a-5120-9a9a-8b7bdbddb033
Build error leg or test failing: System.Runtime.Serialization.Formatters.Tests

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Operation is not supported on this platform.",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Error log:

Discovered:  System.Runtime.Serialization.Formatters.Tests (found 67 of 75 test cases)
  Starting:    System.Runtime.Serialization.Formatters.Tests (parallel test collections = on [2 threads], stop on fail = off)
    System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateAgainstBlobs [FAIL]
      System.TypeInitializationException : The type initializer for 'System.Drawing.DrawingCom' threw an exception.
      ---- System.PlatformNotSupportedException : Operation is not supported on this platform.
      Stack Trace:
           at System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm)
           at System.Drawing.Bitmap..ctor(Stream stream)
        /_/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs(1357,0): at System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.SerializableObjects()+MoveNext()
        /_/src/libraries/System.Linq/src/System/Linq/ToCollection.cs(39,0): at System.Linq.Enumerable.<ToArray>g__EnumerableToArray|315_0[Object[]](IEnumerable`1 source)
        /_/src/libraries/System.Linq/src/System/Linq/ToCollection.cs(26,0): at System.Linq.Enumerable.ToArray[Object[]](IEnumerable`1 source)
        /_/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs(79,0): at System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.SerializableObjects_MemberData()
        /_/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)
        ----- Inner Stack Trace -----
           at System.Drawing.DrawingCom.InitializeComInterfaceEntry()
           at System.Drawing.DrawingCom..cctor()
   System.Runtime.Serialization.Formatters.Tests: [Long Running Test] 'System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.SerializeHugeObjectGraphs', Elapsed: 00:02:02
  Finished:    System.Runtime.Serialization.Formatters.Tests
=== TEST EXECUTION SUMMARY ===
   System.Runtime.Serialization.Formatters.Tests  Total: 167, Errors: 0, Failed: 1, Skipped: 0, Time: 150.231s
----- end Sun 11/24/2024 21:46:04.66 ----- exit code 1 ----------------------------------------------------------

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=878000
Error message validated: [Operation is not supported on this platform.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/25/2024 12:26:55 PM UTC

Report

Build Definition Test Pull Request
1031628 dotnet/runtime JIT/Regression/JitBlue/Runtime_114978/Runtime_114978/Runtime_114978.dll #115227
1031630 dotnet/runtime JIT/Regression/JitBlue/Runtime_114978/Runtime_114978/Runtime_114978.dll #115227
1029005 dotnet/runtime System.Security.Cryptography.SLHDsa.Tests.SlhDsaFactoryTests.ImportSubjectKeyPublicInfo_AlgorithmErrorsInAsn #114943
1026903 dotnet/runtime WasmTestOnFirefox-ST-System.Security.Cryptography.Tests.WorkItemExecution #114943
1024612 dotnet/runtime System.Security.Cryptography.Tests.MLKemNotSupportedTests.ImportSubjectPublicKeyInfo_NotSupported #114943
1023635 dotnet/runtime WasmTestOnChrome-ST-System.Security.Cryptography.Tests.WorkItemExecution #114943
1016049 dotnet/runtime Interop\DllImportSearchPaths\DllImportSearchPathsTest\DllImportSearchPathsTest.cmd #114651
1015564 dotnet/runtime JIT/opt/SVE/PredicateInstructions/PredicateInstructions.cmd #114438
1007936 dotnet/runtime DataContractSerializerTests.DCS_CollectionTypeInCollectibleALC #114148
1005186 dotnet/runtime System.Xml.XmlSerializer.ReflectionOnly.Tests.WorkItemExecution #114148

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 3 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions