×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    1

    Python crash / Phone reboot when using threads with python 1.4.4 or 1.9.7

    Hello everyone!

    I coded a python application that uses threads to get data via urllib from external data servers while displaying graphics simultaneously.
    But this app doesn't work as expected since my phone (E51) reboots one or two seconds after starting my app via PythonShell. PythonShell seems to be correctly signed. Access to network, bluetooth via locationrequestor and local files seems to be no problem. The problem seems to be caused by starting a thread via python "thread" module. It takes a about two or three seconds before my phone reboots if using python 1.4.4. Python 1.9.7 does not crash/reboot the whole phone but python hangs for some time and quits after 30 seconds by itself (in rare conditions it hangs forever and cannot be stopped/killed by red hangup button).

    My thread does some I/O operations to local filesystem and tries to get data via urllib. On first HTTP connection this thread asks to select an accesspoint (WLAN, GPRS).
    Even disabling network access within the thread doesn't solve this problem.

    Is there something I missed? How can I track this problem down?

    Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    166

    Re: Python crash / Phone reboot when using threads with python 1.4.4 or 1.9.7

    bug in python ...

    compile the default.py script that is the shellscript of 1.9.7 in core mode then it should work.

    the shellskript is compiled in pyS60 mode and that cause bugs.

  3. #3
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: Python crash / Phone reboot when using threads with python 1.4.4 or 1.9.7

    Quote Originally Posted by AJ____92 View Post
    bug in python ...

    compile the default.py script that is the shellscript of 1.9.7 in core mode then it should work.

    the shellskript is compiled in pyS60 mode and that cause bugs.
    Hello Dibo admins. This problems is always appearing here (multi tasking + shell script). How about to stick a thread related to it ?

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. How to crash the phone
    By stenyak in forum Mobile Java General
    Replies: 6
    Last Post: 2007-11-25, 23:50
  3. Speaker phone using python
    By prashanth_ym in forum Symbian
    Replies: 1
    Last Post: 2007-02-18, 20:42
  4. How to edit Python files on the phone itself?
    By tristanr in forum Symbian
    Replies: 6
    Last Post: 2005-11-22, 01:38
  5. ihooks causes Python to crash?
    By terosaarni in forum Symbian
    Replies: 0
    Last Post: 2005-05-01, 11:35

Posting Permissions

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