-
|
In our project (https://gitlab.com/tango-controls/pytango/-/issues/744) we presumably see memory leaks with Python 3.14. It is reported by valgrind and I also see RES memory usage grows. Interestingly, with all older Pythons I do not see it. E.g. one of the leaks is for the line: // Create a capsule to manage the lifetime of value_ptr
py::capsule base(value_ptr, dev_var_attribute_array_deleter<tangoTypeConst>);
// Create the numpy array without copying the data, and associate the base object
read_value = py::array(py::dtype::of<TangoScalarType>(),
dims,
strides,
buffer,
base // Associate the capsule as the base object
);This is valgrind report: Since this code works with Python <=3.13 and only leaks with 3.14 - is there anything known about memory management/leaks in 3.14? Update: When I added printouts to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
See #5998 |
Beta Was this translation helpful? Give feedback.
See #5998