Hello,
on the end, you see the command line output with parameter -debug all
Server environment:
WIN Server 2003 R2 Service Pack 2 German
4 GB RAM
Enough free hdd space
IM Version
First we tried ImageMagick-6.3.9-Q16
Then we tried ImageMagick-6.4.4-Q16
Source Bitmap:
200 dpi
15905 x 9449 Pixels (150.29 MPixels) (1.68)
Print size: 202.0 x 120.0 cm; 79.5 x 47.2 inches
16,7 Millions (24 BitsPerPixel)
Disk Size: 429.98 MB (450.868.538 Bytes)
Simple try to convert in command line with
convert bitmap_200dpi_test_ohne_depth test1.jpg
We got always the error
convert: Memory allocation failed `bitmap_200dpi_test_ohne_depth'.
convert: missing an image filename `test1.jpg'.
With 100 dpi it´s working fine.
D:\>convert -list resource
File Area Memory Map Disk
------------------------------------------------
1536 3.99792gb 2.99844gb 7.99583gb 16eb
So, if i try it on another computer with WIN XP PRO, it´s also working fine.
Where is the problem. I cannot find a solution / workaround for this error. I don´t know, what´s standing in the debug messages. Perhaps you know, what´s going on.
Thank you for any help!
Jochen
D:\temp2\rippertest>convert -debug all bitmap_200dpi_test_mit_depth test1.jpg
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: utility.c/E
xpandFilenames/808/Configure
Command line: convert {-debug} {all} {bitmap_200dpi_test_mit_depth} {test1.jpg
}
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Blob convert[1644]: blob.c/OpenBlob/
2340/Blob
read 3 magic header bytes
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Cache convert[1644]: cache.c/Destroy
CacheInfo/2197/Cache
destroy
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
SOFTWARE\ImageMagick\6.4.4\Q:16
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
ConfigurePath
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: configure.c
/GetConfigureOptions/528/Configure
Searching for configure file: "C:\Programme\ImageMagick-6.4.4-Q16\config\magic
.xml"
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: configure.c
/GetConfigureOptions/528/Configure
Searching for configure file: "C:\Dokumente und Einstellungen\doneware\.magick
\magic.xml"
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: configure.c
/GetConfigureOptions/528/Configure
Searching for configure file: "C:\Programme\ImageMagick-6.4.4-Q16\magic.xml"
2008-10-09T13:35:08+02:00 0:01 0.000u 6.4.4 Configure convert[1644]: configure.c
/GetConfigureOptions/528/Configure
Searching for configure file: "magic.xml"
2008-10-09T13:35:08+02:00 0:01 0.016u 6.4.4 Configure convert[1644]: magic.c/Loa
dMagicList/682/Configure
Loading magic map "C:\Programme\ImageMagick-6.4.4-Q16\config\magic.xml" ...
2008-10-09T13:35:08+02:00 0:01 0.016u 6.4.4 Configure convert[1644]: magic.c/Loa
dMagicList/682/Configure
Loading magic map "magic.xml" ...
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Module convert[1644]: module.c/OpenM
odule/1114/Module
Searching for module "BMP" using filename "IM_MOD_RL_BMP_.dll"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Module convert[1644]: module.c/GetMa
gickModulePath/522/Module
Searching for coder module file "IM_MOD_RL_BMP_.dll" ...
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
SOFTWARE\ImageMagick\6.4.4\Q:16
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
CoderModulesPath
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Module convert[1644]: module.c/OpenM
odule/1123/Module
Opening module at path "C:\Programme\ImageMagick-6.4.4-Q16\modules\coders\IM_M
OD_RL_BMP_.dll"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Module convert[1644]: module.c/OpenM
odule/1150/Module
Method "RegisterBMPImage" in module "BMP" at address 67064600
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Module convert[1644]: module.c/OpenM
odule/1164/Module
Method "UnregisterBMPImage" in module "BMP" at address 67063370
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Blob convert[1644]: blob.c/OpenBlob/
2340/Blob
read 3 magic header bytes
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Cache convert[1644]: cache.c/Destroy
CacheInfo/2197/Cache
destroy
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Blob convert[1644]: blob.c/OpenBlob/
2340/Blob
read 3 magic header bytes
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/588/Coder
Magick: BM
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/598/Coder
BMP size: 40
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/644/Coder
Format: MS Windows bitmap
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/646/Coder
Geometry: 15905x9449
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/648/Coder
Bits per pixel: 24
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/654/Coder
Compression: BI_RGB
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Coder convert[1644]: bmp.c/ReadBMPIm
age/694/Coder
Number of colors: 0
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Resource convert[1644]: resource.c/A
cquireMagickResource/220/Resource
Area: 1.1197gb/1.1197gb/3.9979gb
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Resource convert[1644]: resource.c/A
cquireMagickResource/220/Resource
Memory: 1.1197gb/1.1197gb/2.9984gb
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Cache convert[1644]: cache.c/OpenCac
he/3587/Cache
open bitmap_200dpi_test_mit_depth[0] (heap memory, 15905x9449 1.1197gb)
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
SOFTWARE\ImageMagick\6.4.4\Q:16
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Configure convert[1644]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
ConfigurePath
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Locale convert[1644]: locale.c/GetLo
caleOptions/498/Locale
Searching for locale file: "C:\Programme\ImageMagick-6.4.4-Q16\config\locale.x
ml"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Locale convert[1644]: locale.c/GetLo
caleOptions/498/Locale
Searching for locale file: "C:\Dokumente und Einstellungen\doneware\.magick\lo
cale.xml"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Locale convert[1644]: locale.c/GetLo
caleOptions/498/Locale
Searching for locale file: "C:\Programme\ImageMagick-6.4.4-Q16\locale.xml"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Locale convert[1644]: locale.c/GetLo
caleOptions/498/Locale
Searching for locale file: "locale.xml"
2008-10-09T13:35:08+02:00 0:01 0.031u 6.4.4 Configure convert[1644]: locale.c/Lo
adLocaleList/831/Configure
Loading locale map "C:\Programme\ImageMagick-6.4.4-Q16\config\locale.xml" ...
2008-10-09T13:35:08+02:00 0:01 0.047u 6.4.4 Configure convert[1644]: locale.c/Lo
adLocaleList/831/Configure
Loading locale map "C:\Programme\ImageMagick-6.4.4-Q16\config\english.xml" ...
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Configure convert[1644]: locale.c/Lo
adLocaleList/831/Configure
Loading locale map "" ...
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Exception convert[1644]: blob.c/File
ToBlob/777/Exception
unable to open file `english.xml': No such file or directory
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Exception convert[1644]: bmp.c/ReadB
MPImage/898/Exception
Memory allocation failed `bitmap_200dpi_test_mit_depth'
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Resource convert[1644]: resource.c/R
elinquishMagickResource/854/Resource
Memory: 1.1197gb/0b/2.9984gb
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Cache convert[1644]: cache.c/Destroy
CacheInfo/2197/Cache
destroy bitmap_200dpi_test_mit_depth[0]
2008-10-09T13:35:08+02:00 0:01 0.094u 6.4.4 Exception convert[1644]: convert.c/C
onvertImageCommand/2710/Exception
missing an image filename `test1.jpg'
convert: Memory allocation failed `bitmap_200dpi_test_mit_depth'.
convert: missing an image filename `test1.jpg'.
D:\temp2\rippertest>
Convert problems on Windows Server 2003
Re: Convert problems on Windows Server 2003
See if this command works for you:
- convert -limit memory 1mb -limit map 1mb bitmap_200dpi_test_ohne_depth test1.jpg
Re: Convert problems on Windows Server 2003
It´s working, but it takes a long time to convert images. So in our process, we need for each image a few converts and one process need 7 hours.
But another interesting information is, that this problem not appears on each computer. On my WIN XP Pro it´s working fine without problems. On a WIN XP Terminal Server there is the same problem. On another WIN XP Pro it´s not working, but with the boot.ini parameter /3gb and /pae it´s working.
So, this parameters have no effect on the WIN 2003 Server. Actually it must be OS System parameter dependend configuration.
AND
we have two bitmaps with 300 dpi and 200 dpi. Now the convert with IM version 3.4.4 will work without error with 300 dpi but not with 200 dpi. Version 3.2.9 will convert the 200 dpi but not the 300 dpi. Very strange!
Each experience information will help to solve the problem. I tried already the tuning parameter in registry with 'Memory Management'. But on WIN 2003 Server it will not work out.
So, after 2 weeks testing we got the result, that it must be a confusing ImageMagick problem. Ok, with the limit parameter it´s working, but the hole process needs now 7 hours instead of 4.
And this error is not depinding on free RAM! Because, i test it also on other OS and sometimes it haben´s with 200 dpi sometimes with 300 dip. Also the convert on command line will raise this kind of error, but
when the error raised with 200 dpi i can convert it with 185 and from 221 dpi on. So it must be an error in the bitmap, which was created with GhostScript or it is an error in convert!
Thank you for each hint.
But another interesting information is, that this problem not appears on each computer. On my WIN XP Pro it´s working fine without problems. On a WIN XP Terminal Server there is the same problem. On another WIN XP Pro it´s not working, but with the boot.ini parameter /3gb and /pae it´s working.
So, this parameters have no effect on the WIN 2003 Server. Actually it must be OS System parameter dependend configuration.
AND
we have two bitmaps with 300 dpi and 200 dpi. Now the convert with IM version 3.4.4 will work without error with 300 dpi but not with 200 dpi. Version 3.2.9 will convert the 200 dpi but not the 300 dpi. Very strange!
Each experience information will help to solve the problem. I tried already the tuning parameter in registry with 'Memory Management'. But on WIN 2003 Server it will not work out.
So, after 2 weeks testing we got the result, that it must be a confusing ImageMagick problem. Ok, with the limit parameter it´s working, but the hole process needs now 7 hours instead of 4.
And this error is not depinding on free RAM! Because, i test it also on other OS and sometimes it haben´s with 200 dpi sometimes with 300 dip. Also the convert on command line will raise this kind of error, but
when the error raised with 200 dpi i can convert it with 185 and from 221 dpi on. So it must be an error in the bitmap, which was created with GhostScript or it is an error in convert!
Thank you for each hint.
Re: Convert problems on Windows Server 2003
Hello,
also the prefered paramter doesn´t help!
Till now there is no solution.
-limit memory 1mb -limit map 1mb will not work.
also
-limit memory 1mb -limit map 1mb -area 1mb will not work.
Any ideas?
Jochen
also the prefered paramter doesn´t help!
Till now there is no solution.
-limit memory 1mb -limit map 1mb will not work.
also
-limit memory 1mb -limit map 1mb -area 1mb will not work.
Any ideas?
Jochen
Re: Convert problems on Windows Server 2003
The limit parameter forces the image pixels to disk which is up to 1000 times slower than processing the image in memory. Since the pixels are going to disk, your system must have enough free temporary disk space to work properly. Large image processing tends to be less problematic on a 64-bit OS and even better on a non-Windows platform such as Linux or Solaris. If you continue to have problems on your system, you can post a URL to an image that we can download and try to reproduce the problem or you may need to use another program other than ImageMagick such as netpbm.