Page 1 of 1

Montage command missing one tile

Posted: 2014-11-06T01:53:31-07:00
by che1404
Hi all,
I'm using ImageMagick for iOS, version 6.8.8-9.
It happens (randomly) that the montage command is not considering one of the tiles. Sometimes it is, sometimes it's not. In the following case, it is the tile 4 (panel0flipped4.jpg).
The command I'm using is:

Code: Select all

montage panel0flipped0.jpg panel0flipped1.jpg panel0flipped2.jpg panel0flipped3.jpg panel0flipped4.jpg panel0flipped5.jpg panel0flipped6.jpg panel0flipped7.jpg panel0flipped8.jpg panel0flipped9.jpg panel0flipped10.jpg panel0flipped11.jpg panel0flipped12.jpg panel0flipped13.jpg panel0flipped14.jpg panel0flipped15.jpg panel0flipped16.jpg panel0flipped17.jpg panel0flipped18.jpg panel0flipped19.jpg panel0flipped20.jpg panel0flipped21.jpg panel0flipped22.jpg panel0flipped23.jpg -limit memory 5MB -tile 4x6 -geometry 756x766+0+0 panel0final.jpg
In the output image, the correct order would be:
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
16 17 18 19
20 21 22 23

But instead is:
0 1 2 3
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
21 22 23 NULL

