Page 1 of 2
possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T15:41:48-07:00
by fmw42
IM 6.5.2-3 Q16 Mac OSX Tiger
Some of my scripts are not working now. I have tracked the problem down to what appears to be a problem in montage.
The following simple test does not seem to finish.
montage -label "test" -geometry +0+0 logo: logo_montage.gif
Is this a bug or has something changed in using montage?
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T16:17:36-07:00
by magick
Works for us (i.e. it completes immediately) under Linux. Add -debug all,trace to your command line and see if you can identify where the process is handing.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T16:25:15-07:00
by fmw42
montage -debug all,trace -label "test" -geometry +0+0 logo: logo_montage.gif
last few lines of terminal listing ...
2009-05-08T16:24:38-07:00 0:04 0.530u 6.5.2 Configure montage[4244]: type.c/LoadTypeList/985/Configure
Loading type configure file "/usr/local/lib/ImageMagick-6.5.2/config/type.xml" ...
2009-05-08T16:24:38-07:00 0:04 0.530u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
/usr/local/lib/ImageMagick-6.5.2/config/type.xml
2009-05-08T16:24:38-07:00 0:04 0.530u 6.5.2 Trace montage[4244]: string.c/FileToString/924/Trace
/usr/local/lib/ImageMagick-6.5.2/config/type-ghostscript.xml
2009-05-08T16:24:38-07:00 0:04 0.530u 6.5.2 Trace montage[4244]: blob.c/FileToBlob/820/Trace
/usr/local/lib/ImageMagick-6.5.2/config/type-ghostscript.xml
2009-05-08T16:24:38-07:00 0:04 0.530u 6.5.2 Configure montage[4244]: type.c/LoadTypeList/985/Configure
Loading type configure file "/usr/local/lib/ImageMagick-6.5.2/config/type-ghostscript.xml" ...
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: hashmap.c/GetNextValueInLinkedList/634/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Configure montage[4244]: type.c/LoadTypeList/985/Configure
Loading type configure file "type.xml" ...
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.540u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: utility.c/GetPathComponent/1174/Trace
type.xml
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: hashmap.c/GetNextValueInLinkedList/634/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: configure.c/DestroyConfigureOptions/166/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: hashmap.c/DestroyLinkedList/422/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: string.c/DestroyStringInfo/771/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: string.c/DestroyStringInfo/771/Trace
...
2009-05-08T16:24:39-07:00 0:04 0.550u 6.5.2 Trace montage[4244]: splay-tree.c/GetNumberOfNodesInSplayTree/964/Trace
...
This is where it hangs
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T16:34:29-07:00
by magick
There have been no recent patches to the methods listed in the debugging output. Try a complete uninstall and reinstall. Be sure to check the permissions on the ImageMgick configuration files (i.e. type.xml).
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T17:15:44-07:00
by fmw42
I will try re-installing.
But the changelog shows a recent change affecting montage. Might that be connected in some way?
2009-03-28 6.5.1-0 Cristy <quetzlzacatenango@image...>
Support -unsharp option for the montage program.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T17:19:19-07:00
by magick
Don't think so. It was a patch in the montage option parsing and unfortunately we cannot reproduce the problem.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T17:28:04-07:00
by fmw42
I am reinstalling now and will let you know. Did you test under Mac OSX Tiger?
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T17:47:27-07:00
by fmw42
I have now reinstalled, but still have the same problem.
I did a make distclean. Then deleted the ImageMagick-6.5.2-3 directory. Then downloaded a fresh copy from
ftp://ftp.imagemagick.org/pub/ImageMagick. Then reinstalled with:
./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--enable-libtool-verbose --disable-dependency-tracking \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
After the installation was complete, I tried the same command:
montage -label "test" -geometry +0+0 logo: logo_montage.gif
But it hung again.
I checked the permission on type.xml
cd /usr/local/lib/ImageMagick-6.5.2/config/
ls -al type.xml
-rw-r--r-- 1 root wheel 671 May 8 17:45 type.xml
Does it need changing?
Thanks.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T18:54:20-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.5.2-4 Beta available sometime tomorrow. Thanks.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-08T20:17:43-07:00
by fmw42
Thanks. I appreciate your looking into this. Glad it could be reproduced.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-09T10:11:42-07:00
by fmw42
magick wrote:We can reproduce the problem you posted and have a patch in ImageMagick 6.5.2-4 Beta available sometime tomorrow. Thanks.
I just downloaded and installed the IM 6.5.2-4 release and tested again:
montage -debug all,trace -label "test" -geometry +0+0 logo: logo_montage.gif
but it still hangs.
Might it not have been included in 6.5.2-4? Should I try 6.5.2-5 beta?
Thanks
Fred
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-09T18:33:57-07:00
by magick
We may have a possible bug in the OpenMP gomp library. Edit magick/annotate.c around line 1576. Comment out this line:
- #pragma omp parallel for schedule(dynamic,4) shared(status)
and rerun your montage command line. Does it still hang? If so try rebuilding ImageMagick without OpenMP support:
- ./configure --disable-openmp
make
make install
Does montage work now?
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-09T20:27:43-07:00
by fmw42
Bottom line --- neither solution made a difference.
magick wrote:We may have a possible bug in the OpenMP gomp library. Edit magick/annotate.c around line 1576. Comment out this line:
- #pragma omp parallel for schedule(dynamic,4) shared(status)
and rerun your montage command line. Does it still hang?
This did not work. But I am not sure I did that correctly. Pardon my ignorance. I edited the file located in the ImageMagick-6.5.2-4/magick/ directory. I could not find any such file at /usr/local/bin.
magick wrote: If so try rebuilding ImageMagick without OpenMP support:
- ./configure --disable-openmp
make
make install
Does montage work now?
This did not work either. Here is the configuration command that I used and then did make, sudo make install.
./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--enable-libtool-verbose --disable-dependency-tracking --disable-openmp \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
Afterwards, the same command still hung.
montage -label "test" -geometry +0+0 logo: logo_montage.gif
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-09T20:36:09-07:00
by magick
Run montage and let it hang. Determine its process number with the 'top' program. For our example, assume a PID of 12345. Type
Now type 'where' to the gdb command line prompt. Post the stack trace here so we can analyze the problem.
We put the montage program in a loop on our Mac OS X laptop and it ran pver 2000 times without fail before we bailed. We're using ImageMagick 6.5.2-5 Beta from
ftp://magick.imagemagick.org/pub/ImageMagick/beta.
Re: possible bug in montage IM 6.5.2-3 Q16
Posted: 2009-05-09T20:53:15-07:00
by fmw42
My error. After --disable-openmp and rebuilding IM 6.5.2-4 Q16, it appears that the command does finish. I just did not wait long enough in my test.
time montage -label "test" -geometry +0+0 logo: logo_montage.gif
real 0m5.722s
user 0m1.107s
sys 0m0.327s
And my script is now working again.
Sorry for the false alarm. I will double check without disabling openmp and let you know if perhaps I was too hasty with my original test on the upgrade to IM 6.5.2-4.