-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when I call add_item, version: v1.16.3 #587
Comments
The data can be generated by: import struct
import numpy as np
def float_to_bytes(f):
return struct.pack('f', f)
dim = 512
num = 25097
vectors = np.random.random([num, dim]).tolist()
with open('/tmp/annoy-vectors.dat', 'wb') as file:
for vector in vectors:
for f in vector:
file.write(float_to_bytes(f)) |
longjiquan
changed the title
Segment fault when I call add_item, version: v1.16.3
Segmentation fault when I call add_item, version: v1.16.3
Dec 14, 2021
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I tried to create an annoy index with
DotProduct
. But when I calledadd_item
, the program crashed due tosegment fault
. Below are my test codes:Annoy Version:
v1.16.3
Dim:
512
Num of Vectors:
25097
Let me know if you need the file
/tmp/annoy-vectors.dat
.Call stack:
I will appreciate your quick reply.
The text was updated successfully, but these errors were encountered: