This project has moved and is read-only. For the latest updates, please go here.

IIQ file format crashing video driver

Dec 2, 2016 at 4:41 PM

I came across an interesting situation. A few of my co-workers ran the code I wrote against an .iiq file (!I4hTFCrQ!hKbRHNQXwy0HxOv3xqBHS47TgvkOL90Ffhc2kX8ICwc). On 2 different computers, they get a warning from windows that their display driver crashed and then repaired itself. It doesn't seem like it's causing the program to crash in any way, but it does cause a conversion call to MagickImage.ToBitmap() to fail and return a black image.

Some initial searches on the internet seems to indicate that it may be tying up too much resource / slowing down the display frame buffer, so Windows is restarting the display driver. Is that something that you've seen? And what would be a good way to mitigate this type of error?

Message from windows event log:
Display driver nvlddmkm stopped responding and has successfully recovered. Event ID 4101
Dec 7, 2016 at 5:30 PM
I think this has to do with OpenCL. I made some changes yesterday to make sure dcraw (that is used to read the IIQ file) is properly initialized. At the moment disabling OpenCL in Magick.NET will not disable OpenCL in the dcraw executable. This will be fixed in the next release and I don't have a proper workaround for the current situation.