ZKWeb.System.Drawing icon indicating copy to clipboard operation
ZKWeb.System.Drawing copied to clipboard

System.OutOfMemoryException throws when i tried to run the code on ubuntu

Open Milkitic opened this issue 7 years ago • 1 comments

Hello. The project itself is an ASP.NET Core Application, and I wish to draw some images with more code. On Windows it runs normally when I start the program with "dotnet xxxx.dll" but on Ubuntu it was crash while the systemis available for about 1316000KB memory. I tried to reduce the code a little and it runs normally. But how to solve it if i want to keep the code length?

System.OutOfMemoryException: Not enough memory to complete operation [GDI+ status: OutOfMemory]
   at System.DrawingCore.GDIPlus.CheckStatus(Status status)
   at System.DrawingCore.Graphics.DrawLine(Pen pen, PointF pt1, PointF pt2)
   at Daylily.Plugin.Command.PpPlus.Draw(String user, Dictionary`2 d_pfmance)
   at Daylily.Plugin.Command.PpPlus.Execute(String params, String user, String group, Boolean isRoot)

Milkitic avatar Mar 27 '18 10:03 Milkitic

Please try the official system.drawing package for .net core, soon it will replace this fork. https://www.nuget.org/packages/System.Drawing.Common

303248153 avatar Mar 28 '18 00:03 303248153