Gregor Thalhammer <gregor.thalhammer(a)gmail.com> writes:
since pyopencl switched to using pybind11 I am
"pybind11_object_dealloc(): Tried to deallocate unregistered instance!“, likely
triggered in pybind11/detail/class.h: pybind11_object_dealloc() / clear_instance()
As far I can tell this occurs only if the garbage collection routine
tries to collect a pyopencl._cl.NannyEvent. Disabling garbage
collection and the crashes disappear.
Because of these crashes being related to garbage collection they
occur seemingly randomly, I have not been able to reproduce them with
a simple program, only with my large multi-threaded experiment control
Are you able to force matters by calling gc.collect()?
What happens if you call .wait() on the NannyEvent?