Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
shafich
Posts: 74
Registered: ‎01-12-2012
My Device: Developer
My Carrier: Developer

Application breaks "Olympia: Waited longer than 6000 milliseconds on event thread for response to event type"

I am using Timer and TimerTask ...to make a count down in my application (you get 10 questions with 30secs till end of round number x and on goes my application)...

Now I am getting this after a while of using/playing the app :

Thread [Celebrity(328)id=410141696] (Suspended (exception IllegalStateException))
DemuxingBridge.sendMessageAndWait(short, DataListWriter, short, long) line: 404
DemuxingBridge(OlympiaBridge).umpUICmdSetActualVisibleSize(int, int, int, short, short, long) line: 3466
OlympiaBrowserContent$OlympiaWebPageImpl(OlympiaWebPage).setActualVisibleSize(XYRect) line: 859
NavigationNodeOlympiaField(OlympiaField).updateOlympiaViewport() line: 1493
NavigationNodeOlympiaField(OlympiaField).subpaint(Graphics) line: 1310
NavigationNodeOlympiaField(Manager).subpaint0(Graphics) line: 3631
NavigationNodeOlympiaField(Field).paintSelf(Graphics, boolean, int, int) line: 4961
NavigationNodeOlympiaField(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
BrowserContentManager(Manager).paintChild(Graphics, Field) line: 3101
BrowserContentManager(VerticalFieldManager).subpaint(Graphics) line: 572
BrowserContentManager(Manager).subpaint0(Graphics) line: 3631
BrowserContentManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
BrowserContentManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
e$Celebrity(Manager).paintChild(Graphics, Field) line: 3101
e$Celebrity(VerticalFieldManager).subpaint(Graphics) line: 572
e$Celebrity(Manager).subpaint0(Graphics) line: 3631
e$Celebrity(Field).paintSelf(Graphics, boolean, int, int) line: 4961
e$Celebrity(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
f$Celebrity(Manager).paintChild(Graphics, Field) line: 3101
f$Celebrity(VerticalFieldManager).subpaint(Graphics) line: 572
f$Celebrity(Manager).subpaint0(Graphics) line: 3631
f$Celebrity.paint(Graphics) line: not available
f$Celebrity(Field).paintSelf(Graphics, boolean, int, int) line: 4961
f$Celebrity(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
d$Celebrity(Manager).paintChild(Graphics, Field) line: 3101
d$Celebrity(VerticalFieldManager).subpaint(Graphics) line: 572
d$Celebrity(Manager).subpaint0(Graphics) line: 3631
d$Celebrity(Field).paintSelf(Graphics, boolean, int, int) line: 4961
d$Celebrity(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
Banner$Celebrity(Manager).paintChild(Graphics, Field) line: 3101
Banner$Celebrity(HorizontalFieldManager).subpaint(Graphics) line: 320
Banner$Celebrity(Manager).subpaint0(Graphics) line: 3631
Banner$Celebrity(Field).paintSelf(Graphics, boolean, int, int) line: 4961
Banner$Celebrity(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
HorizontalFieldManager(Manager).paintChild(Graphics, Field) line: 3101
HorizontalFieldManager.subpaint(Graphics) line: 320
HorizontalFieldManager(Manager).subpaint0(Graphics) line: 3631
HorizontalFieldManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
HorizontalFieldManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
bottom(Manager).paintChild(Graphics, Field) line: 3101
bottom(HorizontalFieldManager).subpaint(Graphics) line: 320
bottom(Manager).subpaint0(Graphics) line: 3631
bottom(Field).paintSelf(Graphics, boolean, int, int) line: 4961
bottom(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
BGVerticalFieldManager(Manager).paintChild(Graphics, Field) line: 3101
BGVerticalFieldManager(VerticalFieldManager).subpaint(Graphics) line: 572
BGVerticalFieldManager(Manager).subpaint0(Graphics) line: 3631
BGVerticalFieldManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
BGVerticalFieldManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
VerticalFieldManager(Manager).paintChild(Graphics, Field) line: 3101
VerticalFieldManager.subpaint(Graphics) line: 572
VerticalFieldManager(Manager).subpaint0(Graphics) line: 3631
VerticalFieldManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
VerticalFieldManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
TitleStatusManager(Manager).paintChild(Graphics, Field) line: 3101
TitleStatusManager(Manager).subpaint(Graphics) line: 3654
TitleStatusManager(Manager).subpaint0(Graphics) line: 3631
TitleStatusManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
TitleStatusManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
ScreenDelegateManager(Manager).paintChild(Graphics, Field) line: 3101
ScreenDelegateManager(Manager).subpaint(Graphics) line: 3654
ScreenDelegateManager(Manager).subpaint0(Graphics) line: 3631
ScreenDelegateManager(Field).paintSelf(Graphics, boolean, int, int) line: 4961
ScreenDelegateManager(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
Mainscreen(Manager).paintChild(Graphics, Field) line: 3101
Mainscreen(Screen).paint(Graphics) line: 5239
Mainscreen(Field).paintSelf(Graphics, boolean, int, int) line: 4961
Mainscreen(Manager).paintSelf(Graphics, boolean, int, int) line: 3128
Mainscreen(Screen).doPaint0() line: 2361
UiEngineImpl.paintToBackingStores() line: 1160
UiEngineImpl.doPainting() line: 921
UiEngineImpl.processMessage(Object, Message, boolean) line: 4785
Root(Application).doProcessNextMessage(Message) line: 2790
Root(Application).processNextMessage(Message, boolean) line: 1921
Root(Application).enterEventDispatcher() line: 1702
Root.main(String[]) line: 25

[574.164] FD Turned Off;
[584.179] VM:smileytongue:ISVt=0,h=5948,id=d5cc5fdc4f24346a
[606.32] Olympia: Waited longer than 6000 milliseconds on event thread for response to event type [2306]
[606.382] Bridge Type: 5 PID: 6832 Exception setViewPort: net.rim.device.internal.bridge.BridgeException: Chan[606.382] nel write failed (RIM_E_INVAL): The channel is not open

 



Any Idea as to what is trigerring this error ? or what can I do to avoid this ? 
All help is appreciated .. Thank You...  

 

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Application breaks "Olympia: Waited longer than 6000 milliseconds on event thread for response to event type"

It looks like you are executing a blocking operation on the event thread.

 

Is possible that you are opening a connection (http or DB) or doing any kind of slow operations on the UI thread?

 

According to the stack trace, the error is related to one of the paint methods.

 

E.

Please use plain text.
Regular Contributor
shafich
Posts: 74
Registered: ‎01-12-2012
My Device: Developer
My Carrier: Developer

Re: Application breaks "Olympia: Waited longer than 6000 milliseconds on event thread for response to event type"

Thanks...
I am using the Blackberry Ad Service api in testing mode...I have noticed that sometimes the application (rare but this happens) breaks on start up saying "Banner class$...couldn't fetch ad.." 

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Application breaks "Olympia: Waited longer than 6000 milliseconds on event thread for response to event type"

I have to admit that I haven't came across this issue and lately l've been using the ad service in test mode.
Anyway, try removing this from your code.
If the problem is solved than I suggest moving this thread to the ad service forum.
If not, you elimanted one possible cause of the problem and you are one step closer to find the answer. Contiue to eliminate until you will find the problem.
BTW, how many banners are you trying to display and where do you initiating/adding them?
Please use plain text.
New Contributor
abednego4609
Posts: 2
Registered: ‎01-29-2014
My Device: Torch 9860
My Carrier: XL

Re: Application breaks "Olympia: Waited longer than 6000 milliseconds on event thread for response to event type"

[ Edited ]

Hi, I know its been a while, but it seems to be a problem with BrowserField2. You can see that on Log :

 

" Olympia: Waited longer than 6000 milliseconds on event thread for response to event type "

 

It produced from Javascript engine of the browser.

 

Why Olympia producing this error?I dont know.

 

I was hoping someone here could provide answer.. :smileysad:

 

One thing i know for sure, i am facing this error right now, it is produced from a simple javascript`s alert function call, like   "alert('hehe');"    without quote.

 

FYI, i am making an application utilize browser field, and calling javascripts function from native java code.

 

Please, if anyone know how to solve this issue, please tell me...

Please use plain text.