OSX 10.14.3 --- Version: ImageMagick 7.0.8-37 Q16 x86_64 2019-04-03
Docker Container running "FROM jboss/wildfly:9.0.2.Final" that has imagemagick installed --- Version: ImageMagick 7.0.8-34 Q16 x86_64 2019-03-18
Commands used:
convert psb:/3layer.psb -limit memory $x -limit map $y -intent relative -sample "1024x768>" -quality 95 -colorspace sRGB -strip -auto-orient 3layer.jpg -debug all
convert psb:/3layer.psb 3layer.jpg
I've tried multiple iterations of the above commands, attempting to set limits to 0, 1 and 2, 2 and 4, 4 and 8. I've tried setting the -limit area to 0, -limit disk to 0, and tried multiple combinations of all of these limits. I've attempted to change the temporary file location using the environment variable MAGICK_TEMPORARY_DIRECTORY just in case we're running into a /tmp folder size limitation, but imagemagick does not seem to adhere to this. Nothing I've tried has resulted in large PSB files with multiple layers being converted successfully. This feels like a resource constraint issue, but I also found a previous thread with one of my exact errors using a PSD file, so perhaps this is a bug still.
I've attempted this with 7.0.8-36 in OSX as well as -37 and I get the following error returned:
Within my container i get the following error:2019-04-03T14:38:12-05:00 7:38.978 393.330u 7.0.8 Exception convert[47211]: blob.c/OpenBlob/3485/Exception
unable to open image 'testconvert.jpg': No such file or directory
2019-04-03T14:38:12-05:00 7:38.978 393.330u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy
2019-04-03T14:38:12-05:00 7:38.978 393.330u 7.0.8 Policy convert[47211]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="testconvert.jpg" ...
2019-04-03T14:38:12-05:00 7:38.978 393.330u 7.0.8 Exception convert[47211]: blob.c/OpenBlob/3485/Exception
unable to open image 'testconvert.jpg': No such file or directory
2019-04-03T14:38:12-05:00 7:38.978 393.330u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy
2019-04-03T14:38:12-05:00 7:38.981 393.330u 7.0.8 Exception convert[47211]: convert.c/ConvertImageCommand/3297/Exception
`all'
2019-04-03T14:38:12-05:00 7:38.981 393.330u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.206 393.550u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 2280960000B/11.6837GiB/16GiB
2019-04-03T14:38:13-05:00 7:39.206 393.550u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.243 393.590u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 1710720000B/10.0905GiB/16GiB
2019-04-03T14:38:13-05:00 7:39.244 393.590u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.285 393.630u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 2280960000B/8553600000B/16GiB
2019-04-03T14:38:13-05:00 7:39.285 393.630u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.330 393.680u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 2280960000B/6272640000B/16GiB
2019-04-03T14:38:13-05:00 7:39.331 393.680u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.372 393.720u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 2280960000B/3991680000B/16GiB
2019-04-03T14:38:13-05:00 7:39.372 393.720u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
2019-04-03T14:38:13-05:00 7:39.415 393.760u 7.0.8 Resource convert[47211]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 2280960000B/1710720000B/16GiB
2019-04-03T14:38:13-05:00 7:39.415 393.760u 7.0.8 Cache convert[47211]: cache.c/DestroyPixelCache/1040/Cache
destroy TestConvert.psb[0]
Assertion failed: (resource_info.memory >= 0), function RelinquishMagickResource, file MagickCore/resource.c, line 1025.
Abort trap: 6
You can find an example file here https://drive.google.com/open?id=1VlMOm ... -mPV6Z6NFx2019-04-03T20:44:00+00:00 0:46.170 65.530u 7.0.8 Resource convert[1080]: resource.c/RelinquishUniqueFileResource/1107/Resource
/tmp/magick-1080FcS4OgIyXP4X
2019-04-03T20:44:00+00:00 0:46.170 65.530u 7.0.8 Resource convert[1080]: resource.c/RelinquishMagickResource/1069/Resource
Disk: 6.1875MiB/0B/8EiB
convert: unable to open image '3layer.jpg': No such file or directory @ error/blob.c/OpenBlob/3485.
convert: `all' @ error/convert.c/ConvertImageCommand/3297.