Skip to content

Bug: segfault on clustering #529

@vibl

Description

@vibl

Describe the bug

I get a segmentation fault on index.cluster(), whatever the parameters min_count and max_count I use (and without parameters).

Small dataset of 80,000 vectors. index.search works great.

Steps to reproduce

    index = Index(
        ndim=768,
        metric='cos',
        dtype='f32'
    )

    index.save(usearch_index_path)
    index = Index.restore(usearch_index_path)
    
    clustering = index.cluster(min_count=10, max_count=15, log=True)

Expected behavior

It should return a Clustering instance.

USearch version

2.16.2

Operating System

Ubuntu 24.04

Hardware architecture

x86

Which interface are you using?

Python bindings

Contact Details

No response

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions