microsoft / microsoft/SPTAG

OverflowError in method 'AnnIndex_AddWithMetaData' when running test script

Open
#34 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

answered bug
Dominant language
C++
Stars
5k
Forks
622
Avg merge
8h 37m
Merged PRs (30d)
5

Description

Describe the bug
OverflowError: in method 'AnnIndex_AddWithMetaData', argument 4 of type 'int'
when running the Python test script from "Get Started"

To Reproduce
Create a new Python file in the Release directory, copy&paste the Python test script from "Get Started".

Additional context
My environment:
Ubuntu 18.04, Kernel 4.15.0 x86_64
Tried swig 3.0 & 4.0
cmake 3.14.4
gcc 7.4.0
python 3.6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python test script from “Get Started” in the Release directory and reproduce the OverflowError on AnnIndex_AddWithMetaData. Then trace the argument-4 boundary between the Python wrapper and the C++ method. Done means the test script runs past this call without the reported OverflowError.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.