[Chameleon] Broken image instead of a map in IE

Ded Moroz hacker_ivanovich at yahoo.de
Sat Jan 21 03:43:08 EST 2006


Hi Jacob,
   
  finely I found a solution for my broken image problem. I just wrote to httpd.config of my ms4w server: keepalive off
  And the broken image problem for JPEG Files is gone. No idea why. But it works now! :)
   
  Thank you for your help :)))
  

"Delfos, Jacob" <jacob.delfos at maunsell.com> schrieb:
  Hi Ded,

I know that not all machines running IE have it. Most computers I ran
into did, and the registry entries fixed it for each. Although in your
instance (a single image), it would not be logical if the problem was
related to too many requests. Not sure what it could be.....
Unfortunately I have not been able to get Microsoft feedback. They're
hard to reach, and tend to forward you to a third party forum, full of
people telling you that the problem is my own fault because I must have
installed bad software...

I'm not sure what you could do, except using an 'onError' patch, to
reload when the image fails. In MapDHTML.js, line 557, I have:


content = "onError=\"imageErrorOccurred(gMapDHTMLURL)\" name=\"MapLayerDivImg\"
src=\""+gAPixel+"\" width=\""+gMapWiWidth+"\"
height=\""+gMapWiHeight+"\" border=\"0\"
onload=\"MapWHideActivityLayer();\"
onmouseover=\"MapWCaptureMouse(arguments[0]);\"
onmouseout=\"MapWReleaseMouse(arguments[0]);\">";


Then at the end of MapDHTML.js, I put:


//------------------------------------------------------------
var backupURL = "";
function imageErrorOccurred (mapurl)
{
//alert (mapurl);
document.images["MapLayerDivImg"].src =
document.images["mapimage"].src;
backupURL = mapurl;
setTimeout("reloadImage()",500);
}

function reloadImage()
{
document.images['MapLayerDivImg'].src = backupURL;
}
//-----------------------------------------------------------


This does not prevent it from occuring, but as soon as the image fails,
it reloads it. Typically the user won't realise anything went wrong.

Regards,

Jacob




> -----Original Message-----
> From: Ded Moroz [mailto:hacker_ivanovich at yahoo.de] 
> Sent: 17 January 2006 15:59
> To: Delfos, Jacob; Chameleon at lists.maptools.org
> Subject: RE: [Chameleon] Broken image instead of a map in IE 
> 
> Dear Jacob,
> 
> thank you for the fast answer. I've looked in the
> registry on the client machine, but there were no
> values like MaxConnectionsPer1_0Server or
> MaxConnectionsPerServer, so I've made them as new
> values and added to the registry. Unfortunately the
> broken link problem is still there. So I have really
> no idea what I should do now. :-(
> 
> 
> 
> --- Jacob Delfos schrieb:
> 
> > 
> > Ded,Paul,
> > 
> > I think this is related to the problem I described
> > on the Ka-Map list, 
> > although I can't understand why a single image would
> > fail due to too 
> > large a value for "maximum allowable simultaneous
> > connections".
> > The bug for this problem is:
> > http://bugzilla.maptools.org/show_bug.cgi?id=654
> > 
> > If this is the same problem, then it is caused by
> > Internet Explorer 
> > having a value of 10,000 for the maximum allowable
> > simultaneous 
> > connections. This is of course a ridiculous and
> > impractical value. It 
> > would basically mean that IE sends a request for
> > every possible object 
> > in the page at the same time. This can cause the
> > webserver (be it Apache 
> > or IIS) to fail to satisfy all those requests,
> > resulting in broken 
> > images (not just the map-image).
> > 
> > According to
> > http://support.microsoft.com/?kbid=282402 the value 
> > shouldn't be this high, but yet it seems default on
> > most up-to-date 
> > Windows installations I have seen (XP and 2k). To
> > try to fix it, you 
> > have to edit the registry on the client (machine
> > running IE) :
> > 
> > In:
> >
> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
> > 
> > Settings
> > Change value of MaxConnectionsPer1_0Server and
> > MaxConnectionsPerServer 
> > to something more decent (I used 4; Firefox uses
> > 24).
> > 
> > I'm waiting to hear back from Microsoft on this. I
> > hope they can fix 
> > this in a patch, so we don't have to put a note on
> > all websites asking 
> > visitors to hack their registry. I'm tired of having
> > to tell clients 
> > during demonstrations "This really doesn't normally
> > happen, you know.... 
> > it's not our fault!"
> > 
> > Please let us know whether this fixed it for you.
> > I'll update the bug 
> > once I know more from Microsoft.
> > 
> > regards,
> > 
> > Jacob
> > 
> > 
> > 
> > >This sounds like a problem Jacob and Bart have run
> > into. From what
> > >Jacob described recently, it may have been a
> > problem in IIS
> > >configuration ... looking for comments from Jacob
> > :)
> > 
> > >Cheers
> > 
> > >Paul
> > 
> > >On 6-Jan-06, at 2:54 PM, Ded Moroz wrote:
> > 
> > >> Hi dear community.
> > >>
> > >> I've the following strange problem on my
> > chameleon installation.
> > >> When I just send a simple request directly at a
> > drawmap.php like:
> > >>
> > http://server/chameleon/common/wrapper/drawmap.php?
> > >>
> >
> map_session_mode=1&run_query=0&sid=43be7fee135b7&dummy=0.17998100
> > >> +1136558079&UniqId=1136558467418989
> > >>
> > >> I just can see a normal map as a response. But
> > sometimes I just get
> > >> a broken image instead of a normal picture of my
> > map. The strange
> > >> thing is when I just made a request like already
> > showed and I push
> > >> the F5 it reloads the map but sometime it shows
> > me the broken image
> > >> as a response! . This error happens only when I
> > use the IE 6.0. On
> > >> Firefox or Opera every reload of the drawmap.php
> > is successful and
> > >> this error also takes place only when I request
> > huge JPEG images
> > >> (1000 x 600 Px). The error.log on my Apache
> > server doesn't
> > >> subscribe any errors and when I try to simulate
> > the same error
> > >> directly on the server
> > (http://localhost/chameleon/common/wrapper/
> > >> drawmap.php?...) it just doesn't happen. So I
> > suspect that the
> > >> error is maybe in the properties of the client
> > or in the properties
> > >> of my network.
> > >>
> > >> Thanks.
> > >>
> > >> P.S.: Sorry for my terrible English :-(
> > >>
> > >> Telefonieren Sie ohne weitere Kosten mit Ihren
> > Freunden von PC zu PC!
> > >> Jetzt Yahoo! Messenger installieren!
> > >> _______________________________________________
> > >> Chameleon mailing list
> > >> Chameleon at lists.maptools.org
> > >>
> > http://lists.maptools.org/mailman/listinfo/chameleon
> > 
> > 
> >
> >+-----------------------------------------------------------------+
> > >|Paul Spencer pspencer at dmsolutions.ca |
> > 
> >
> >+-----------------------------------------------------------------+
> > >|Applications & Software Development |
> > >|DM Solutions Group Inc
> > http://www.dmsolutions.ca/|
> > 
> >
> >+-----------------------------------------------------------------+
> > 
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> > 
> 
> 
> 
> 
> 
> 
> 
> ___________________________________________________________ 
> Telefonate ohne weitere Kosten vom PC zum PC: 
> http://messenger.yahoo.de
> 

_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
  


		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060121/3651d175/attachment-0001.html


More information about the Chameleon mailing list