facebookresearch / faiss

A library for efficient similarity search and clustering of dense vectors.
https://faiss.ai
MIT License
31.31k stars 3.63k forks source link

Warning of memory leak when running test suite #1667

Open h-vetinari opened 3 years ago

h-vetinari commented 3 years ago

Summary

While running the test suite in https://github.com/conda-forge/faiss-split-feedstock/pull/26, I noticed that there were warnings about a memory-leak:

swig/python detected a memory leak of type 'std::unordered_multimap< faiss::Index::idx_t,faiss::Index::idx_t > *', no destructor found.

The same happened for all jobs of the CI run for 1.6.5.

Platform

OS: linux / osx / win

Faiss version: 1.6.5, 1.7.0

Installed from: conda-forge

Running on:

Interface:

Reproduction instructions

conda install -c conda-forge faiss=1.6.5
# copy folder "tests/" into the working directory (not part of the package)
python -m unittest discover tests
mdouze commented 3 years ago

This is a known bug. I have not looked into how to fix it, but it is low on our priority list.