You Are Here:

Community: Developer Discussion Boards

#1 Old Python dying for unknown reasons - 2008-01-24, 05:36

Join Date: Jan 2007
Posts: 80
federico2929
Offline
Regular Contributor
Hi,

Since the last two python versions I have been having python die with the following exceptions

Application closed:
Py_1489399231 KERN-EXEC 3

I don't know exactly whats killing it, since it dies in a very large application that I have been developing for the last year and a half.

Does anybody know how to find out what is killing it?

Can I catch this sort of exceptions?

I am running the latest python, signed, and a N95
Reply With Quote

#2 Old Re: Python dying for unknown reasons - 2008-01-24, 06:14

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Quote:
Originally Posted by federico2929 View Post
Hi,

Since the last two python versions I have been having python die with the following exceptions

Application closed:
Py_1489399231 KERN-EXEC 3

I don't know exactly whats killing it, since it dies in a very large application that I have been developing for the last year and a half.

Does anybody know how to find out what is killing it?

Can I catch this sort of exceptions?

I am running the latest python, signed, and a N95
This error means that a background thread started by your application crashed. KERN-EXEC 3 is a generic error, essentially the equivalent of "Segmentation fault" in Unix.
Reply With Quote

#3 Old Re: Python dying for unknown reasons - 2008-01-24, 06:18

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
One the most common things that causes this is trying to use native resources from a different thread than where they were created in.
Reply With Quote

#4 Old Re: Python dying for unknown reasons - 2008-01-24, 08:05

Join Date: Jan 2007
Posts: 80
federico2929
Offline
Regular Contributor
Is there anyway to catch that exception? or to see where in the code its happening?

Thanks
Reply With Quote

#5 Old Re: Python dying for unknown reasons - 2008-02-01, 15:49

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by federico2929 View Post
Is there anyway to catch that exception? or to see where in the code its happening?

Thanks
You need have try...except block in the starter function of your thread. Then pass this exception to the main thread and print it there.

More robust solution is multithread aware logger. I have created one, but it is not yet publicly available.


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
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
[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
Python application just dying christee Python 2 2006-05-25 03:42

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