Page 1 of 1

Reading OpenEXR in magick++ api crashing

Posted: 2010-06-28T23:09:13-07:00
by mrtm3050
Hey all,

I just compiled IM and I can do operations on EXR files ("convert image.jpg image.exr", etc.) but I dont see "openexr" in my list of delegates.

Code: Select all

-----------------------------------------------------------------------
CC            vs8
CC            vs8
COPYRIGHT     Copyright (C) 1999-2010 ImageMagick Studio LLC
COPYRIGHT     Copyright (C) 1999-2010 ImageMagick Studio LLC
DELEGATES     bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
DELEGATES     bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
HOST          windows-unknown-linux-gnu
HOST          windows-unknown-linux-gnu
LIB_VERSION   0x662
LIB_VERSION   0x662
LIB_VERSION_NUMBER 6,6,2,7
LIB_VERSION_NUMBER 6,6,2,7
NAME          ImageMagick
NAME          ImageMagick
RELEASE_DATE  2010-07-15
RELEASE_DATE  2010-07-15
VERSION       6.6.2
VERSION       6.6.2
WEBSITE       http://www.imagemagick.org
WEBSITE       http://www.imagemagick.org
I linked to all the requisite openEXR libs and headers. In the magic-conf file, I have added

Code: Select all

#define MAGICKCORE_OPENEXR_DELEGATE
I am having problems pertaining to using the magick++ api with openEXR. My demo application crashes when I try to read in a file with an EXR extension.

For ex:

Code: Select all

Image testEXR("testImage.exr");
breaks. Any ideas?

Re: Reading OpenEXR in magick++ api crashing

Posted: 2010-06-29T09:51:41-07:00
by mrtm3050
To be more clear, here are the messages I have received:

Runtime errors:

Code: Select all

An application has made an attempt to load the C runtime library incorrectly R6034
Exception error:

Code: Select all

Unhandled exception at 0x756fb727 in MultiSL.exe: Microsoft C++ exception: Magick::ErrorMissingDelegate at memory location
After running dependency walker, I get a failure to load MSVC90.dll as well as the debug version of IM_MOD_EXR.dll (which compiled with no errors and generated both the lib and dll files). Is the Debug version of IM_MOD_EXR using a different version of MSVC90.dll? Everything works fine when I switch it into Release mode.

Re: Reading OpenEXR in magick++ api crashing

Posted: 2010-06-29T10:00:02-07:00
by mrtm3050
It seems when I compile IM in debug mode, and try to run a

Code: Select all

convert "image.jpg" "image.exr"
in a window's command line, I get the same errors as above.

Re: Reading OpenEXR in magick++ api crashing

Posted: 2010-06-29T10:24:37-07:00
by magick
If you built the uninstalled version of ImageMagick, be sure to set the MAGICK_HOME environment variable. Also make sure you replace the IM_MOD_RL_exr_dll coder module with the version you compiled against OpenEXR. You may also need the OpenEXR DLL in the same folder as CORE_RL_Magick_.dll. Finally, add -debug module,configure to your command line to track where ImageMagick is looking for its configure files and coder modules.

Re: Reading OpenEXR in magick++ api crashing

Posted: 2010-07-01T08:11:27-07:00
by mrtm3050
On the command:

Code: Select all

convert -debug "Coder" convert carnival_normal.jpg carn.exr

Code: Select all

