Hey Paolo, Did you try to add some die statements to see if it made any difference, so something like:
use Image::Magick; my $image=Image::Magick->new(size=>'75x75'); $image->Read('null:white'); die &display_error("Read Error Error: Image: null:white $image \n") if ($image); my @x = $image->QueryFontMetrics font=>'@/usr/X11R6/lib/X11/fonts/ttf/Ritalin.ttf',text=>'X', pointsize=>12); die &display_error("ImFont Query Error: @x $image") if ($image); Works for me, then I just have a sub called "display_error" that prints the message and error out in a browser, but you could make that anything you want. -Chris >> -----Original Message----- >> From: Paolo Campanella [mailto:[EMAIL PROTECTED] >> Sent: Thursday, February 27, 2003 8:43 AM >> To: [EMAIL PROTECTED] >> Subject: Apache is exiting.... >> >> >> >> Hi all >> >> Here's a stripped-down version of a script I use: >> =================================================================== >> use Image::Magick; >> my $image=Image::Magick->new(size=>'75x75'); >> $image->Read('null:white'); >> my @x = >> $image->QueryFontMetrics(font=>'@/usr/X11R6/lib/X11/fonts/ttf/Rit >> alin.ttf',text=>'X', pointsize=>12); >> =================================================================== >> >> If the font can't be found, I get this in my error log: >> =================================================================== >> Exception 415: UnableToReadFont >> (@/usr/X11R6/lib/X11/fonts/ttf/Ritalin.ttf) at /path/to/script line 584. >> [Thu Feb 27 15:17:07 2003] [alert] Child 8329 returned a Fatal error... >> Apache is exiting! >> =================================================================== >> >> Even using an Error.pm try/catch block makes no difference. Pretend >> for a moment that you have no specific knowledge of the library which >> causes this problem: is there any black box approach to stopping some >> library's complaints from shutting down my web server? >> >> Thanks >> >> Paolo