Python Forum
Python Thread stops execution
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Thread stops execution
#1
i'm running a python program with threads and one thread stops its execution after some time with this error..


Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()

gpio.init()
IOError: [Errno 12] Cannot allocate memory




why it's happen?
Reply
#2
You haven't provided enough context to get an answer to your question. Ideally you would reproduce the issue with 5-10 lines of runnable code.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  IDLE stops responding upon saving tompi1 2 537 Oct-01-2020, 05:44 PM
Last Post: Larz60+
  How to to tie the execution of one process to another inside a loop in Python ignorant_wanderer 0 606 Jul-11-2020, 03:44 AM
Last Post: ignorant_wanderer
  Is there a way to not terminate a running thread in python Contra_Boy 3 729 May-05-2020, 09:38 PM
Last Post: SheeppOSU
  Python timer script stops before should ozstar 3 870 May-04-2020, 12:55 AM
Last Post: ozstar
  Python - change variable type during program execution ple 1 803 Apr-12-2020, 08:43 AM
Last Post: buran
  Python stops without errors shahgourav 4 1,057 Feb-04-2020, 11:44 PM
Last Post: micseydel
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 4,632 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  First for loop stops after first iteration Divanova94 10 3,906 May-01-2019, 04:27 PM
Last Post: buran
  How to get memory usage and execution time of each line in python SriRajesh 2 1,276 Mar-07-2019, 12:59 PM
Last Post: SriRajesh
  randint stops changing values in a loop Naito 4 1,455 Jan-30-2019, 08:15 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020