Apache failure in msvcr100.dll on readimage

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
routacarve
Posts: 3
Joined: 2011-01-25T07:23:38-07:00
Authentication code: 8675308

Apache failure in msvcr100.dll on readimage

Post by routacarve »

Hi, folks,
Am trying to get to the bottom to an apparent install/config problem with Imagick.

Apache 2.2.17 (ApacheLounge build - VC9), PHP 5.3.5 (VC9, 32-bit, thread-protect), Windows XP - localhost..

Have run a few sample scripts, and have no trouble rendering text & drawing, but as soon as I attempt to touch an image file (have tried .jpg & .png), Apache throws an exception. Nothing in Apache/PHP logs other than restart events.

Event log shows: Faulting application httpd.exe, version 2.2.17.0, faulting module msvcr100.dll, version 10.0.30319.1, fault address 0x0008ae6e.

Does anyone have any ideas on what could be causing this behaviour? Sample code below.

Many thanks,


Code: Select all

<?php

$image = "Back1.jpg";
$im = new Imagick();

/****    If I comment out the following line, program executes and draws a nice
/*       blue square.  If this line is executed, exception is thrown. If the filename
/*       is changed to a nonexistent name no exception is thrown, but only a 
/*       placeholder is echoed.

$im->readImage ( $image );

$canvas = new Imagick();

$canvas->newImage(400, 400, "#E1EFF9"); 

$canvas->setImageFormat('jpg');

header("Content-Type: image/jpg");
echo $canvas;
?> 
routacarve
Posts: 3
Joined: 2011-01-25T07:23:38-07:00
Authentication code: 8675308

Re: Apache failure in msvcr100.dll on readimage

Post by routacarve »

.... further to this fwiw - IM display will display the image files I am having trouble with...
... Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Apache failure in msvcr100.dll on readimage

Post by magick »

It looks like the version of Apache you run cannot coexist with the msvcr100 DLL which is a recent Visual C++ redistributable DLL required by ImageMagick. Its possible a recent version of Apache may work but perhaps not.
routacarve
Posts: 3
Joined: 2011-01-25T07:23:38-07:00
Authentication code: 8675308

Re: Apache failure in msvcr100.dll on readimage

Post by routacarve »

Thanks Magick for your input.
I eventually found that by going back to version 6.6.4.0 I could get the functionality and stability that I need. Some discussion of similar behaviour on http://valokuva.org/?p=161#comments.

As regards Apache version, the only newer version that I have seen gets me into alpha testing, and I'm not convinced that would be a comfortable place for someone already climbing a learning curve. :?

Cheers,
Post Reply