MMBase

ConvertImage magic can hang page.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.1
  • Fix Version/s: 1.6.4
  • Component/s: Resources
  • Description:
    Hide
    original bugid: #5877
    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..



    But still
    Show
    original bugid: #5877 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.. But still

Activity

Hide
Michiel Meeuwissen added a comment - 2003-02-25 17:29
ConvertImage magic can hang page.
Some images complete disable the jsp-editors, because
while ((size = in.read(inputbuffer)) > 0) {

can lock if no bytes available (for some reason)
Show
Michiel Meeuwissen added a comment - 2003-02-25 17:29 ConvertImage magic can hang page. Some images complete disable the jsp-editors, because while ((size = in.read(inputbuffer)) > 0) { can lock if no bytes available (for some reason)
Hide
Michiel Meeuwissen added a comment - 2003-02-25 18:41
ConvertImage magic can hang page.
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.
Show
Michiel Meeuwissen added a comment - 2003-02-25 18:41 ConvertImage magic can hang page. 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.
Hide
Michiel Meeuwissen added a comment - 2003-02-25 23:38
ConvertImage magic can hang page.
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.
Show
Michiel Meeuwissen added a comment - 2003-02-25 23:38 ConvertImage magic can hang page. 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.
Hide
Michiel Meeuwissen added a comment - 2003-03-04 15:12
ConvertImage magic can hang page.
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.
Show
Michiel Meeuwissen added a comment - 2003-03-04 15:12 ConvertImage magic can hang page. 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.
Hide
Michiel Meeuwissen added a comment - 2003-03-06 16:05
ConvertImage magic can hang page.
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
Show
Michiel Meeuwissen added a comment - 2003-03-06 16:05 ConvertImage magic can hang page. 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
Hide
Michiel Meeuwissen added a comment - 2003-03-07 20:44
ConvertImage magic can hang page.
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
Show
Michiel Meeuwissen added a comment - 2003-03-07 20:44 ConvertImage magic can hang page. 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
Hide
Michiel Meeuwissen 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..
Show
Michiel Meeuwissen 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..
Hide
Michiel Meeuwissen added a comment - 2003-03-14 22:16
ConvertImage magic can hang page.
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..



But still
Show
Michiel Meeuwissen added a comment - 2003-03-14 22:16 ConvertImage magic can hang page. 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.. But still

People

Dates

  • Created:
    2004-02-04 14:40
    Updated:
    2006-11-29 10:56
    Resolved:
    2006-11-24 12:35