Bug: transposed pointer range exception in _get_all_nns when nd->n_descendants ≤ K
Author: jsalamIMSCreated May 5, 2025Updated May 5, 2025
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
Source: spotify/annoy