Skip to content

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

@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": "System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateAgainstBlobs [FAIL]",
  "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
1314645 dotnet/runtime System.Reflection.Context.Tests.CustomModuleTests.ResolveField_ReturnsProjectedField
1314668 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125014
1314651 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125016
1314633 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124663
1314624 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution
1314556 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124375
1314583 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125004
1314564 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125012
1314573 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124125
1314553 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124838
1314549 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124408
1314502 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125011
1314488 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124999
1314477 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125010
1314469 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125004
1314464 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124492
1314453 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124994
1314427 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #123819
1314416 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124997
1314391 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124225
1314367 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124492
1314361 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124408
1314358 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125001
1314296 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124842
1314324 dotnet/runtime System.Reflection.Context.Tests.MoreConstructorTests.GetMethodBody_ReturnsProjectedBody
1314350 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124994
1314345 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124725
1314333 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #125002
1314307 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution
1314193 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124995
1314142 dotnet/runtime System.Reflection.Context.Tests.WorkItemExecution
1313953 dotnet/runtime WasmTestOnChrome-MONO-ST-System.Text.RegularExpressions.Tests.WorkItemExecution #124995
1313658 dotnet/runtime System.Reflection.Context.Tests.FinalCoverageTests2.ExceptionHandlingClause_WithFilter_HasFilterOffset
1313867 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\ReversePInvokeManaged\ReversePInvokeTest\ReversePInvokeTest.cmd #124923
1313803 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd #124624
1312618 dotnet/runtime System.Reflection.Context.Tests.CustomModuleTests.ResolveField_ReturnsProjectedField
1310820 dotnet/runtime Loader/classloader/TypeInitialization/CircularCctors/CircularCctorFourThreadsBFI/CircularCctorFourThreadsBFI.dll #124883
1310552 dotnet/runtime Loader/classloader/TypeInitialization/CircularCctors/CircularCctorFourThreadsBFI/CircularCctorFourThreadsBFI.dll #124883
1310305 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd #122533
1305791 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\ReversePInvokeManaged\ReversePInvokeTest\ReversePInvokeTest.cmd #124758
1305200 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\DelegatePInvoke\DelegatePInvokeTest\DelegatePInvokeTest.cmd
1303391 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd #124567
1301130 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\ReversePInvokeManaged\ReversePInvokeTest\ReversePInvokeTest.cmd #124003
1297981 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\DelegatePInvoke\DelegatePInvokeTest\DelegatePInvokeTest.cmd #122761
1296980 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\ReversePInvokeManaged\ReversePInvokeTest\ReversePInvokeTest.cmd #123925
1296323 dotnet/runtime System.Reflection.Tests.ReflectionCacheTests.InvokeClearCache_NoExceptions #123033
1296086 dotnet/runtime WasmTestOnChrome-MONO-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1295545 dotnet/runtime Interop\MonoAPI\MonoMono\Thunks\Thunks.cmd #123925
1295517 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\ReversePInvokeManaged\ReversePInvokeTest\ReversePInvokeTest.cmd #124301
1294357 dotnet/runtime System.Runtime.InteropServices.Tests.MarshalAsAttributeTests.SafeArrayParameter_ZeroLengthUserDefinedSubType_DoesNotThrow #124408
1292731 dotnet/runtime System.Runtime.InteropServices.Tests.MarshalAsAttributeTests.SafeArrayParameter_ZeroLengthUserDefinedSubType_DoesNotThrow #124355
1288541 dotnet/runtime Interop\MonoAPI\MonoMono\InstallEHCallback\InstallEHCallback.cmd #123830
1287945 dotnet/runtime Interop\PInvoke\Variant\VariantTestComWrappers\VariantTestComWrappers.cmd #124232
1285855 dotnet/runtime WasmTestOnChrome-MONO-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1285404 dotnet/runtime WasmTestOnChrome-MONO-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1285399 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd #124032
1282724 dotnet/runtime WasmTestOnChrome-MONO-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1281407 dotnet/runtime WasmTestOnChrome-CLR-ST-System.ComponentModel.EventBasedAsync.Tests.WorkItemExecution #123860
1281227 dotnet/runtime WasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1280449 dotnet/runtime Interop\MonoAPI\MonoMono\Thunks\Thunks.cmd #123779
1280384 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd #123921
1279487 dotnet/runtime WasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1278895 dotnet/runtime WasmTestOnChrome-ST-System.Net.Primitives.Pal.Tests.WorkItemExecution #123962
1277685 dotnet/runtime WasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution #122093
1276866 dotnet/runtime Interop\MonoAPI\MonoMono\InstallEHCallback\InstallEHCallback.cmd #123744
1276364 dotnet/runtime Interop\StructMarshalling\ReversePInvoke\MarshalExpStruct\DelegatePInvoke\DelegatePInvokeTest\DelegatePInvokeTest.cmd #123888
1275925 dotnet/runtime Interop\PInvoke\Variant\VariantTestBuiltInComDisabled\VariantTestBuiltInComDisabled.cmd

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
32 41 67

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions