You Are Here:

Community: Developer Discussion Boards

#1 Old Python hangup - 2008-08-18, 12:47

Join Date: Aug 2008
Posts: 8
HelAu
Offline
Registered User
Hi,
My Python shell just hung up on my N82. I have a white screen and have to restart the handy. Is there another way to kill a hanging application ( like a task manager ).
Reply With Quote

#2 Old Re: Python hangup - 2008-08-18, 12:51

Join Date: Jul 2007
Posts: 159
Location: Eindhoven, the Netherlands
hurenkam
Offline
Regular Contributor
You could try pressing the red button, it helps in many (but not all) cases.

Mark.
Reply With Quote

#3 Old Re: Python hangup - 2008-08-18, 12:58

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
hi HelAu
or you can just press the menu button and then followed by the c button you will exit from the app.
but why the shell hangs up??

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Python hangup - 2008-08-18, 13:14

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by HelAu View Post
Hi,
My Python shell just hung up on my N82. I have a white screen and have to restart the handy. Is there another way to kill a hanging application ( like a task manager ).
Hi HelAu,

You can use a third party freeware to do this.

Seach about Handy Task Man.

And here is some more information and a cool video on the same.

Hope it helps,

Best Regards,
Croozeus
Reply With Quote

#5 Old Re: Python hangup - 2008-08-19, 04:13

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
I think Croozeus HelAu is talking about "Python Shell" hanging up instead of Hanging up due to infinte loops.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#6 Old Re: Python hangup - 2008-08-19, 08:41

Join Date: Aug 2008
Posts: 8
HelAu
Offline
Registered User
Hi,
I don't know if the application hangs or the python shell ( it happens sometimes after stopping an application ).
I installed the jbak Taskmanager and now I am able to kill Python and restart it
Reply With Quote

#7 Old Re: Python hangup - 2008-08-19, 08:43

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by HelAu View Post
Hi,
I don't know if the application hangs or the python shell ( it happens sometimes after stopping an application ).
I installed the jbak Taskmanager and now I am able to kill Python and restart it
Rather to kill the process and restart it, you should investigate why it hangs. May be that could help more than a task manager

Best Regards,
Croozeus
Reply With Quote

#8 Old Re: Python hangup - 2008-08-19, 08:55

Join Date: Aug 2008
Posts: 8
HelAu
Offline
Registered User
A task manager like this is always helpful
And it saves me some minutes, because without it I have to reboot to use python again.
Reply With Quote

#9 Old Re: Python hangup - 2008-08-19, 10:41

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
If it happens sometimes after you stop an application, then its most probably due to application programming bug.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#10 Old Re: Python hangup - 2008-08-20, 16:48

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by croozeus View Post
Rather to kill the process and restart it, you should investigate why it hangs. May be that could help more than a task manager

Best Regards,
Croozeus
As i found if we are running a python script and without closing the running script if we move to another application(Reading message,installing another script) and again returned to python
and exited from python.After this for next time python may give problen to open.
using "menu key" long press plus "c" key also will not help much . you must have to restart mobile.
i have already posted a thread regarding this but till today i am also facing the same problem.
Reply With Quote

#11 Old Re: Python hangup - 2008-08-20, 18:04

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
As i found if we are running a python script and without closing the running script if we move to another application(Reading message,installing another script) and again returned to python
and exited from python.After this for next time python may give problen to open.
using "menu key" long press plus "c" key also will not help much . you must have to restart mobile.
i have already posted a thread regarding this but till today i am also facing the same problem.
I tried that, no problems in my case.

I tried on N95 and Nokia 6680.

What device does this problem occur ?

Best Regards,
Croozeus
Reply With Quote

#12 Old Re: Python hangup - 2008-08-20, 18:13

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by croozeus View Post
I tried that, no problems in my case.

I tried on N95 and Nokia 6680.

What device does this problem occur ?

Best Regards,
Croozeus
i m having 6600, it gives such problem.
Reply With Quote

#13 Old Re: Python hangup - 2008-08-20, 18:16

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
i m having 6600, it gives such problem.
May be because of the script you are running. IMHO, this may happen if the script has infinite loop which it cannot terminate.

Anyone else can try it on his device ?

Best Regards,
Croozeus
Reply With Quote

#14 Old Re: Python hangup - 2008-08-20, 23:06

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
As i found if we are running a python script and without closing the running script if we move to another application(Reading message,installing another script) and again returned to python
and exited from python.After this for next time python may give problen to open.
I would guess it's related to resource usage. Do you have lots/big graphics files, databases, audio/video resources in use? Several temporary internal buffers? All of keys binded to something?

When you do exit, verify that you release everything you opened, created or reserved. Sometimes it helps, if you "free" some of the resources, which PyS60 is supposed to free by itself...

Btw if you do reserve a lot of memory and start another app (or several), then Symbian OS might be sending a "kill" event to python in an attempt to gather enough memory for the new just launched app. I didn't check, if python listens to that event. If it does, it might be trying to terminate your script, which brings us back to clean exit problem.

Hope this helps,

--jouni
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
Please help installing Python libraries on S60 ericroijen Python 11 2009-07-18 11:43
New to Python for S60 (PyS60)? Read this first! croozeus Python 2 2008-10-17 20:23
[announce] PyUIQ. Python for UIQ 2.1 and 3.x OscarBernabeu Python 35 2008-01-17 10:12
[announce] the first Mobile Python book is now available ! cyke64 Python 1 2008-01-08 10:58
[announce] Mobile Python book soon in Sept 2007 ! cyke64 Python 11 2007-10-03 20:46

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