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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  kill python execution program lebossejames 0 184 Mar-16-2024, 11:16 AM
Last Post: lebossejames
  pip stops waiting for python walker 6 967 Nov-28-2023, 06:55 PM
Last Post: walker
  [SOLVED] [Linux] Script in cron stops after first run in loop Winfried 2 894 Nov-16-2022, 07:58 PM
Last Post: Winfried
  Confused about python execution jpezz 4 1,324 Oct-09-2022, 06:56 PM
Last Post: Gribouillis
  Know when the pyttsx3 engine stops talking UsualCoder 3 3,138 Aug-29-2021, 11:08 PM
Last Post: snippsat
  IDLE stops responding upon saving tompi1 2 1,888 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 2,018 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 1,932 May-05-2020, 09:38 PM
Last Post: SheeppOSU
  Python timer script stops before should ozstar 3 2,172 May-04-2020, 12:55 AM
Last Post: ozstar
  Python - change variable type during program execution ple 1 2,333 Apr-12-2020, 08:43 AM
Last Post: buran

Forum Jump:

User Panel Messages

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