Select to view content in your preferred language

Intermittent Dojo error on zooming

944
4
10-03-2011 07:08 AM
RexBradford
Emerging Contributor
Hello,

I am working on a Javascript mapping app, using v.2.4 of the ArcGIS toolkit.  Recently I have been getting intermittent but frequent Dojo hanging errors when zooming (roughly once per 15-20 zooms).  The Dojo error occurs after the onZoomStart event and before the onZoomEnd; there is no intervening code of mine between these that I'm aware of (onExtentChange is fired after onZoomEnd, and I removed my onExtentChange handler with no effect).

I have so far been unsuccessful in determining what I might have done to cause this (and the entire app is way too big to try to reproduce here).  There error I see in Firebug is usually something like "_831 is undefined", and the line of code with the error is the unhelpful mega-line which defines the entire Dojo toolkit.:

if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provid............

Has anybody seen such hanging behavior due to zooming and know where the cause might lie? Or how to debug something like this?  Thanks in advance if so.

Rex Bradford
0 Kudos
4 Replies
derekswingley1
Deactivated User
Is this specific to one browser or does it happen in all browsers?

Can post some sample code to repro the issue?
0 Kudos
RexBradford
Emerging Contributor
Well, good questions.  Firefox on Mac (v.7), unfortunately my default browser, is the only one that seems to fail outright - sometimes Firebug will let me click on the error to continue, sometimes the page just freezes.

All other browsers I've tested (Safari Mac, IE 9 on Win7, Firefox on Win7) spew the same sorts of errors, and lots of them (xxxxx is undefined, also dojo.io.script error") while zooming, but the browser doesn't seem to care.

I unminified the 2.4 dojo/esri js file, and verified that it is the base map tiles (cache?) where the undefineds are popping out from.

I do not at this point have a small "test case" which exhibits this problem, only the large app.

Rex Bradford
0 Kudos
derekswingley1
Deactivated User
Is your app public?
0 Kudos
SanajyJadhav
Deactivated User
Hi,

I am also facing sort of similar issue. After zooming 3-4 times, this is what we get in Firebug console.

[PHP]
dojo.io.script.jsonp_dojoIoScript_9_02876_2_388657133974021_49_104 is undefined
http://gens003/ArcGIS/rest/services/SVP1/Map_Viewer_bldgs/FeatureServer/7/query?f=json&returnGeometr...
Line 1
[/PHP]

This is the featurelayer with mode 'OnDemand'.The strange thing is if I set ( which I can't) mode to 'SnapShot', very unlikely I would get this error.

I am not sure how to fix this.Any help is appreciated.

Thanks,
Sanjay.
0 Kudos