Skip to content

Bug: transposed pointer range exception in _get_all_nns when nd->n_descendants ≤ K #681

@jsalamIMS

Description

@jsalamIMS

Environment:

  • Language : C++
  • OS : Windows 11
  • Compiler : MSVC 19.42 (Visual Studio 2022)
  • Annoy version : 1.17.3

Issue Description

When querying a particular index using get_nns_by_item/get_nns_by_vector, getting exception "Transposed pointer range" at
annoylib.h --> Line No: 1474 --> nns.insert(nns.end(), dst, &dst[nd->n_descendants]);

Additional Context

The Annoy index file is generated with a dimension of 256 and total size of around 8 GB
Pointer values observed : nd->n_descendants : -1088797586

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions