-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Bug Report: Mutex Lock Failed During Indexing on Intel Mac
System Information
- OS: macOS Darwin 25.2.0 (macOS Sequoia 15.2)
- Architecture: x86_64 (Intel Mac)
- Machine: 2019 MacBook Pro, Intel Core i9
- Node.js: v24.12.0
- npm/npx: 11.6.2
- codebase-context version: 1.8.2
What we tried
- Command:
npx -y codebase-context metadata - Command:
npx -y codebase-context status - Both resulted in: Tool started indexing but crashed during embedding phase
Error Details
Indexing (full): /Users/nroth/workspace/resume-chatbot
[scanning] 0%
Found 238 files to index
[analyzing] 0%
[git-dates] Loaded commit dates for 269 files
[analyzing] 10%
[analyzing] 20%
...
[analyzing] 100%
[embedding] 50%
Creating embeddings for 2162 chunks...
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
Project Details
- Repository: TypeScript/Next.js project (resume-chatbot)
- Files: 238 files
- Chunks: 2162 chunks to embed
- Crashed at: ~50% through embedding phase
Questions
- Expected setup: Are there specific system requirements or native dependencies needed for Intel Macs?
- @huggingface/transformers compatibility: Could this be related to the ONNX/Transformers.js native bindings on Intel architecture?
- Resource limits: Is there a known memory/thread limit that might cause mutex failures?
- Workaround: Is there a way to skip embeddings or use a different provider to test if it's embedding-specific?
Additional Context
- We checked existing issues and found Cannot seem to start the MCP server in multiple tools #2 (MCP initialization timeout) and Single MCP server instance should work across multiple projects #63 (multi-project routing) but nothing matching this specific mutex error
- The crash happens consistently at the same point during indexing
- No other Node.js or native module issues on this system
Thank you for the excellent tool concept - the pattern detection and memory features are exactly what we need for our team!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels