Skip to content

Unhelpful GDI+ Generic error in System.Drawing.Common #54946

@djthegr8

Description

@djthegr8

Description

Linked to #49275

When trying to use GDI+ methods in Linux (specifically FillPie) I'm getting Generic GDI+ Error
This works fine in Windows and fails in Linux.

Configuration

  • Which version of .NET is the code running on? 5.0.4
  • What OS and version, and what distro if applicable? Ubuntu 16
  • What is the architecture (x64, x86, ARM, ARM64)? x64
  • Do you know whether it is specific to that configuration? yes

Other information

Error:

System.AggregateException: One or more errors occurred. (A generic error occurred in GDI+.)
 ---> System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
   at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.FillPie(Brush brush, Single x, Single y, Single width, Single height, Single startAngle, Single sweepAngle)
   at System.Drawing.Graphics.FillPie(Brush brush, Rectangle rect, Single startAngle, Single sweepAngle)
   at ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions