Magick.NET unable to find the required bin file

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
Keith.Vinson
Posts: 22
Joined: 2017-08-30T12:59:12-07:00
Authentication code: 1151

Magick.NET unable to find the required bin file

Post by Keith.Vinson »

Hi all,
On some machines when the try and use Magick.NET we get the following exception "unable to open file c:\...\AppData\Local\ImageMagick\magick_opencl_Intel(R)_Iris(TM)_Graphics_6100_2443330f_64.bin".
Just for fun I copied the latest bin file from my machine (magick_opencl_Redwood_6b16657e_64.bin) to their test machine


Here's the full error They received:
2018-03-16 19:12:18 Error: Batch 1! Operation: OpusObjectManagerNS.ThumbnailType, Error: IPS has thrown an exception. Inner Exception: 2018-03-16T19:12:18+02:00 0:54.447 4.609u 7.0.7 Exception ImageProcessingServer.exe[9260]: blob.c/FileToBlob/1304/Exception
unable to open file 'C:\Users\Ted KharkivTeam\AppData\Local\ImageMagick\magick_opencl_Intel(R)_Iris(TM)_Graphics_6100_2443330f_64.bin': No such file or directory.

When we look in the directory we do not see any bin files like we do on machines that work correctly.

Any ideas as to what is going on?

Thanks
Last edited by Keith.Vinson on 2018-03-16T12:06:33-07:00, edited 3 times in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Magick.NET unable to find the imagemagick.dll

Post by fmw42 »

Perhaps you should help the NET developer and say which platforms work and which do not. Are they all the same versions of Magick.NET? Please give as much information as you can to help the developer.
Keith.Vinson
Posts: 22
Joined: 2017-08-30T12:59:12-07:00
Authentication code: 1151

Re: Magick.NET unable to find the imagemagick.dll

Post by Keith.Vinson »

Yes, I'm using the latest version as provided by NuGet Magick.NET-Q8-AnyCPU version 7.4.3.0.

It works fine on my machine, and if you look in the appdata folder, I see that my machine uses this file:
c:\...\AppData\Local\ImageMagick\magick_opencl_Redwood_6b16657e_64.bin

On another machine ImageMagick is looking for this file (which it doesn't find)
C:\...\AppData\Local\ImageMagick\magick_opencl_Intel(R)_Iris(TM)_Graphics_6100_2443330f_64.bin

The only file found in the folder is the XML config (ImagemagickOpenCLDeviceProfile.xml) file which contain the following lines...
<devices>
<device name="CPU" score="13.67"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) Iris(TM) Graphics 6100" version="20.19.15.4835" maxClockFrequency="1100" maxComputeUnits="48" score="0.1707"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz" version="5.2.0.10094" maxClockFrequency="3100" maxComputeUnits="4" score="1.032"/>
</devices>
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Magick.NET unable to find the required bin file

Post by fmw42 »

I do not know much about this, but OpenCL can only be used on certain graphics cards. I do not know the list of approved ones.
Keith.Vinson
Posts: 22
Joined: 2017-08-30T12:59:12-07:00
Authentication code: 1151

Re: Magick.NET unable to find the required bin file

Post by Keith.Vinson »

This particular machine is one of Intel's NUCs. It only has their embedded graphic chipset available, which one though I'm not sure.
Do you know how one can control which optimizations ImageMagic uses. Hopefully from code if possible.

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Magick.NET unable to find the required bin file

Post by snibgo »

The ./configure option "--enable-opencl" is used to enable OpenCL.

As a general rule, if OpenCL is enabled but fails to work, IM should fall back to using CPU code. A developer may need to look at this. It would help them if you paste a minimal program that shows the problem.
snibgo's IM pages: im.snibgo.com
Keith.Vinson
Posts: 22
Joined: 2017-08-30T12:59:12-07:00
Authentication code: 1151

Re: Magick.NET unable to find the required bin file

Post by Keith.Vinson »

OK, when the folks having trouble are back in their offices on Monday I will try some of the Magick.NET sample programs to see if I can reproduce the issue outside of our main program. If so I'll post more when I have an update...

Cheers
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Magick.NET unable to find the required bin file

Post by dlemstra »

Could you post some debugging logging (or provide a link to it since it can get pretty big) ? Looking at the source code I don't understand how you could get this exception. You can find info about debug logging here: https://github.com/dlemstra/Magick.NET/ ... rmation.md
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Keith.Vinson
Posts: 22
Joined: 2017-08-30T12:59:12-07:00
Authentication code: 1151

Re: Magick.NET unable to find the required bin file

Post by Keith.Vinson »

Hi All,
I think I might have gotten around the missing bin file error.
We have recently switched some parts of our program to 64 bits and I had not set the VC++ x64 bit libraries as a prerequisite.
In the latest installer we fix that omission, so now when we perform the same test the inner exception is no longer being thrown by Magick.NET.
On the machine in question I have left the full Image Magic logging active, so if the error returns I should be able to get you the debug log.
I'll reopen the issue if the error returns.

Thanks for your help...
Post Reply