Mantis - Quercus
Viewing Issue Advanced Details
3775 major always 11-20-09 02:01 06-21-12 01:08
Steveorevo  
nam  
normal  
closed  
unable to reproduce  
none    
none  
0003775: GD library broken in 4.0.1
1) Download resin-4.0.1.zip, Vista, 32-Bit, Java SE build 1.6.0_16-b01

2) Execute java -jar ./lib/resin.jar start

3) try this script from webapps/ROOT/phptest.php

<?php

header("Content-type: image/png&quot;
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream&quot;
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);

?>


Looks like javaw.exe goes 100% CPU and hangs indefinitely. Behavior different from prior version.

Notes
(0004312)
Steveorevo   
11-23-09 23:21   
This appears to effect applications like WordPress's upload image/insert image, thumbnail, medium and large Media dialog and functionality.
(0005432)
domdorn   
08-08-11 10:16   
issue is still there. looks like a problem in imagecolorallocate()
(0005914)
nam   
06-21-12 01:08   
Unable to reproduce on 4.0.29 (upcoming).