RuntimeError: can't start new thread
(Python) For some reason multiprocessing is unable to create a new thread, and my project won't work because of it. It was just working a few minutes ago, and none of the code has been changed.
(The Scratch code is correct, but you can see it anyway: https://turbowarp.org/511063803/editor . The project won't work in turbowarp because it's database is separate from scratch, but the scratch project is unshared.)
Voters
Ok, send the code then?
I thought I selected it. sorry.
It's ok @PikachuB2005
Hm works for me @PikachuB2005
It's working now, but sometimes it won't work and I don't know why =(
Try running it again @PikachuB2005
hmm. Now I just need a timer that resets the loop if it doesn't do anything for a certain period of time.
Wdym doesn't do anything @PikachuB2005
I have it waiting for a confirmation from the Scratch project. But if someone exits the project before this finishes, it'll wait forever. So I want it to reset the loop if nothing happens. I now how to do this (I think) so... yeah
NEVERMIND.If I have something like this:
What can I do to have that error?
@PikachuB2005

oh no I forgot the colon AHHHHH XD
EDIT: I fixed it.
lol @PikachuB2005
@Coder100 btw it's showing the same error again
https://stackoverflow.com/questions/1834919/error-cant-start-new-thread
basically you can't have that many threads at one time @PikachuB2005
@Coder100 I know that there is a limit, but each one is deleted before another is created. So...HOW
well its threads, maybe there's some cleanup that's happening. Don't forget to use
.join()
to fully delete a thread @PikachuB2005if .join() deletes it what does .terminate() do
well
terminate probably stops execution but .join blocks the main thread until the program exits @PikachuB2005
I'll try it.