Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python "thread" Pool is not really thread safe #8

Open
TanguyUrvoy opened this issue Sep 11, 2017 · 0 comments
Open

Python "thread" Pool is not really thread safe #8

TanguyUrvoy opened this issue Sep 11, 2017 · 0 comments

Comments

@TanguyUrvoy
Copy link
Owner

Sometimes the program will hang with this nasty comment:

Exception RuntimeError: RuntimeError('main thread is not in main loop',) in <bound method PhotoImage.__del__ of <Tkinter.PhotoImage instance at 0x7f58021bc6c8>> ignored Tcl_AsyncDelete: async handler deleted by the wrong thread

A safe, but slow, workaround is to use eval_policy(nbReps, horizon, pm_game, policy) instead of
eval_policy_parallel(nbCores, nbReps, horizon, pm_game, policy).

Tanguy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant