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

Web and WebWorks Development

Reply
Developer
jmace
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Widget freezes while interacting

I chose an item out of a select , query my sqlite DB and return the data to a div on screen. Simple enough and works 99% of the time.

 

However, that 1% pops up. My widget seems to freeze. I can no longer interact with anything on screen. I can't back out of my widget by hitting the back or the end call button. The only way I can escape from my widget is holding the menu button to open the application switcher. At this point, I can't open my widget again by clicking on the icon. Nothing happens.

 

Finally, (10 or so minutes later...) I get an "Uncaught exception: Application emitwidget (220) is not responding; process terminated"

 

The reason this is odd, After getting the error, I can open my widget again and it starts a new instance. I can go into my select and chose the same item that caused it to freeze and everything will work without a problem.

 

Please enlighten as to what might be going on here.

_________________________________________
www.jasonmace.com/blackberry
Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget freezes while interacting

Is this only happening when you are using the focus based navigation mode in your markup?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
jmace
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Re: Widget freezes while interacting

[ Edited ]

Tim,

 

I haven't had the issue with the Rim navigation mode off... only with it on.

_________________________________________
www.jasonmace.com/blackberry
Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget freezes while interacting

I wonder if it is a similar focus problem like you had with the push data where you needed to explicitly call focus back on the select.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
jmace
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Re: Widget freezes while interacting

I don't believe so. The same code works the rest of the time and just after I was able to get back into my widget (post RIM error dialog).

 

Also, I do a blackberry.focus.setFocus(....) at the end of the function that is called on the selection of an item.

_________________________________________
www.jasonmace.com/blackberry
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Widget freezes while interacting

Hello,

 

I have the same probleme with OS6.

 

What is the trick ?

Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Widget freezes while interacting

In my case, blackberry.focus.setFocus is the problem.

When I remove it, it works with OS6

I don't have the problem with OS5

Contributor
drjg22
Posts: 47
Registered: ‎03-27-2010
My Device: Bold 9000

Re: Widget freezes while interacting

I too have been experiencing this problem with my app for OS 6. However, even when I have disabled the navigation mode in the config.xml, I at times receive this error when queing results from my db and displaying it rows of a table.

Contributor
drjg22
Posts: 47
Registered: ‎03-27-2010
My Device: Bold 9000

Re: Widget freezes while interacting

Have you been able to find a solution for this? Has turning off the navigation mode solved this problem?

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget freezes while interacting

This seems really strange.  Does anyone have a chunk of code that will duplicate this problem consistently?  We can run it through its paces.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter