Closed linyu0219 closed 3 years ago
I try this because when I own program, I open 5 process core dump will happen ,because other functions also cost cpu.
Hi @linyu0219, Could you please provide the steps to reproduce the above error. Thanks! !
put above code in a py. and use bash open multiple python process
python mediapipe_test.py -n 31 &
python mediapipe_test.py -n 32 &
python mediapipe_test.py -n 33 &
python mediapipe_test.py -n 34 &
python mediapipe_test.py -n 35 &
python mediapipe_test.py -n 36 &
python mediapipe_test.py -n 37 &
python mediapipe_test.py -n 38 &
python mediapipe_test.py -n 39 &
python mediapipe_test.py -n 40 &
python mediapipe_test.py -n 41 &
python mediapipe_test.py -n 42 &
python mediapipe_test.py -n 43 &
python mediapipe_test.py -n 44 &
python mediapipe_test.py -n 45 &
python mediapipe_test.py -n 46 &
python mediapipe_test.py -n 47 &
python mediapipe_test.py -n 48 &
python mediapipe_test.py -n 49 &
python mediapipe_test.py -n 50 &
0.8.3.1 also core dump ,but dump slow than other version. it happened cpu is nealy 80%usage, mediapipe can't get the cpu resource, it will core dump.
I am facing the same thing with hand tracking when I run a multithreading python code.
There is a GIL related fix in the latest v0.8.7.1 python binaries, which may help resolve this issue. Try pip install mediapipe==0.8.7.1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
When I start 20-50 more the under python process, core dump will happen. when into the python mediapipe module, error happen here self._graph.wait_until_idle() ,will return 'Fatal Python error: PyEval_SaveThread: NULL tstate' This error happened in 0.8.6 0.8.5 0.8.4.2 0.8.4.1 But it will not in 0.8.3.1