Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kotlarmilos opened this issue Nov 25, 2024 · 0 comments
Labels
area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-windows
Milestone

Comments

@kotlarmilos
Copy link
Member

kotlarmilos commented Nov 25, 2024

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
878000 dotnet/runtime System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateAgainstBlobs

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1
@kotlarmilos kotlarmilos added area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-windows labels Nov 25, 2024
@kotlarmilos kotlarmilos added this to the 10.0.0 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-windows
Projects
None yet
Development

No branches or pull requests

1 participant