2010-07-01T07:34:38-07:00 0:00.019 0.016u 6.6.2 Coder Magick[9984]: jpeg.c/ReadP
rofile/614/Coder Profile: exif, 578 bytes
2010-07-01T07:34:38-07:00 0:00.033 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadI
PTCProfile/530/Coder Profile: iptc, 12758 bytes
2010-07-01T07:34:38-07:00 0:00.046 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadI
CCProfile/434/Coder Profile: ICC, 560 bytes
2010-07-01T07:34:38-07:00 0:00.056 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadP
rofile/614/Coder Profile: xmp, 8567 bytes
2010-07-01T07:34:38-07:00 0:00.066 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadJ
PEGImage/1121/Coder  Interlace: nonprogressive
2010-07-01T07:34:38-07:00 0:00.076 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadJ
PEGImage/1123/Coder Data precision: 8
2010-07-01T07:34:38-07:00 0:00.083 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/ReadJ
PEGImage/1125/Coder  Geometry: 3072x2048
2010-07-01T07:34:38-07:00 0:00.092 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/JPEGS
etImageQuality/739/Coder Quality: 91 (approximate)
2010-07-01T07:34:38-07:00 0:00.100 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/JPEGS
etImageSamplingFactor/829/Coder Colorspace: RGB
2010-07-01T07:34:38-07:00 0:00.107 0.031u 6.6.2 Coder Magick[9984]: jpeg.c/JPEGS
etImageSamplingFactor/856/Coder Sampling Factors: 1x1,1x1,1x1
2010-07-01T07:34:44-07:00 0:06.538 1.264u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/1782/Coder Image resolution: 240,240
2010-07-01T07:34:44-07:00 0:06.551 1.264u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/1864/Coder Interlace: non-progressive
2010-07-01T07:34:44-07:00 0:06.564 1.264u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/1922/Coder Quality: 91
2010-07-01T07:34:44-07:00 0:06.572 1.264u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/1962/Coder Input sampling-factors=1x1,1x1,1x1
2010-07-01T07:34:44-07:00 0:06.598 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2026/Coder Storage class: DirectClass
2010-07-01T07:34:44-07:00 0:06.605 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2028/Coder Depth: 8
2010-07-01T07:34:44-07:00 0:06.614 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2034/Coder Number of colors: unspecified
2010-07-01T07:34:44-07:00 0:06.624 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2036/Coder JPEG data precision: 8
2010-07-01T07:34:44-07:00 0:06.629 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2090/Coder Image colorspace is RGB
2010-07-01T07:34:44-07:00 0:06.634 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
JPEGImage/2092/Coder Sampling factors: 1x1,1x1,1x1
2010-07-01T07:34:44-07:00 0:06.641 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
Profile/1593/Coder 8bim profile: 12758 bytes
2010-07-01T07:34:44-07:00 0:06.647 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
Profile/1593/Coder exif profile: 578 bytes
2010-07-01T07:34:44-07:00 0:06.656 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
Profile/1593/Coder icc profile: 560 bytes
2010-07-01T07:34:44-07:00 0:06.664 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
Profile/1593/Coder iptc profile: 26 bytes
2010-07-01T07:34:44-07:00 0:06.674 1.279u 6.6.2 Coder Magick[9984]: jpeg.c/Write
Profile/1593/Coder xmp profile: 8538 bytes
On command

Code: Select all

convert -debug "exception" carnival_normal.jpg carn.exr

Code: Select all

2010-07-01T07:42:07-07:00 0:02.221 0.967u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:08-07:00 0:02.822 1.030u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:08-07:00 0:03.003 1.076u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:08-07:00 0:03.327 1.108u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:08-07:00 0:03.518 1.154u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:09-07:00 0:03.795 1.217u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:09-07:00 0:03.946 1.264u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.

2010-07-01T07:42:09-07:00 0:04.222 1.326u 6.6.2 Exception Magick[10972]: module
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': A
dynamic link library (DLL) initialization routine failed.
On

Code: Select all

convert -debug "configure" carnival_normal.jpg carn.exr

Code: Select all

2010-07-01T07:44:06-07:00 0:00.006 0.000u 6.6.2 Configure Magick[10540]: utility
.c/ExpandFilenames/902/Configure
  Command line: convert {-debug} {configure} {carnival_normal.jpg} {carn.exr}
2010-07-01T07:44:06-07:00 0:00.043 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\coder.xml"
2010-07-01T07:44:06-07:00 0:00.080 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\Users\Edward\.magick\coder.xml"
2010-07-01T07:44:06-07:00 0:00.113 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\coder.xml"
2010-07-01T07:44:06-07:00 0:00.152 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "coder.xml"
2010-07-01T07:44:06-07:00 0:00.182 0.000u 6.6.2 Configure Magick[10540]: coder.c
/LoadCoderList/693/Configure
  Loading coder configuration file "C:\ImageMagick\VisualMagick\bin\coder.xml" .
