Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Fatal Python error: could not acquire lock for <_io.BufferedWriter name='<stdout>'> at interpreter shutdown, possibly due to daemon threads #52

Open
blackandred opened this issue Oct 17, 2020 · 1 comment
Labels
BUG Something isn't working
Milestone

Comments

@blackandred
Copy link
Contributor

Issue:

Fatal Python error: could not acquire lock for <_io.BufferedWriter name='<stdout>'> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x55d43b084750)

Thread 0x00007f3bf2d71640 (most recent call first):
  File "/usr/lib/python3.8/site-packages/rkd/api/inputoutput.py", line 542 in write
  File "/usr/lib/python3.8/site-packages/rkd/api/inputoutput.py", line 53 in write
  File "/usr/lib/python3.8/site-packages/rkd/process.py", line 63 in push_output
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x00007f3bf471a740 (most recent call first):
<no Python frame>
Aborted (core dumped)

Possible solution:
https://stackoverflow.com/a/45323799

@blackandred blackandred added the BUG Something isn't working label Oct 17, 2020
@blackandred blackandred added this to the RKD 2.2 milestone Oct 17, 2020
blackandred added a commit that referenced this issue Oct 24, 2020
…ks some of the commands with an infinite waiting
@blackandred blackandred modified the milestones: RKD 2.2, RKD 2.3 Oct 24, 2020
@blackandred
Copy link
Contributor Author

blackandred commented Oct 24, 2020

This issue needs more investigation and a better reproducible case. There is only one hint - when command in subprocess exits quickly with a negative exit code and a lot of output already printed.

@blackandred blackandred modified the milestones: RKD 2.3, RKD 2.4 Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant