fix: silence ChromaDB telemetry warnings and CoreML segfault on Apple Silicon#236
Merged
bensig merged 1 commit intoMemPalace:mainfrom Apr 8, 2026
Merged
Conversation
… Silicon ChromaDB 0.6.x bundles a Posthog telemetry client whose capture() signature is incompatible with the installed posthog library, producing noisy "Failed to send telemetry event" stderr warnings on every operation. Silence by raising the logger threshold to CRITICAL. ONNX Runtime's CoreML execution provider segfaults during vector queries on macOS ARM64 (issue MemPalace#74). Auto-set ORT_DISABLE_COREML=1 on Apple Silicon to force CPU execution, while respecting any user-provided override via os.environ.setdefault(). Made-with: Cursor
This was referenced Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two ChromaDB compatibility issues in a single 10-line change to
mempalace/__init__.py:Telemetry spam: ChromaDB 0.6.x bundles a Posthog telemetry client whose
capture()signature is incompatible with the installed posthog library, producingFailed to send telemetry event ... capture() takes 1 positional argument but 3 were givenon every operation. Fixed by raising thechromadb.telemetry.product.posthoglogger threshold toCRITICAL.CoreML segfault on Apple Silicon (ChromaDB null pointer crash after ~8,400 drawers on macOS ARM64 #74): ONNX Runtime's CoreML execution provider crashes with SIGSEGV during vector queries on macOS ARM64. Fixed by auto-setting
ORT_DISABLE_COREML=1viaos.environ.setdefault()so it forces CPU execution while still respecting any user-provided override.Root cause
The telemetry error originates in
chromadb/telemetry/product/posthog.py:61whereposthog.capture(user_id, event_name, properties)is called with 3 positional args, but the bundled posthog library'scapture()only accepts 1. Settinganonymized_telemetry=Falsein ChromaDB Settings does not prevent the call — it only setsposthog.disabled = True, which the broken posthog stub doesn't honor.Changes
mempalace/__init__.pyORT_DISABLE_COREML=1on ARM64 macOSTest plan
mempalace searchproduces clean output with no telemetry warningsmempalace searchno longer segfaults on macOS ARM64 (tested on M-series Mac)Relates to #74