I have a WPG file which I'm having trouble with. I've tried both identify and convert on both ImageMagick 6.4.4 for Windows and ImageMagick 6.3.7 for Linux. The error message I get on both platforms is "identify: Memory allocation failed `TestFile_WPG.wpg'." Below is the debug all output from the identify command no Linux.
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: utility.c/unknown/809/Configure
Command line: identify {-debug} {All} {TestFile_WPG.wpg}
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.3.7/config/coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/ImageMagick-6.3.7/config/coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.3.7/coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/ImageMagick-6.3.7/coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/home/niklase/.magick/coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "coder.xml"
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Exception identify[1859]: configure.c/unknown/507/Exception
unable to access configure file `coder.xml'
2008-10-17T15:26:48+02:00 0:01 0.000u 6.3.7 Configure identify[1859]: coder.c/unknown/630/Configure
Loading coder map "built-in" ...
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Module identify[1859]: module.c/unknown/1074/Module
Searching for module "WPG" using filename "wpg.la"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Module identify[1859]: module.c/unknown/479/Module
Searching for coder module file "wpg.la" ...
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Module identify[1859]: module.c/unknown/1094/Module
Opening module at path "/usr/lib/ImageMagick-6.3.7/modules-Q16/coders/wpg.la"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Module identify[1859]: module.c/unknown/1128/Module
Method "RegisterWPGImage" in module "WPG" at address 0xb7778120
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Module identify[1859]: module.c/unknown/1143/Module
Method "UnregisterWPGImage" in module "WPG" at address 0xb77780f0
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Blob identify[1859]: blob.c/unknown/2324/Blob
read 4096 magic header bytes
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Cache identify[1859]: cache.c/unknown/2162/Cache
destroy
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.3.7/config/magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/ImageMagick-6.3.7/config/magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.3.7/magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/share/ImageMagick-6.3.7/magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "/home/niklase/.magick/magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: configure.c/unknown/482/Configure
Searching for configure file: "magic.xml"
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Exception identify[1859]: configure.c/unknown/507/Exception
unable to access configure file `magic.xml'
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Exception identify[1859]: magic.c/unknown/870/Exception
unable to access configure file `'
2008-10-17T15:26:48+02:00 0:01 0.010u 6.3.7 Configure identify[1859]: magic.c/unknown/678/Configure
Loading magic map "built-in" ...
2008-10-17T15:26:48+02:00 0:01 0.020u 6.3.7 Blob identify[1859]: blob.c/unknown/2324/Blob
read 4096 magic header bytes
2008-10-17T15:26:48+02:00 0:01 0.020u 6.3.7 Cache identify[1859]: cache.c/unknown/2162/Cache
destroy
2008-10-17T15:26:48+02:00 0:01 0.020u 6.3.7 Blob identify[1859]: blob.c/unknown/2324/Blob
read 4096 magic header bytes
2008-10-17T15:26:48+02:00 0:01 0.030u 6.3.7 Exception identify[1859]: cache.c/unknown/3482/Exception
no pixels defined in cache `TestFile_WPG.wpg'
2008-10-17T15:26:48+02:00 0:01 0.030u 6.3.7 Exception identify[1859]: wpg.c/unknown/1207/Exception
Memory allocation failed `TestFile_WPG.wpg'
2008-10-17T15:26:48+02:00 0:01 0.030u 6.3.7 Cache identify[1859]: cache.c/unknown/2162/Cache
destroy
identify: Memory allocation failed `TestFile_WPG.wpg'.
Next comes the debug All for the same command but on Windows.
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: utility.c/ExpandFilenames/808/Configure
Command line: identify {-debug} {All} {TestFile_WPG.wpg}
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Blob identify[4404]: blob.c/OpenBlob/2340/Blob
read 3 magic header bytes
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Cache identify[4404]: cache.c/DestroyCacheInfo/2200/Cache
destroy
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: nt-base.c/NTRegistryKeyLookup/1622/Configure
SOFTWARE\ImageMagick\6.4.4\Q:8
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: nt-base.c/NTRegistryKeyLookup/1640/Configure
ConfigurePath
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "C:\Utils\ImageMagick-6.4.4-Q8\magic.xml"
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "C:\Users\niklase\.magick\magic.xml"
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "magic.xml"
2008-10-17T15:22:16+02:00 0:01 0.000u 6.4.4 Configure identify[4404]: magic.c/LoadMagicList/682/Configure
Loading magic map "C:\Utils\ImageMagick-6.4.4-Q8\magic.xml" ...
2008-10-17T15:22:17+02:00 0:01 0.016u 6.4.4 Configure identify[4404]: magic.c/LoadMagicList/682/Configure
Loading magic map "magic.xml" ...
2008-10-17T15:22:17+02:00 0:01 0.016u 6.4.4 Blob identify[4404]: blob.c/OpenBlob/2340/Blob
read 3 magic header bytes
2008-10-17T15:22:17+02:00 0:01 0.016u 6.4.4 Cache identify[4404]: cache.c/DestroyCacheInfo/2200/Cache
destroy
2008-10-17T15:22:17+02:00 0:01 0.016u 6.4.4 Blob identify[4404]: blob.c/OpenBlob/2340/Blob
read 3 magic header bytes
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Configure identify[4404]: nt-base.c/NTRegistryKeyLookup/1622/Configure
SOFTWARE\ImageMagick\6.4.4\Q:8
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Configure identify[4404]: nt-base.c/NTRegistryKeyLookup/1640/Configure
ConfigurePath
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Locale identify[4404]: locale.c/GetLocaleOptions/498/Locale
Searching for locale file: "C:\Utils\ImageMagick-6.4.4-Q8\locale.xml"
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Locale identify[4404]: locale.c/GetLocaleOptions/498/Locale
Searching for locale file: "C:\Users\niklase\.magick\locale.xml"
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Locale identify[4404]: locale.c/GetLocaleOptions/498/Locale
Searching for locale file: "locale.xml"
2008-10-17T15:22:17+02:00 0:01 0.047u 6.4.4 Configure identify[4404]: locale.c/LoadLocaleList/831/Configure
Loading locale map "C:\Utils\ImageMagick-6.4.4-Q8\locale.xml" ...
2008-10-17T15:22:17+02:00 0:01 0.062u 6.4.4 Configure identify[4404]: locale.c/LoadLocaleList/831/Configure
Loading locale map "C:\Utils\ImageMagick-6.4.4-Q8\english.xml" ...
2008-10-17T15:22:17+02:00 0:01 0.094u 6.4.4 Configure identify[4404]: locale.c/LoadLocaleList/831/Configure
Loading locale map "" ...
2008-10-17T15:22:17+02:00 0:01 0.094u 6.4.4 Exception identify[4404]: blob.c/FileToBlob/777/Exception
unable to open file `english.xml': No such file or directory
2008-10-17T15:22:17+02:00 0:01 0.094u 6.4.4 Exception identify[4404]: cache.c/OpenCache/3552/Exception
no pixels defined in cache `TestFile_WPG.wpg'
2008-10-17T15:22:17+02:00 0:01 0.094u 6.4.4 Exception identify[4404]: wpg.c/ReadWPGImage/1207/Exception
Memory allocation failed `TestFile_WPG.wpg'
2008-10-17T15:22:17+02:00 0:01 0.094u 6.4.4 Cache identify[4404]: cache.c/DestroyCacheInfo/2200/Cache
destroy
identify: Memory allocation failed `TestFile_WPG.wpg'.
Is there a workaround for this? I can email the file I used for this to anyone who can help me.
Thanks,
Niklas Ekman
Memory allocation failure for WPG file
Re: Memory allocation failure for WPG file
Send us a PM with a URL to your image so we can download it and reproduce the problem.
Re: Memory allocation failure for WPG file
We have a patch in the ImageMagick Subversion trunk to fix the problem you reported. The patch will be available to sometime tomorrow and will also be in the next point release of ImageMagick. Thanks.
Re: Memory allocation failure for WPG file
Thanks a lot, I'll will try it out asap!