ID: 28084 Comment by: mmoria01 at sprintspectrum dot com Reported By: doormat at sequence-omega dot net Status: Open Bug Type: Reproducible crash Operating System: Windows 2000 SP3 PHP Version: 4.3.6 New Comment:
This happens to me as well. What is odd in my case is when my webpage (intranet site) has been idle for more than a few hours (like overnight), the next graph generation session will come back with one of the graphs throwing a JPGraph "TTF Font Error". On the monitor of the server box there will be a "Message Box" stating that Apache has crashed and a log file has been created. I hit "OK" but never have to restart Apache and all is fine. Even while this "Message Box" is present, the server will still generate pages with graphs. I've looked all over for this log file it said it created and have never found one. I resubmit the request and all graphs are fine. Everything works flawlessly as long as the server is kept fairly active. Apache 1.3.24 PHP 4.3.3 as a SAPI module Windows 2000 SP3 HTH -matt Previous Comments: ------------------------------------------------------------------------ [2004-05-05 01:08:24] [EMAIL PROTECTED] err, I meant open. ------------------------------------------------------------------------ [2004-05-05 01:00:05] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-05-04 22:38:17] jpgraph at aditus dot nu The following code is said to repeat the crash on Win32 , works fine on Linux. Unfortunately I don't have access to a Win32 system to be able to repeat. The reproduce script was submitted by dietrich at ganx4 com <?php $string = "i crash."; $font = 4; $width = ImageFontWidth($font) * strlen($string); $height = ImageFontHeight($font); $im = @imagecreate ($width,$height); $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 0, 0,0); imagestring($im, $font, 0, 0, $string, $text_color); imagejpeg($im,'test_sample.jpg'); ?> ------------------------------------------------------------------------ [2004-05-04 21:40:38] dietrich dot ayala at foundstone dot com here is a simple reproduction script. the crash only occurs when writing the image to file, and is reproducible 100% of the time. <?php $string = "i crash."; $font = 4; $width = ImageFontWidth($font) * strlen($string); $height = ImageFontHeight($font); $im = @imagecreate ($width,$height); $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 0, 0,0); imagestring($im, $font, 0, 0, $string, $text_color); imagejpeg($im,'test_sample.jpg'); ?> ------------------------------------------------------------------------ [2004-05-04 07:49:16] dietrich dot ayala at foundstone dot com another comment: this is a regression. our code works fine in 4.3.2, but is broken b/c of this so we cannot upgrade. here's a quote from the jpgraph people: "There seems to be a bug with some versions of PHP on Windows. It has a (known) problem with simultaneous accessing the TTF libraries, (perhaps some thread-safety issues ?). No known workaround exists (apart from moving away from Win2000) as far as I'm aware." is anyone familiar w/ this issue? thanks, d. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28084 -- Edit this bug report at http://bugs.php.net/?id=28084&edit=1