added a comment -
2003-03-14 21:05 ConvertImage magic can hang page. (tomcat only)
Some images complete disable the jsp-editors, because
while ((size = in.read(inputbuffer)) > 0) {
can lock if no bytes available (for some reason)
This seems to occur mainly with very small images.
I see it with convert 5.4.8, the invalid image haaaaai
and jdk 1.4
on jdk1.3/convert5.3.2 I don't seem to have the problem
This bug is differently in orion, i was using tomcat:
20:49:59,085 27675 kb DEB ConvertImageMagick getConvertCommands.352 - getCommands(): type=s cmd=100x60
20:49:59,087 27699 kb DEB ConvertImageMagick getConvertCommands.531 - adding -geometry 100x60
20:49:59,089 27724 kb DEB ConvertImageMagick convertImage.601 - command:[convert, -, -geometry, 100x60, jpeg:-] in /home/mmbase/help
20:49:59,090 27747 kb DEB ConvertImageMagick convertImage.610 - starting program
20:49:59,121 27802 kb DEB ConvertImageMagick convertImage.633 - starting process writer
20:49:59,123 27826 kb DEB ConvertImageMagick convertImage.635 - done with process writer
20:49:59,231 27880 kb DEB ConvertImageMagick convertImage.647 - retrieved all information
20:49:59,232 27903 kb ERR ConvertImageMagick convertImage.654 - Imagemagick conversion did not succeed. Returning null.
20:49:59,233 27927 kb DEB ConvertImageMagick convertImage.698 - waiting
20:49:59,235 27951 kb ERR ConvertImageMagick convertImage.703 - sub process failed and exited with error code 1
20:49:59,236 27977 kb DEB ConvertImageMagick convertImage.716 - copying 129 bytes from ERROR-stream
20:49:59,238 28002 kb ERR ConvertImageMagick convertImage.726 - From stderr with command '[convert, -, -geometry, 100x60, jpeg:-]' in '/home/mmbase/help' --> 'sh: html2ps: command not found
/usr/bin/convert: Unable to open file (/tmp/magicVTjufJLFysBCoo.tmp) [No such file or directory].
'
And then things seem a lot clearer at once.
So, on such an error, there goes something horribly wrong in tomcat/System.exec/convert.
good to know..
Some images complete disable the jsp-editors, because
while ((size = in.read(inputbuffer)) > 0) {
can lock if no bytes available (for some reason)