..
2010-07-01T07:44:06-07:00 0:00.203 0.000u 6.6.2 Configure Magick[10540]: coder.c
/LoadCoderList/693/Configure
  Loading coder configuration file "C:\ImageMagick\VisualMagick\bin\coder.xml" .
..
2010-07-01T07:44:06-07:00 0:00.234 0.000u 6.6.2 Configure Magick[10540]: coder.c
/LoadCoderList/693/Configure
  Loading coder configuration file "coder.xml" ...
2010-07-01T07:44:06-07:00 0:00.265 0.000u 6.6.2 Configure Magick[10540]: coder.c
/LoadCoderList/693/Configure
  Loading coder configuration file "coder.xml" ...
2010-07-01T07:44:06-07:00 0:00.302 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\magic.xml"
2010-07-01T07:44:06-07:00 0:00.341 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\Users\Edward\.magick\magic.xml"
2010-07-01T07:44:06-07:00 0:00.376 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\magic.xml"
2010-07-01T07:44:06-07:00 0:00.414 0.000u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "magic.xml"
2010-07-01T07:44:06-07:00 0:00.445 0.000u 6.6.2 Configure Magick[10540]: magic.c
/LoadMagicList/677/Configure
  Loading magic configure file "C:\ImageMagick\VisualMagick\bin\magic.xml" ...
2010-07-01T07:44:06-07:00 0:00.480 0.016u 6.6.2 Configure Magick[10540]: magic.c
/LoadMagicList/677/Configure
  Loading magic configure file "C:\ImageMagick\VisualMagick\bin\magic.xml" ...
2010-07-01T07:44:06-07:00 0:00.517 0.016u 6.6.2 Configure Magick[10540]: magic.c
/LoadMagicList/677/Configure
  Loading magic configure file "magic.xml" ...
2010-07-01T07:44:06-07:00 0:00.549 0.016u 6.6.2 Configure Magick[10540]: magic.c
/LoadMagicList/677/Configure
  Loading magic configure file "magic.xml" ...
2010-07-01T07:44:08-07:00 0:02.410 0.686u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "C:\ImageMagick\VisualMagick\bin\locale.xml" ...

2010-07-01T07:44:08-07:00 0:02.434 0.686u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "C:\ImageMagick\VisualMagick\bin\locale.xml" ...

2010-07-01T07:44:08-07:00 0:02.457 0.702u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "locale.xml" ...
2010-07-01T07:44:08-07:00 0:02.477 0.718u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "" ...
2010-07-01T07:44:08-07:00 0:02.496 0.718u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "C:\ImageMagick\VisualMagick\bin\english.xml" ..
.
2010-07-01T07:44:08-07:00 0:02.579 0.780u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "C:\ImageMagick\VisualMagick\bin\english.xml" ..
.
2010-07-01T07:44:09-07:00 0:02.672 0.858u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "english.xml" ...
2010-07-01T07:44:09-07:00 0:02.757 0.920u 6.6.2 Configure Magick[10540]: locale.
c/LoadLocaleList/769/Configure
  Loading locale configure file "" ...
2010-07-01T07:44:11-07:00 0:04.895 1.217u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\delegates.xml"
2010-07-01T07:44:11-07:00 0:04.907 1.217u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\Users\Edward\.magick\delegates.xml"
2010-07-01T07:44:11-07:00 0:04.919 1.217u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "C:\ImageMagick\VisualMagick\bin\delegates.xml"
2010-07-01T07:44:11-07:00 0:04.928 1.217u 6.6.2 Configure Magick[10540]: configu
re.c/GetConfigureOptions/564/Configure
  Searching for configure file: "delegates.xml"
2010-07-01T07:44:11-07:00 0:04.937 1.232u 6.6.2 Configure Magick[10540]: delegat
e.c/LoadDelegateList/1223/Configure
  Loading delegate configuration file "C:\ImageMagick\VisualMagick\bin\delegates
