chroma-core / chroma-core/chroma

[Bug]: build of chroma_blockstore fails with queries over the recursion limit

Open
#6,891 0 comments 0 reactions 1 assignee Claimed by @rescrv View on GitHub
bug
Dominant language
Rust
Stars
29.3k
Forks
2.5k
Avg merge
1d 4h
Merged PRs (30d)
38

Description

### What happened?

While building for nixpkgs:

```sh
Compiling chroma-storage v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/storage)
Compiling chroma-blockstore v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/blockstore)
Compiling chroma-sysdb v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/sysdb)
error: queries overflow the depth limit!
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`chroma_blockstore`)
```

### Versions

Chroma 1.5.7, python 3.13.12 or python 3.14.3, rust 1.94.0

Note: 1.5.5 was fine, change appears to have happened in 1.5.6

### Relevant log output

```shell
Compiling chroma-storage v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/storage)
Compiling chroma-blockstore v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/blockstore)
Compiling chroma-sysdb v0.1.0 (/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/sysdb)
error: queries overflow the depth limit!
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`chroma_blockstore`)
= note: query depth increased by 130 when computing layout of `{async fn body of types::flusher::::flush()}`

error: queries overflow the depth limit!
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`chroma_blockstore`)
= note: query depth increased by 130 when computing layout of `{async fn body of arrow::provider::::write<'_, K, V>()}`

error: queries overflow the depth limit!
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`chroma_blockstore`)
= note: query depth increased by 130 when computing layout of `{async fn body of provider::::read<'_, K, V>()}`

error: queries overflow the depth limit!
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`chroma_blockstore`)
= note: query depth increased by 130 when computing layout of `{async fn body of provider::::write()}`

error: could not compile `chroma-blockstore` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/nix/store/qabiwfbf61gaky68k0klvyjvd8zavmxb-python3-3.13.12/bin/python3.13" PYTHON_SYS_EXECUTABLE="/nix/store/qabiwfbf61gaky68k0klvyjvd8zavmxb-python3-3.13.12/bin/python3.13" "cargo" "rustc" "--jobs" "10" "--profile" "release" "--features" "pyo3/extension-module" "--target" "aarch64-apple-darwin" "--message-format" "json-render-diagnostics" "--offline" "--manifest-path" "/nix/var/nix/b/6a9vrpqf5s88y14yn8fzhyfkkq/source/rust/python_bindings/Cargo.toml" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/chromadb_rust_bindings.abi3.so" "-C" "strip=symbols"`
error: builder for '/nix/store/520mnlhiqrg0lkcsf9sqwvihlh8vrcvz-python3.13-chromadb-1.5.7.drv' failed with exit code 1;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.