microsoft / SPTAG

A distributed approximate nearest neighborhood search (ANN) library which provides a high quality vector index build, search and distributed online serving toolkits for large scale vector search scenario.
MIT License
4.79k stars 582 forks source link

SaveIndex failed (Segmentation Fault) after Delete. #78

Open AmigoCDT opened 5 years ago

AmigoCDT commented 5 years ago

Describe the bug When I test SPTAG in python by your python test code. I find when I delete some data from Index, SaveIndex always get segmentation fault.

This is Delete and Save code:

def testDelete(index, x, out):
   i = SPTAG.AnnIndex.Load(index)
   ret = i.Delete(x.tobytes(), x.shape[0])
   print (ret)
   print("Del finished...................")
   i.Save(out)

SPTAG_save_err After save tree.bin finished, segmentation fault. Thanks for your favor.

MohamedAliRashad commented 8 months ago

I have this same bug