Re: trying to track GWT timers

2009-07-27 Thread davidRoe

just to follow up, I was able to override setTimeout and perform some
tracking, record timer IDs and track those that expire, which left me
with a single timer that always seems to be present upon shutdown.  I
am now running code that should close that timer as soon as the app
knows it is terminating.  only time will tell whether it will have an
impact - I'm still waiting to see whether I can reproduce the crash.

and, by the way, I tried searching the GWT group for this thread and
it returned nothing - the index seems broken.

On Jun 30, 9:46 am, davidRoe  wrote:
> I had thought the same.
>
> I am running GWT code under MobileSafari on the iPhone and am seeing
> occasional program crashes on exit.  the stack trace seems to indicate
> that a timer is being fired, and I believe that perhaps the UIWebView
> has disappeared by the time it runs code expecting it to be there.
>
> #0  0x312e5e60 in KJS::FunctionExecState::FunctionExecState ()
> #1  0x312e5b98 in KJS::FunctionImp::callAsFunction ()
> #2  0x312df0f4 in KJS::FunctionCallDotNode::evaluate ()
> #3  0x312e5a78 in KJS::ExprStatementNode::execute ()
> #4  0x312e61c4 in KJS::FunctionBodyNode::execute ()
> #5  0x312e5bac in KJS::FunctionImp::callAsFunction ()
> #6  0x31326ae8 in KJS::JSObject::call ()
> #7  0x328296d4 in WebCore::ScheduledAction::execute ()
> #8  0x32829350 in KJS::Window::timerFired ()
> #9  0x32829208 in KJS::DOMWindowTimer::fired ()
> #10 0x32824c84 in WebCore::TimerBase::fireTimers ()
> #11 0x328249ac in WebCore::TimerBase::sharedTimerFired ()
> #12 0x3282490c in WebCore::timerFired ()
> #13 0x30269d8e in CFRunLoopRunSpecific ()
> #14 0x30269326 in CFRunLoopRunInMode ()
> #15 0x32bc0748 in RunWebThread ()
> #16 0x3146178c in _pthread_body ()
> #17 0x in ?? ()
>
> if I can figure out how to override setTimeout() and setInterval(), I
> may be able to track what is going on.
>
> /dave
>
> On Jun 30, 5:12 am, Ian Bambury  wrote:
>
> > Surely when you close the browser window (or navigate away) the timers are
> > gone.
> > Ian
>
> >http://examples.roughian.com
>
> > 2009/6/30 davidroe 
>
> > > I have a situation where I need to ensure that _every_ timer launched
> > > is closed upon exit, meaning I track each timer I create and ensure
> > > that I cancel it when the application is about to close.
>
> > > is anyone aware of any timers that GWT launches that are, perhaps,
> > > allowed to self disintegrate, rather than actually being cancelled?
>
> > > thanks,
> > > /dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: trying to track GWT timers

2009-06-30 Thread davidRoe

I had thought the same.

I am running GWT code under MobileSafari on the iPhone and am seeing
occasional program crashes on exit.  the stack trace seems to indicate
that a timer is being fired, and I believe that perhaps the UIWebView
has disappeared by the time it runs code expecting it to be there.

#0  0x312e5e60 in KJS::FunctionExecState::FunctionExecState ()
#1  0x312e5b98 in KJS::FunctionImp::callAsFunction ()
#2  0x312df0f4 in KJS::FunctionCallDotNode::evaluate ()
#3  0x312e5a78 in KJS::ExprStatementNode::execute ()
#4  0x312e61c4 in KJS::FunctionBodyNode::execute ()
#5  0x312e5bac in KJS::FunctionImp::callAsFunction ()
#6  0x31326ae8 in KJS::JSObject::call ()
#7  0x328296d4 in WebCore::ScheduledAction::execute ()
#8  0x32829350 in KJS::Window::timerFired ()
#9  0x32829208 in KJS::DOMWindowTimer::fired ()
#10 0x32824c84 in WebCore::TimerBase::fireTimers ()
#11 0x328249ac in WebCore::TimerBase::sharedTimerFired ()
#12 0x3282490c in WebCore::timerFired ()
#13 0x30269d8e in CFRunLoopRunSpecific ()
#14 0x30269326 in CFRunLoopRunInMode ()
#15 0x32bc0748 in RunWebThread ()
#16 0x3146178c in _pthread_body ()
#17 0x in ?? ()

if I can figure out how to override setTimeout() and setInterval(), I
may be able to track what is going on.

/dave

On Jun 30, 5:12 am, Ian Bambury  wrote:
> Surely when you close the browser window (or navigate away) the timers are
> gone.
> Ian
>
> http://examples.roughian.com
>
> 2009/6/30 davidroe 
>
>
>
> > I have a situation where I need to ensure that _every_ timer launched
> > is closed upon exit, meaning I track each timer I create and ensure
> > that I cancel it when the application is about to close.
>
> > is anyone aware of any timers that GWT launches that are, perhaps,
> > allowed to self disintegrate, rather than actually being cancelled?
>
> > thanks,
> > /dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: trying to track GWT timers

2009-06-30 Thread Ian Bambury
Surely when you close the browser window (or navigate away) the timers are
gone.
Ian

http://examples.roughian.com


2009/6/30 davidroe 

>
> I have a situation where I need to ensure that _every_ timer launched
> is closed upon exit, meaning I track each timer I create and ensure
> that I cancel it when the application is about to close.
>
> is anyone aware of any timers that GWT launches that are, perhaps,
> allowed to self disintegrate, rather than actually being cancelled?
>
> thanks,
> /dave
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---