Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Griddata: "memory leak" (Trac #1869) #2388
Runing griddata inside a loop makes the memory usage increase without bound.
Example (from example in the official documentation):
def func(x, y):
grid_x, grid_y = np.mgrid[0:1:100j, 0:1:200j]
for i in range(100000):
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I am sorry to report that the bug is still there (or it found a new life, if it was every fixed...)
I am using SciPy 0.13.0 on Gentoo Linux. I also tried it with SciPy 0.12.1, same problem.
I don't know whether it's useful, but the memory leak happens only for 'linear' and 'cubic' methods, not for 'nearest'.
Is there any workaround other than the one suggested here:
which involves compiling SciPy outside of my distribution's repository? (I did not try it)
This issue is fixed in Cython >= 0.18.
However, Scipy source releases ship with pre-Cythonized
@rgommers: apparently, the recent Scipy source packages have been produced with a buggy Cython version (0.17.1). Could you ensure that this issue doesn't reappear in the future? We may also need to consider 0.13.2.