Windows Server 2003 and IIS

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Windows Server 2003 and IIS

Post by abjones »

I have installed ImageMagick-6.3.0-1-Q8-windows-dll.exe under Windows Server 2003. I am running the latest OS patches and the latest ActivePerl 5.8.8 build 819

I am running ImageMagick through IIS server.

I give a web browser a local url to a source file DEMO.ASP and this works as expected and displays testing in the browser:

Code: Select all

<%@ Language=PerlScript %>
<%
use strict;
use Win32::ASP;
use vars qw( $Response );
my $tile = 'testing';
use Win32::OLE::Variant;
$Response->BinaryWrite(Win32::OLE::Variant->new(VT_UI1,$tile));
%>
By adding use Image::Magick; I get
error '80004005'
Internal Error

Code: Select all

<%@ Language=PerlScript %>
<%
use strict;
use Win32::ASP;
use vars qw( $Response );
my $tile = 'testing';

use Image::Magick;

use Win32::OLE::Variant;
$Response->BinaryWrite(Win32::OLE::Variant->new(VT_UI1,$tile));
%>
I also get problems running DEMO.PLX where IIS runs perlis.dll

Code: Select all

#!c:/perl/bin/perl.exe
use strict;
my $tile = "testing";
use Image::Magick;
use CGI qw(:standard -nph);
print header("text/html");
print  $tile;
ImageMagick-6.2.9-7-Q8-windows-dll.exe and earlier versioins work properly. I have not been able to get any version 6.2.9-8 or later to run. When I un-install 6.3.0 and iinstall 6.2.9-7 then all is well again.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Grab ImageMagick 6.3.0-2 Beta from ftp://magick.imagemagick.org/pub/ImageMagick/beta and see if that fixes the problem.
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Post by abjones »

I tried ImageMagick 6.3.0-2 Beta and still get "server error".
I load ImageMagick-6.2.9-7-Q8-windows-dll.exe and all is well.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We released 6.3.0-2 and it does have a memory corruption patch. We would verify if it fixes the problem you are havng but we do not have the IIS server installed, we use Apache.
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Post by abjones »

I have no choice about using Windows Server 2003 and IIS.

I tried the "release version" ImageMagick-6.3.0-2-Q8-windows-dll.exe
and get the same error. Nothing shows in the event logs and no usefull error message in the browser screen. Nothing in PerlIS-Err.log
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We checked the differences between 6.2.9-7 and 6.2.9-8 and nothing seems like it would cause IIS to hang/crash. 6.2.8 switched the configuration files from a custom parser to the built-in XML parser and there is new code to support ordered dithers. Its possible there may be a symbol conflict but without some sort of stack trace or debugging information from IIS there is little hope we'll be able to determine why IIS is crashing.

Did you check the Windows event log. Perhaps there is an event that IIS is posting when it hangs/crashes.
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Post by abjones »

I installed ImageMagick-6.3.0-3-Q8-windows-dll.exe and ran url to demo1.asp:

Code: Select all

<%@ Language=PerlScript %>
<html><head><title>Testing</title></head>
<body>
<%
use Image::Magick;
%>
testing
</body></html>
and get

Code: Select all

$Response->writeblock(0); use Image::Magick; $Response->writeblock(1);  error '80004005'

Internal Error

/wis/PerlSupport/demo1.asp, line 0 
Nothing in Windows Event Viewer. If I run demo.asp again without stopping and starting IIS, then IIS hangs.

When I run url to demo.plx:

Code: Select all

#!c:/perl/bin/perl.exe
use strict;
use Image::Magick;
use CGI qw(:standard -nph);
my $tile = "testing";
print header("text/html");
print  $tile;
I get in the browser:

Code: Select all

Content-type: text/html

'D:\InetPub\WWWRoot\wis\PerlSupport\demo.plx' script produced no output
and in Windows Event Viewer under Application I get:

Code: Select all

Script error(s) from PerlIS.dll logged in: C:\Perl\bin\PerlIS-Err.log
and in perlIS-Err.log I get

Code: Select all

*** 'D:\InetPub\WWWRoot\wis\PerlSupport\demo.plx' error message at: 2006/11/07 15:45:25
INTERNAL ERROR: PerlParse did not exit clean!!!!
I have tried this on my back-up server that does not have all the gack from my day to day tinkering, but I get the same result: 6.2.9-7 works where as later versions do not.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We've been getting reports about this problem but no one has offered a stack trace that implicates ImageMagick or PerlMagick. Recent builds of ImageMagick use the 5.8.8 817 version of ActiveState Perl and the service pack 1 of the Visual C++ 2003.
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Post by abjones »

I installed ActiveState build 817 and get the same results.

I work in an office with 20 other wildlife management trained folks that have no experience in compiling C programs.

Several years ago I compiled IM 5.3.3 by following instructions supplied with that release. I can aquire MS Visual C 2003 with sp1 and follow directions, but I don't really know what I am doing.

I don't know how to get a stack trace. Can you compile and point me to an installable download with debugging options set?

Or can you direct me to literature I should read and suggestions on compiling IM?

Thanks for your time!
Post Reply