Sometimes is the tile 4, sometimes is the tile 3...
It doesn't happen on OSX Desktop, same ImageMagick version.
Could it be related with the reduced memory of the iPad Mini? (I'm not seeing this in the iPad Air)

Tile 4 is missing. Any idea on why could it be happening?
Thanks,
Robert.

Re: Montage command missing one tile

Posted: 2014-11-06T02:45:59-07:00
by snibgo
[Mod note: this is a usage question, not MagickWand, so I'm moving it to Users.]
It happens (randomly) ...
For the same set of input files, does it happen randomly or consistently? How often does it occur?

Roughly how many pixels do you have, in total? How much memory does the iPad Mini have?

Re: Montage command missing one tile

Posted: 2014-11-06T03:55:37-07:00
by che1404
snibgo wrote:[Mod note: this is a usage question, not MagickWand, so I'm moving it to Users.]
I'm using ImageMagick from code, so I thought it belonged to MagickWand. Sorry about that.
It happens (randomly) ...
For the same set of input files, does it happen randomly or consistently?
It happens randomly for the same set of input files. I'm running the same command in sequence for two images. One of the runs (the first, or the second, randomly) generates this error.
How often does it occur?
If I run the command only once, it doesn't happen. If I run it twice (in sequence, explained above), it happens always in one of the runs.
Roughly how many pixels do you have, in total?
I'm trying to compose two high res images. I have exactly 3024 x 4596 = 13898304 pixels.
How much memory does the iPad Mini have?
The iPad Mini has 512 MB of RAM, but note that I'm using -limit memory 5MB. So according to the docs, it shouldn't use more than that.

Please let me know if you need further information.
Thanks,
Robert.

Re: Montage command missing one tile

Posted: 2014-11-06T05:10:35-07:00
by snibgo
che1404 wrote:The iPad Mini has 512 MB of RAM, but note that I'm using -limit memory 5MB. So according to the docs, it shouldn't use more than that.
What is the secondary storage? Does it have any? If IM is limited to 5MB, but there is no secondary storage, I don't know what will happen.

You might add "-synchronize" to the command. See http://www.imagemagick.org/script/comma ... ynchronize

You might add "-debug all" and see if the output gives a hint of problems.

Re: Montage command missing one tile

Posted: 2014-11-06T09:03:29-07:00
by che1404
Thanks for the feedback!
I should mention that it is also happening when I run the command just once.
What is the secondary storage? Does it have any? If IM is limited to 5MB, but there is no secondary storage, I don't know what will happen.
The secondary storage is 16GB size.
You might add "-synchronize" to the command. See http://www.imagemagick.org/script/comma ... ynchronize

You might add "-debug all" and see if the output gives a hint of problems.
I have run the command with the params you mention. I would appreciate if you could help me with the output log: https://dl.dropboxusercontent.com/u/613 ... og.txt.zip

In this case, the missing image in the montage process is "panel0flipped2.jpg". The log is huge. But if you look for "panel0flipped1.jpg", the tile is there, but it goes directly from tile 1 to 3, not processing the tile 2. Maybe you can help me understand the messages in the log. At the top you can see the parameters I'm using.

Thanks a lot in advance.
Robert.

Re: Montage command missing one tile

Posted: 2014-11-06T16:59:51-07:00
by snibgo
I see nothing in the debug output that says why flipped2 is a problem.

You might try this, watching out for error or warning mesages:

Code: Select all

convert -verbose panel0flipped0.jpg panel0flipped0.miff
convert -verbose panel0flipped1.jpg panel0flipped1.miff
convert -verbose panel0flipped2.jpg panel0flipped2.miff
convert -verbose panel0flipped3.jpg panel0flipped3.miff
keep going to

Code: Select all

convert -verbose panel0flipped23.jpg panel0flipped23.miff
Paste the text verbose output here. (It will tell us the dimensions etc of each image.)

Then repeat the montage command, with the miff files instead of jpg.

Re: Montage command missing one tile

Posted: 2014-11-06T18:33:59-07:00
by fmw42
You could try this piping shortcut if on a Unix system to test if miff format works for the input. But if it fails, then you will have to try snibgo's method of converting each image separately to see if the verbose info shows anything suspicious about the one particular image or any of them.

Code: Select all

convert panel0flipped*.jpg miff:- | montage - <arguments> output.jpg

Re: Montage command missing one tile

Posted: 2014-11-07T00:32:35-07:00
by che1404
I converted each tile to miff. In this case, the tile number 2 ("panel1flipped2") failed in the montage process.
Here is the log.I can't see anything wrong with that tile. :

Code: Select all

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped0.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 70.6KB 0.090u 0:00.079
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped0.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff0.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped1.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 150KB 0.090u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped1.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff1.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped2.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 134KB 0.100u 0:00.089
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped2.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff2.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.050

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped3.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 45.2KB 0.080u 0:00.089
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped3.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff3.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped4.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 159KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped4.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff4.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped5.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 157KB 0.090u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped5.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff5.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped6.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 149KB 0.090u 0:00.089
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped6.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff6.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.050

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped7.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 79.7KB 0.100u 0:00.089
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped7.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff7.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.020u 0:00.050

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped8.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 132KB 0.080u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped8.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff8.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped9.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 128KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped9.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff9.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped10.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 135KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped10.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff10.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped11.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 104KB 0.080u 0:00.089
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped11.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff11.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.050

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped12.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 132KB 0.090u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped12.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff12.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped13.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 120KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped13.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff13.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.070

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped14.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 121KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped14.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff14.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.050

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped15.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 101KB 0.100u 0:00.099
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped15.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff15.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped16.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 99.9KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped16.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff16.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.060

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped17.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 88.7KB 0.090u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped17.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff17.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.059

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped18.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 96.1KB 0.090u 0:00.100
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped18.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff18.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped19.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 76.3KB 0.090u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped19.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff19.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.030u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped20.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 65.2KB 0.080u 0:00.080
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped20.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff20.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.059

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped21.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 66.6KB 0.070u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped21.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff21.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.049

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped22.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 62.4KB 0.080u 0:00.090
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped22.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff22.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.070

/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped23.jpg JPEG 756x766 756x766+0+0 8-bit sRGB 52.5KB 0.080u 0:00.079
/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0flipped23.jpg=>/var/mobile/Applications/315E15D5-D9C4-43DD-867B-08BB16373E6C/Library/Caches/TextureCache/panel0miff23.miff JPEG 756x766 756x766+0+0 8-bit sRGB 1.738MB 0.040u 0:00.06

It should be something related with the montage command itself, but honestly I'm clueless here.
Is there anything else I could try?

Thanks,
Robert.

Re: Montage command missing one tile

Posted: 2014-11-07T00:45:21-07:00
by che1404
I've just noticed that the following text appears in the log file of the montage command when an image is missing:

Code: Select all

2014-11-06T16:50:10+01:00 0:00.230 0.220u 6.8.8 Resource Smile Designer[25417]: resource.c/RelinquishMagickResource/847/Resource
  Memory: 2.27KB/4.418MiB/4.768MiB
2014-11-06T16:50:10+01:00 0:00.230 0.220u 6.8.8 Policy Smile Designer[25417]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="" ...
2014-11-06T16:50:10+01:00 0:00.230 0.220u 6.8.8 Resource Smile Designer[25417]: resource.c/AcquireUniqueFileResource/453/Resource
  ...
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Resource Smile Designer[25417]: resource.c/AcquireUniqueFileResource/494/Resource
  Acquire /var/tmp/magick-254171Q6ZyaWlq2mX
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Policy Smile Designer[25417]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="/var/tmp/magick-254171Q6ZyaWlq2mX" ...
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Blob Smile Designer[25417]: blob.c/OpenBlob/2538/Blob
    read 0 magic header bytes
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Cache Smile Designer[25417]: cache.c/DestroyPixelCache/961/Cache
  destroy 
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Policy Smile Designer[25417]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Coder; rights=Read; pattern="" ...
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/Users/cloud/Documents/BUILD/rhino/IM/imagemagick_lib_iphone/target/imagemagick/share/ImageMagick-6/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/Users/cloud/Documents/BUILD/rhino/IM/imagemagick_lib_iphone/target/imagemagick/lib/ImageMagick-6.8.8//config-Q8/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.220u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/Users/cloud/Documents/BUILD/rhino/IM/imagemagick_lib_iphone/target/imagemagick/etc/ImageMagick-6/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.230u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/Users/cloud/Documents/BUILD/rhino/IM/imagemagick_lib_iphone/target/imagemagick/share/doc/ImageMagick-6/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.230u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/private/var/mobile/Applications/ADEC6791-0195-4132-9715-CBD5DBE7B9E4/.config/ImageMagick/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.230u 6.8.8 Configure Smile Designer[25417]: configure.c/GetConfigureOptions/678/Configure
  Searching for configure file: "/private/var/mobile/Applications/ADEC6791-0195-4132-9715-CBD5DBE7B9E4/.magick/delegates.xml"
2014-11-06T16:50:10+01:00 0:00.240 0.230u 6.8.8 Exception Smile Designer[25417]: configure.c/GetConfigureOptions/705/Exception
  UnableToOpenConfigureFile `delegates.xml'
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Configure Smile Designer[25417]: delegate.c/LoadDelegateCache/1288/Configure
  Loading delegate configuration file "built-in" ...
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Policy Smile Designer[25417]: policy.c/IsRightsAuthorized/574/Policy
  Domain: Path; rights=Read; pattern="/var/tmp/magick-254171Q6ZyaWlq2mX" ...
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Blob Smile Designer[25417]: blob.c/OpenBlob/2538/Blob
    read 0 magic header bytes
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Cache Smile Designer[25417]: cache.c/DestroyPixelCache/961/Cache
  destroy 
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Exception Smile Designer[25417]: constitute.c/ReadImage/501/Exception
  NoDecodeDelegateForThisImageFormat `/var/tmp/magick-254171Q6ZyaWlq2mX'
2014-11-06T16:50:10+01:00 0:00.250 0.230u 6.8.8 Resource Smile Designer[25417]: resource.c/RelinquishUniqueFileResource/880/Resource
  Relinquish /var/tmp/magick-254171Q6ZyaWlq2mX
Specially suspicious is the "read 0 magic header bytes" message. When an image is well processed, it tells "read 3 magic header bytes".

Also, just below "read 0 magic header bytes", I can see that the pattern="" tag contains "/var/tmp/magick-254171Q6ZyaWlq2mX", while in other cases it contains the path to the actual file.

Does it tell you anything?
Could it be related with the way I acquire the raw image in the first place from OpenGL? If so, I don't understand how some images are well processes and some not.

Thanks,
Robert.

Re: Montage command missing one tile

Posted: 2014-11-07T01:45:03-07:00
by snibgo
You might try the montage with just the first 12 images, or 4, or 2. What is the minimum that shows the problem?

If it happens with 4 or less, put them somewhere like dropbox.com and paste the URLs here. Someone can take a look and see if #2 has something strange.

Re: Montage command missing one tile

Posted: 2014-11-07T02:07:30-07:00
by che1404
Hey!
Just realized that the args array for the montage was not well dimensioned. We know C, it does allow you to do lots of things without a warning.
Silly me!

I really appreciate your help. Great forum, great community!

Cheers,
Robert.

Re: Montage command missing one tile

Posted: 2014-11-07T03:05:56-07:00
by snibgo
Ha! Good result, anyway.