flashactionscript-3debuggingactionscriptflexbuilder

Debugging a flash stack overflow


I have a swf that is being loaded by a third party swf. I have source code and recompile my swf, but don't have code to the third party swf.

Somewhere, likely in my code, there's a stack overflow. In a debug flash player, I get a nice popup dialog with a stack trace when the overflow occurs:

Error: Error #1023: Stack overflow occurred.
    at Object$/Object::_hasOwnProperty()
    at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
    at Object$/Object::_hasOwnProperty()
    at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
    at Object$/Object::_hasOwnProperty()

It goes on like this for 64 lines. However, it looks like I'm only seeing the last 64 stack frames, not the whole stack trace.

Is there a way to see the full stack trace? As an alternative, is there a way to limit the stack depth?

I've spent a full day trying to debug this, but am running on very little information, and a lack of tools. Here's what I've tried:

Any other strategies I should be trying?


Solution

  • Does this sounds like the same problem? Sorry as it's not directly an answer on how you could further debug this but more a pointer to someone who had a similar problem and found a solution.