My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3159: Markers fail to display on IE8 when using Adsense Ad Unit
12 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Apr 2011


Sign in to add a comment
 
Reported by [email protected], Mar 17, 2011
Compare the following two page on IE8 (you can change the city something like node=city/mountain-view-ca or node=city/new-york-ny using a city/<town in lower cases and dashes>-<statecode>)

http://www.topix.com/map?node=city/san-francisco-ca (using v=3.3)

to

http://www.topix.com/map?node=city/san-francisco-ca&latest_version=1 (using latest, currently v=3.4)

IE8 gives the following error
===========================
Message: Unspecified error. 
Line: 33 
Char: 511 
Code: 0 
URI: http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/5/%7Bmain,adsense%7D.js 
=============================

Actually Firefox works, but shows an array out of bounds access error
=================
Index or size is negative or greater than the allowed amount" code: "1
[Break On This Error] (86 out of range 42)
{main,adsense}.js (line 86)
===============

Currently we are using v3.3, but we think the impression tracking for the Adsense Map Ad Unit in that version is messed up (i.e. showing that we have about 10% of the actually Ad impressions we are giving).

Thank you
Mar 17, 2011
#1 [email protected]
Just adding a little more information - the markers are visible on Chrome, Firefox and Safari. However, Firefox and Chrome (while being about to handle the exception and keep running javascript on the page) both report errors in their Javascript console. Here is the error in Chrome:

Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
HA.j.HA.l:29
HA.j.HA.l:29
LA:30
a.b:30
Xe.R%7Bmain,adsense%7D.js:27
b.b:33
Xe.R%7Bmain,adsense%7D.js:27
CA.Ub:28
FA.C:27
a%7Bmain,adsense%7D.js:9
CA
Mar 23, 2011
#2 [email protected]
Did you get any response to this or resolve the issue? I'm getting a similar error for for the geometry library instead of adsense.
Mar 24, 2011
Project Member #3 [email protected]
Yes, I am looking into it but your site is quite large and complex. Are you able to create an example with the least amount of code that still demonstrates the problem?

Thanks
Status: NeedsMoreInfo
Mar 24, 2011
#4 [email protected]
@greg - this is the first response just now. Issue is not resolve yet.

Are you asking me (I reported the adsense bug) or [email protected]? 

The link I gave ( http://www.topix.com/map?node=city/san-francisco-ca&latest_version=1 ) is pretty much just big google map with a little bit of javascript to manage the markers. I am guessing if you just create a map with a lot of randomly created markers (say 100-300 markers) AND a Adsense Map Ad Unit... you should be able  to reproduce the error.

If it is my example. Please tell me what part of my javascript you are having trouble with... and I will try to simplify.

Thank you for looking at this issue.
Mar 24, 2011
Project Member #5 [email protected]
I was referring to the topix link. It has almost 1000 lines in the file and is a bit of a mess to try and isolate what would be causing the error.
Mar 24, 2011
#6 [email protected]
Hey you go... I've stripped it down to an example that is only 55 lines.

http://www.topix.com/map_bug (uses v=3.3 and has no errors)

http://www.topix.com/map_bug?latest_version=1 (uses latest version of api and show an invalid argument or "An invalid or illegal string was specified (88 out of range 42)" error in adsense.js).

Let me know if this is sufficient or if you want me to add/remove something from the example.
Mar 24, 2011
Project Member #7 [email protected]
Thanks thats much easier to investigate now.
Apr 14, 2011
#9 [email protected]
Hi, just checking back after a month. I see the status is still listed as "NeedsMoreInfo". I was wondering if you need anything more so as to change the issue status at least to "Confirmed".

Thank you for your time
Apr 14, 2011
Project Member #10 [email protected]
The problem is in your JSON object you have a key "eventful_loaded": 1 which you are then trying to turn into a LatLng object.

You should validate that var latlng_pair = point.split(",") is actually of size 2 and will be a valid LatLng before you create the object.
Status: Invalid
Apr 14, 2011
#11 [email protected]
Sorry, in my zeal to simply the original javascript code for you. I removed the some conditional checks in the that exist in the original code to handle these situations. I have added the checks in the sample code. Can you please reopen the bug and investigate? (I still see the error on IE8).

http://www.topix.com/map_bug?latest_version=1

Thank you.
Apr 14, 2011
Project Member #12 [email protected]
Bumping back to new until I verify - I do see the error in IE8 now - I just need to verify the cause :)
Status: New
Apr 14, 2011
Project Member #13 [email protected]
Actually, looking at your example in IE8 I am not able to see any errors. Do you still see it?
Status: NeedsMoreInfo
Apr 14, 2011
#14 [email protected]
Thank you for the quick reply!

Yes... it happens inconsistently onload... but pretty reliably if I drag and map around a little. I suspect the error occurs when the Google Adsense for Map unit trying to refresh itself with a new ad (my guess).

===

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Fri, 15 Apr 2011 03:57:15 UTC


Message: Invalid argument.
Line: 9
Char: 118
Code: 0
URI: http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/4/9/%7Bmain,adsense%7D.js
======
Apr 14, 2011
Project Member #15 [email protected]
Confirmed. You need to drag the map to cause the error.

This error is not related to markers at all - if you remove the markers the error still happens.
Status: Acknowledged
Labels: Internal-4302220
Apr 28, 2011
Project Member #16 [email protected]
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-3.4
Sign in to add a comment

Powered by Google Project Hosting