Hi,

since pyopencl switched to using pybind11 I am experiencing crashes
"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 program...

I am using Anaconda Python 3.6 on Windows with pyopencl from git built (Visual 
Studio 2017) myself , with pybind11 2.2.3 installed via conda. Same crashes I 
also observed on a mac. 

I am looking for advice to debug this issue further, if needed I could provide 
more detailed stack traces. Should I also send the report to the pybind11 
maintainers?

thanks for any help
Gregor


_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
https://lists.tiker.net/listinfo/pyopencl

Reply via email to