I'm not sure you can try/catch a stack overflow, and adding "try" does change 
the stackframe.  I think you're just running out of stack.  The stacks have 
different sizes on different platforms.  What kinds of local variables are in 
each method on the stack?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Erik de Bruin
Sent: Tuesday, July 14, 2009 3:01 AM
To: [email protected]
Subject: Re: [flexcoders] Re: "undefined" in stack trace (Console), stack 
overflow (2nd try)

Alex,

Well, that's the thing. The code in that method doesn't seem to be the
problem. If I put the seemingly offending line in a try...catch block,
it runs without triggering the catch. And weirder still, the
"undefined" exception happens somewhere a little further in the
flow...

This happens only when I play the piece in AIR on a Mac. AIR on
windows doesn't show this problem and it also doesn't happen when the
code runs in the Flash plugin in a browser (on both platforms). Are
there any known issues that might relate to this?

Thanks again,

EdB

On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui<[email protected]> wrote:
>
>
> Or show the code in that method.  If you blow up the stack, you can't
> guarantee you'll get correct information in the stacktrace.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc.
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of valdhor
> Sent: Friday, July 10, 2009 9:03 AM
> To: [email protected]
> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
>
>
>
> Possibly completely unrelated to the Stack Overflow error (Or maybe the
> change is now showing where the original error came from.
>
> I would try debugging at or around line 114 of SheetItem.as.
>
> --- In [email protected], "erikdebruin_nl" <erikdebr...@...> wrote:
>>
>> Steve,
>>
>> No luck :-(
>>
>> The stack trace look like this:
>>
>> <Console output>
>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>> at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>> em.as:114]
>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>> at flash.data::SQLStatement/internalExecute()
>> at flash.data::SQLStatement/execute()
>> </Console output
>>
>> Any ideas or suggestions as to what might cause the "undefined"?
>>
>> Regards,
>>
>> EdB
>>
>> --- In [email protected], "valdhor" <valdhorlists@> wrote:
>> >
>> > A co-worker had the same error the other day (In the web application
>> though, not in AIR): Stack Overflow.
>> >
>> > In his case it turned out to be "rampant" events. He made sure to use
>> event.stopImmediatePropagation() when the event was no longer required
>> to bubble and the error went away.
>> >
>> > This may not fix your problem but it is well worth doing.
>> >
>> >
>> > HTH.
>> >
>> >
>> > Steve
>> >
>> >
>> >
>> > --- In [email protected], "erikdebruin_nl"
>> <erikdebruin+flexcoders@ wrote:
>> > >
>> > > Hi,
>> > >
>> > > I've Googled me senseless, but I can't find a clue to my latest
>> problem:
>> > >
>> > > When I run my application in the browser, all is fine. When the same
>> app in AIR (we've build it so the same codebase is shared between on-
>> and offline versions), I get an exception and the last line in the stack
>> trace (as shown in the Console) reads "undefined". The error dialog the
>> player throws up (after clicking on the "Resume (F8)" button in the
>> debug perspective) tells me a "stack overflow" happened.
>> > >
>> > > The "funny" thing is, when I disable the code that seems to be the
>> cause (taking my clues from the stack trace), the problem remains, but
>> the stack trace tells me another line is the problem... and so on and
>> on.
>> > >
>> > > Google tells me that a stack overflow mostly has to do with rampant
>> recursion, but my app doesn't use recursion anywhere. It does however
>> use a lot of event chains. Do these count as "recursion"?
>> > >
>> > > What does it mean that the last line of the stack trace reads
>> "undefined"?
>> > >
>> > > Any suggestions about further debugging my problem are very welcome!
>> > >
>> > > Thanks in advance,
>> > >
>> > > EdB
>> > >
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links



Reply via email to