Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
pickle and threading conflict #1968
I'm experimenting with fetching URLs in the background so as not to block the game on network error.
I'm getting some success but I get all kind of weird issues on saving as soon as I start a thread, even if I exclude it from pickling.
Here's a reasonably simple test case that occurs on second save; I have a more complex download example where the same error happens on first save. Seems like starting a thread somewhat taints the environment?
(also sadly this technique doesn't help when the user rollsback, ren'py becomes unresponsive)
Any clue on what is causing the exception?
Okay, how are you excluding it from pickling? Since in your example, you create a Test object with a thread field, and then refer to that from
which incidentally fixed some occurrences of the error, but not all.
Also the error is quite different from what you get when pickling a thread (which would be "can't pickle lock objects").
I smell a bug of sorts, hence this issue.