You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jep should attempt to detect this situation and throw an exception indicating the developer needs to manage their threads, preventing an exit and shutdown of the process.
The text was updated successfully, but these errors were encountered:
See https://groups.google.com/forum/#!topic/jep-project/9qnpnNBipXA
If a Jep instance is closed while a thread is still running inside that sub-interpreter, the process/application will exit and shut down.
Example:
Current C code in pyembed.c's
pyembed_thread_close()
:When Jep.close() is called, there is a fatal error:
Fatal Python error: Py_EndInterpreter: not the last thread
.Py_EndInterpreter(jepThread->tstate);
eventually uses Py_FatalError which will end the process. https://github.com/python/cpython/blob/46dc4e34ed8005a688d7f3512844ef227a3465f4/Python/pylifecycle.c#L1506Jep should attempt to detect this situation and throw an exception indicating the developer needs to manage their threads, preventing an exit and shutdown of the process.
The text was updated successfully, but these errors were encountered: