Random Problem
Matthias Schmitt <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
this problem drives me crazy since many days. So may be you can offer me some advice on how to debug the source of the problem.
I am using ImageMagick (Version 6.5.9.0) with Perl (Version 5.10.1 built for x86_64-linux-thread-multi). It is running in an Apache mod_perl environment. Everything compiles and works pretty good, ... most times.
Some times, without any specific reason, ImageMagick refuses to work at a specific line of code:
$o_ImageMagick = new Image::Magick;
$l_Error = $o_ImageMagick->Read($l_FilePath);
The error always occurs while calling the "Read" method. The error is reported as
"Can't use string ("*** some random string from program memory ***") as a subroutine ref while "strict refs" in use at /MyLocalPath/c_TmplImage.pm line 123."
It seems to be that the "Read" method can not be found any more. The same line of code runs fine for hundreds of images and seems to fail by random.
Any idea on how to debug such a problem? Thank you.
Here some details about Apache:
Server version: Apache/2.2.14 (Unix)
Server built: Dec 17 2009 17:31:08
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/MyLocalPath/httpd"
-D SUEXEC_BIN="/MyLocalPath/httpd/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Best regards
Matthias Schmitt
magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Phone: +352 54 75 75 - 0
http://www.mmp.lu