×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Python dying for unknown reasons

    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

  2. #2
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python dying for unknown reasons

    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.

  3. #3
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python dying for unknown reasons

    One the most common things that causes this is trying to use native resources from a different thread than where they were created in.

  4. #4
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Re: Python dying for unknown reasons

    Is there anyway to catch that exception? or to see where in the code its happening?

    Thanks

  5. #5
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Python dying for unknown reasons

    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

    http://mfabrik.com
    http://blog.mfabrik.com

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  3. Replies: 1
    Last Post: 2008-01-08, 09:58
  4. Replies: 11
    Last Post: 2007-10-03, 19:46
  5. Python application just dying
    By christee in forum Symbian
    Replies: 2
    Last Post: 2006-05-25, 02:42

Posting Permissions

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