You Are Here:

Community: Developer Discussion Boards

#1 Old S60 panic box, ViewSrv 11 - 2004-04-24, 21:34

Join Date: Dec 2003
Posts: 45
Stengun
Offline
Registered User
Hi,

My java app brings up the follow panic box from time to time (once in a blue moon):

App.Closed
Menu
ViewSrv 11


I've notice some talk about fixes for this in the symbian discussion boards, but not seen anyone post a possible fix in java. Any ideas what is causing this, and how to prevent the panic box?

Thanks in advance.
Reply With Quote

#2 Old 2004-04-26, 11:23

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
This is a Symbian painc and is obviously a bug in a JVM. However, if you have to have a workaround..

This Panic is thrown by ViewSrv if your application doesn't respond to the view server in time (10-20 secs usually).
Are there any endless loops in your application? Something like
Code:
while (true) {
  updateGameState();
}
Or maybe you are playing with threads priorities and some high priority thread takes all the time blocking UI thread?
Reply With Quote

#3 Old 2004-04-26, 14:19

Join Date: Dec 2003
Posts: 45
Stengun
Offline
Registered User
Hi,

There are not any loops of that nature that I know of. I'm certainly not playing with thread priorities.

Most of my code is called from a function in the main paint function. So I'm wondering if I perhaps doing too much in there from time to time.

The bug is reported by our publisher's QA dept, and only seems to be after a few hours of play and not very often. I want them to waive the bug if possible. Can you explain a little more about:

"This is a Symbian painc and is obviously a bug in a JVM."

Are you saying this isnt really a java thing at all?

Thanks
Reply With Quote

#4 Old 2004-04-26, 14:24

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
Stengun
Most of my code is called from a function in the main paint function. So I'm wondering if I perhaps doing too much in there from time to time.

Have you read the recommendations NOT to do big job within your paint and/or keypress handing routines? ;)
These are UI-thread routines (not nesessary, but most often) and they are expected to finish as soon as possible.

"This is a Symbian painc and is obviously a bug in a JVM."

Are you saying this isnt really a java thing at all?

Sure. Have you ever read Java specification stating anything about ViewServ? :)
However, this is a real world, and if you are not following recommendations and use not recommended ways of doing things you might find JVM implementation bugs, that are not fixed.. just because nobody found them.
Reply With Quote

#5 Old 2004-04-26, 14:27

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
These are UI-thread routines (not nesessary, but most often) and they are expected to finish as soon as possible.

It is probably too late to change design of your app this much, but you can try workarounding by adding some yield() calls into your lengthy routings. This will pass flow control out of your thread for a bit of time
Reply With Quote

#6 Old 2004-04-26, 22:34

Join Date: Dec 2003
Posts: 45
Stengun
Offline
Registered User
Thanks for the help. I'll stick a few yeilds in here and there and see if QA come up with anything. Thanks!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia