You Are Here:

Community: Developer Discussion Boards

#1 Old ViewSrv 9 panic while exiting - 2007-09-10, 12:29

Join Date: Apr 2007
Posts: 81
Location: Lublin, Poland
janekw_'s Avatar
janekw_
Offline
Regular Contributor
Hi,

I have a running standalone (ensymbled) app on the phone. I switch to some othe app (e.g. fexplorer), then I come back to my app. When I try to exit I get the mentioned panic.
I test this issue on a really simple app now, like
Code:
import appuifw, e32
def exit_key_handler():
    app_lock.signal()
appuifw.app.exit_key_handler = exit_key_handler
appuifw.app.title = u'whatever'
appuifw.app.body = appuifw.Text()
app_lock = e32.Ao_lock()
app_lock.wait()
appuifw.app.set_exit()
My guess it has something to do with background / foreground switching, but I don't event know if there is some callback informing my app of the switch event?

Thanks very much for any possible interest


whatever happens happens
Reply With Quote

#2 Old Re: ViewSrv 9 panic while exiting - 2007-09-11, 19:01

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Hello janekw

I cant get the type of app u r building,I mean the utilty.Is is for an exit handler? or for back/fore switching...

Please specify...

-Pankaj Nathani
Reply With Quote

#3 Old Re: ViewSrv 9 panic while exiting - 2007-09-12, 08:16

Join Date: Apr 2007
Posts: 81
Location: Lublin, Poland
janekw_'s Avatar
janekw_
Offline
Regular Contributor
I don't get you... What my app does is meaningless, my point is such fairly standard code causes panic when you come back to the app from whatever another app on the phone and when you exit yours. At least when it's a standalone - 'sised' with 'ensymble' utility, like in http://wiki.forum.nokia.com/index.ph...e_Applications


whatever happens happens
Reply With Quote

#4 Old Re: ViewSrv 9 panic while exiting - 2007-09-12, 14:19

Join Date: Sep 2003
Posts: 209
Location: Finland
otsov
Offline
Regular Contributor
Quote:
Originally Posted by janekw_ View Post
Hi,

I have a running standalone (ensymbled) app on the phone. I switch to some othe app (e.g. fexplorer), then I come back to my app. When I try to exit I get the mentioned panic.
You stumbled into a bug - Please report this to the SourceForge site of PyS60.

Based on this:

http://discussion.forum.nokia.com/fo...p/t-21240.html

Adding these magical lines:

Code:
  PrepareToExit();
  DeactivateActiveViewL();
to the "CAmarettoAppUi:oExit()" method in file "Python_appui.cpp" seems to solve the problem at least in emulator (before the "finalizeappuifw" call).

Thanks for your detailed report.
Reply With Quote

#5 Old Re: ViewSrv 9 panic while exiting - 2007-09-12, 15:26

Join Date: Apr 2007
Posts: 81
Location: Lublin, Poland
janekw_'s Avatar
janekw_
Offline
Regular Contributor
To tell the truth I didn't notice it on the emulator, but I'll take your word for it, submit the bug to SF and let god (jplauril) sort'em out.


whatever happens happens
Reply With Quote

#6 Old Re: ViewSrv 9 panic while exiting - 2007-10-05, 11:45

Join Date: Apr 2007
Posts: 81
Location: Lublin, Poland
janekw_'s Avatar
janekw_
Offline
Regular Contributor
Otsov, your solution works also on the device, I can confirm it.


whatever happens happens
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
ViewSrv 11 panic : when menu button of 7650 is pressed on an active app nitinkumar Symbian User Interface 6 2008-12-09 20:20
Using Bluetooth serial port in MIDlets (nokia 9500 issue) orsteglasy Mobile Java Networking & Messaging & Security 11 2007-10-07 22:49
Panic: ViewSrv 9 Dkr General Symbian C++ 4 2005-05-13 03:50
S60 panic box, ViewSrv 11 Stengun Mobile Java General 5 2004-04-26 22:34
Why does the ViewSrv (view server) panic occur? Has it something to do with the base? prbhat Symbian User Interface 2 2004-02-05 13:12

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