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

3.6.4.0 on python3.9: SemLock __exit__ throws '[WinError 6] The handle is invalid' #335

Open
godojoe opened this issue Jun 16, 2021 · 0 comments

Comments

@godojoe
Copy link

godojoe commented Jun 16, 2021

When the semLock acquired in SimpleQueue.get_payload exits, I get an exception: [WinError 6] The handle is invalid
I'm calling billiard from pytest unit tests running under pyCharm 2019.2.2 (Professional Edition)
The problem has appeared after upgrading from python3.6 to python3.9.2
Log extract:

2021-06-16 15:56:45,628 Setting up handler pool
[DEBUG/MainProcess] created semlock with handle 612
[DEBUG/MainProcess] created semlock with handle 1052
[DEBUG/MainProcess] created semlock with handle 860
[DEBUG/MainProcess] worker handler starting
[DEBUG/MainProcess] result handler starting
2021-06-16 15:56:45,637 Worker process started worker_id=0
[DEBUG/MainProcess] closing pool
[DEBUG/MainProcess] task handler got sentinel
[DEBUG/MainProcess] task handler sending sentinel to result handler
[DEBUG/MainProcess] task handler sending sentinel to workers
[DEBUG/MainProcess] task handler exiting
[DEBUG/MainProcess] result handler got sentinel
[DEBUG/MainProcess] recreated blocker with handle 20
[DEBUG/MainProcess] recreated blocker with handle 24
[DEBUG/MainProcess] worker handler exiting
[DEBUG/MainProcess] joining worker handler
[DEBUG/MainProcess] joining task handler
[DEBUG/MainProcess] joining result handler
[DEBUG/MainProcess] recreated blocker with handle 28
[DEBUG/MainProcess] recreated blocker with handle 32
[INFO/SpawnPoolWorker-1] child process 12964 calling self.run()
[DEBUG/SpawnPoolWorker-1] worker got OSError -- exiting
[DEBUG/MainProcess] Supervisor: cleaning up worker 0
[DEBUG/MainProcess] Supervisor: worked 0 joined
[DEBUG/MainProcess] result handler: all workers terminated, timeout in 4.0s
[DEBUG/MainProcess] result handler: all workers terminated, timeout in 3.0s
[DEBUG/MainProcess] result handler: all workers terminated, timeout in 2.0s
[DEBUG/MainProcess] result handler: all workers terminated, timeout in 1.0s
[DEBUG/MainProcess] result handler: all workers terminated, timeout in 0.0s
[DEBUG/MainProcess] result handler exiting: timed out
[DEBUG/MainProcess] ensuring that outqueue is not full
[DEBUG/MainProcess] result handler exiting: len(cache)=1, thread._state=0
[DEBUG/MainProcess] result handler joined
[DEBUG/MainProcess] pool join complete
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