Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Insufficient memory (case 4) [1421]

$
0
0
Hi,

I'm using Magick.net in a very high volume multi threaded photo processing application. I see random errors like below. This usually on photos that are larger, I have to deal with JPG files that are sometimes up to 40 megabytes in file size. But, i can see errors like this even on 5 megabyte files. The servers have plenty of memory. Is there anything i can do to avoid this other than forcing the application to only process one photo at a time?

I am using Magick.Net-Q16-AnyCPU version 7.0.3.902


ImageMagick.MagickCorruptImageErrorException\",\"Message\":\"Insufficient memory (case 4)
at ImageMagick.MagickImage.NativeMagickImage.WriteBlob(MagickSettings settings, UIntPtr& length)
at ImageMagick.MagickImage.Write(Stream stream)
Comments: It looks like you are reading from a stream. Would it be possible to read from a file? I don't know which part of the code is complaining about this but it looks like you are running into problems when the stream has to be send allocated inside the unmanaged code. I am planning to see if I can change the ImageMagick code to add support for better reading and writing of streams: https://github.com/dlemstra/Magick.NET/issues/35. For now I would advise you to switch to a file instead.

Viewing all articles
Browse latest Browse all 1011

Trending Articles