Page 1 of 1

Magick.NET unable to find the required bin file

Posted: 2018-03-16T10:01:48-07:00
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

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

Posted: 2018-03-16T10:17:11-07:00
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.

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

Posted: 2018-03-16T11:51:16-07:00
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>

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

Posted: 2018-03-16T12:18:54-07:00
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.

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

Posted: 2018-03-16T13:35:13-07:00
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

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

Posted: 2018-03-16T13:49:24-07:00
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.

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

Posted: 2018-03-16T16:25:02-07:00
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

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

Posted: 2018-03-16T16:58:22-07:00
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

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

Posted: 2018-03-19T12:34:43-07:00
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...