Open boravinod145 opened 3 days ago
It sounds like ot ran out of handles. JPype automatically attaches to threads so there is no reason to explicitely call attach. It isn't harmful, but hasn't been necessary for years. There is however a reason to detach. If you are making lots of threads, you must detach them at the end of life or eventually you will exhaust the handle pool.
I am fairly sure this appears in the JPype documentation.
Attaching a new thread through
jpype.attachThreadToJVM
after the JVM has started works perfectly for each API call. However, after a few days of running the instance, it failed to attach a new thread to the JVM and returned the following error.Even in
jpype.isJVMStarted()
gives true.