views:

2394

answers:

3

i am working with a large XMl response from a webservice. when i try to get that using a url, after sometimes it displaya an error in Firebug that "script stack space quota is exhausted" how can i solve that????

+4  A: 

It sounds like there is some recursion going on when processing the xml, that is essentially causing a stack overflow (by any name).

Thoughts:

  • work with less data
  • if you are processing the data manually, try to use less recursion? perhaps manual tail-call or queue/stack based
  • consider json - then you can offload to the script host to rehydrate the object without any extra processing
Marc Gravell
+1  A: 

Have you tried disabling Firebug?

Alsciende
this is a good idea, just to make sure the problem is in firefox itself
annakata
its with the firefox itself
Jasim
A: 

As of Firefox 3, the available stack space has dropped from 4MB to ~= 640KB (I'm passing on word of mouth here).

Do you happen to be running FF3?

https://bugzilla.mozilla.org/show_bug.cgi?id=420874

Chris Hagan