[Chameleon] Re: IE hangs with drawmap.php

uli mueller uli.mueller at gmx.ch
Fri Feb 24 12:16:56 EST 2006


Okay, solved - although I do not quite understand the mechanisms behind!

Obviously my problem was similar to the one described here: 
http://www.maptools.org/bugzilla/show_bug.cgi?id=893. The bug is not 
resolved but a work-around is proposed:

Instead of assigning drawmap.php as an image source we changed the 
chameleon source code in order to save the image first to a file.  Then 
we assign the url of the file to the client's image.src.

I would still be interested if anyone has an idea why this all 
happened!? Especially why it happened only in IE and only with HTTP/1.1?

Thanks to everyone who contributed!

Cheers, Uli



Jonathan

When I insert some echos in drawmap.php, I get the message "The image
... cannot be displayed, because it contains errors".
That is what we would expect. The header defines the document as PNG and
so any call to echo within this document must be interpreted as an error.

Uli

Jonathon Coombes wrote:
> 
> On 24/02/2006, at 1:28 AM, uli mueller wrote:
> 
>> Julien
>>
>> sorry, my mistake, now the link below is running again.
>>
>> I already checked drawmap.php. IE runs everything up the call to  
>> saveImage.
>>
>> In my version this is line 980:         $url = $oImage->saveImage("");
> 
> 
> hi Uli,
> 
> Does it give the same result with Firefox, or is the above different?
> 
> Regards
> Jonathon
> 
> 


uli mueller wrote:

 > Hi All
 >
 > Can anybody tell why Internet Explorer (version 5 and 6) hangs  with 
some images produced from drawmap.php?
 >
 > With Firefox everything is fine. However when I call the same  URL in 
IE the browser hangs completely, consuming most of my CPU  and freezing 
the whole system after some minutes!
 > This happens only at certain map extents or scales. I tried  changing 
the output format options in chameleon.xml as well as  in the mapfile. 
The only effect was that other map extents  caused the problem. I found 
no configuration that worked for all  situations.
 >
 > I have copied and posted some of the images produced from 
drawmap.php below. However when I call the saved images with  their 
extension even IE manages to display them.


More information about the Chameleon mailing list