Could it then be resolved by using the no-gil version of python they just released?
Re:Hand Tracking for Mouse Input
by mananaysiempre on Tuesday November 19, 2024 @01:59PM
(#42186900)
Iām not sure what your reasoning is, but note that blocking I/O including print() releases the GIL. (So your seemingly innocent debugging print can be extremely not harmless under the wrong circumstances.)
Most probably I'm wrong, but I wonder if it has anything to do with all the text being written to stdout. In the odd chance that it happens on the same thread, it might be blocking.