#6052·chroma

ChromaDB upsert silently exits on Windows Server

Author: MahdiElahiCreated Dec 17, 2025Updated Sep 26, 2026

I am facing a strange issue while working on a very simple RAG test setup.

The code only: Creates static test documents Generates embeddings using AvalAI (OpenAI-compatible API)

Stores them in ChromaDB using upsert

✅ Works perfectly on my local machine (Windows / dev PC) ❌ Fails silently on Windows Server (VPS)

On the server, when execution reaches collection.upsert(...), the process immediately exits without any error, exception, or log.


Environment Details

Local (Working):

OS: Windows (Desktop)

Python: Same version as server

RAM: 16GB

Server (Failing):

OS: Windows Server

RAM tested: 4GB ❌ → 32GB ❌ (same issue)

VPS environment

This confirms the issue is not related to memory limits.

`import chromadb
from openai import OpenAI


client = OpenAI(
base_url="xxxxxxxxxxx",
api_key="xxxxxxxxxxxxxxx"
)


docs = ["test1", "test2"]


emb = client.embeddings.create(
model="text-embedding-3-small",
input=docs
).data


embeddings = [e.embedding for e in emb]


chroma = chromadb.Client()
col = chroma.get_or_create_collection(
name="test",
embedding_function=None
)


print("Before upsert")


col.upsert(
ids=["1", "2"],
documents=docs,
embeddings=embeddings
)


print("After upsert ✅")`

After enabling logging/fault handler, I got a fatal access violation:

Windows fatal exception: access violationaccess violation

Thread 0x00001dbc ...
File "chromadb\api\rust.py", line 498 in _upsert
File "chromadb\api\models\Collection.py", line 460 in upsert
File "main.py", line 26