.xml" ...
2010-07-01T07:44:11-07:00 0:04.953 1.248u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:04.964 1.248u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:04.975 1.264u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:04.986 1.264u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:04.996 1.264u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.005 1.264u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.015 1.279u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.023 1.279u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.032 1.279u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.044 1.279u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.057 1.295u 6.6.2 Configure Magick[10540]: delegat
e.c/LoadDelegateList/1223/Configure
  Loading delegate configuration file "C:\ImageMagick\VisualMagick\bin\delegates
.xml" ...
2010-07-01T07:44:11-07:00 0:05.075 1.295u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.086 1.295u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.099 1.310u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.110 1.326u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.122 1.326u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.134 1.342u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.148 1.342u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.161 1.342u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.174 1.342u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.200 1.342u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.225 1.373u 6.6.2 Configure Magick[10540]: delegat
e.c/LoadDelegateList/1223/Configure
  Loading delegate configuration file "delegates.xml" ...
2010-07-01T07:44:11-07:00 0:05.255 1.388u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.273 1.404u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.289 1.404u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.303 1.404u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.317 1.404u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.331 1.420u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.361 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.389 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.417 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.445 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.473 1.435u 6.6.2 Configure Magick[10540]: delegat
e.c/LoadDelegateList/1223/Configure
  Loading delegate configuration file "delegates.xml" ...
2010-07-01T07:44:11-07:00 0:05.506 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.533 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.563 1.435u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.590 1.451u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.617 1.466u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:11-07:00 0:05.645 1.466u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:12-07:00 0:05.671 1.482u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:12-07:00 0:05.689 1.482u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:12-07:00 0:05.713 1.482u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
2010-07-01T07:44:12-07:00 0:05.740 1.482u 6.6.2 Configure Magick[10540]: nt-base
.c/NTLocateGhostscript/953/Configure
  Ghostscript ((null)) version 0.00
In Windows using the command line, I move to the bin directory of my compiled ImageMagick build, in this case C:\ImageMagick\VisualMagick\bin. The files that are being executed in the bin directory (i.e. convert.exe, identify.exe etc) were all generated with a Debug build of ImageMagick. It seems that by default, when you build IM, it dumps all the exe files and dlls in the bin directory, regardless of whether its Debug or Release. So when I rebuild IM in Release mode, and I move to the bin directory with the windows command line and execute

Code: Select all

covert carnival_normal.jpg carn.exr
everything works fine. When I rebuild it in debug mode, everything seems to be working fine except loading the IM_MOD_DB_EXR_.dll. I see the IM_MOD_DB_EXR_.dll file in the bin directory. I also copied over:

Code: Select all

zlib1d.dll
zlib1.dll
Imath_dll_d.dll
Imath_dll.dll
IlmThread_dll_d.dll
IlmThread_dll.dll
IlmImf_dll_d.dll
IlmImf_dll.dll
Iex_dll_d.dll
Iex_dll.dll
Half_dll_d.dll
Half_dll.dll
from the OpenExr directory into the bin directory. I have set the MAGICK_HOME env variable and it doesn't appear to have done anything. It seems like I might be doing something wrong getting IM_MOD_EXR to compile in debug mode.

Re: Reading OpenEXR in magick++ api crashing

Posted: 2010-07-01T08:18:33-07:00
by mrtm3050
It appears that I was linking to wrong lib files when I compiled the debug version. I was linking to all the release versions of the lib files, i.e. Half.lib instead of Half_d.lib, etc.

The command:

Code: Select all

convert image.jpg image.exr
seems to work. Do you know why I still get these exception errors on command:

Code: Select all

convert -debug "exception" image.jpg image.exr

Code: Select all

2010-07-01T08:13:01-07:00 0:00.880 0.858u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:01-07:00 0:00.911 0.858u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:01-07:00 0:00.944 0.858u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:02-07:00 0:00.990 0.858u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:02-07:00 0:01.037 0.874u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:02-07:00 0:01.083 0.874u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:02-07:00 0:01.131 0.889u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.

2010-07-01T08:13:02-07:00 0:01.191 0.905u 6.6.2 Exception Magick[10420]: module.
c/OpenModule/1227/Exception
  unable to load module `C:\ImageMagick\VisualMagick\bin\IM_MOD_DB_EXR_.dll': Th
e specified module could not be found.
The IM_MOD_DB_EXR_.dll it's unable to load is in the bin directory.