You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I am using the latest version of Magick.NET
I have searched open and closed issues to ensure it has not already been reported
Description
Using Q8 AnyCPU version installed from nuget, sample program crashes at magick.Write(). (It cannot be caught even adding [HandleProcessCorruptedStateExceptions])
No problem with Q16 version.
Steps to Reproduce
Save attached file as indexed8.png.
using ImageMagick;
using System;
using System.IO;
using System.Runtime.ExceptionServices;
namespace ConsoleApp1
{
class Program
{
[HandleProcessCorruptedStateExceptions]
static void Main(string[] args)
{
using (var input = new MemoryStream())
{
try
{
using (var output = new MemoryStream())
{
using (var magick = new MagickImage("../../indexed8.png"))
{
magick.RenderingIntent = RenderingIntent.Perceptual;
magick.BlackPointCompensation = true;
//if (magick.GetColorProfile() == null)
// magick.AddProfile(ColorProfile.SRGB);
//magick.RemoveProfile("icc");
magick.ColorSpace = ColorSpace.Gray;
magick.ColorAlpha(MagickColors.White);
magick.Write(output, MagickFormat.Png00);
}
}
}
catch (Exception e)
{
Console.Out.WriteLine(e.StackTrace);
}
}
}
}
}
System Configuration
Magick.NET version: 7.14.2.0 Q8 AnyCPU
Environment (Operating system, version and so on): Windows 7 Professional 64 bit (version 6.1 Build 7601: Service Pack 1)
Additional information: Visual Studio Enterprise 2017 (version 15.9.15). Compiled with ,NET Framework 4.7
The text was updated successfully, but these errors were encountered:
t246246
changed the title
Application crashed at magick.Write() in Q8 build.
Application crashed at MagickImage.Write() in Q8 build.
Aug 20, 2019
It looks like you found a bug. Not sure what is causing this but I see that something is happening inside our PNG writer. Now I will need to figure out if this is our code or the PNG library.
Edit: Found the problem (in ImageMagick) and now I will need to figure out how to fix this.
Prerequisites
Description
Using Q8 AnyCPU version installed from nuget, sample program crashes at magick.Write(). (It cannot be caught even adding [HandleProcessCorruptedStateExceptions])
No problem with Q16 version.
Steps to Reproduce
Save attached file as indexed8.png.
System Configuration
The text was updated successfully, but these errors were encountered: