Skip to content

Bug Report: Mutex Lock Failed During Indexing on Intel Mac #68

@rothnic

Description

@rothnic

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

  1. Command: npx -y codebase-context metadata
  2. Command: npx -y codebase-context status
  3. 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

  1. Expected setup: Are there specific system requirements or native dependencies needed for Intel Macs?
  2. @huggingface/transformers compatibility: Could this be related to the ONNX/Transformers.js native bindings on Intel architecture?
  3. Resource limits: Is there a known memory/thread limit that might cause mutex failures?
  4. Workaround: Is there a way to skip embeddings or use a different provider to test if it's embedding-specific?

Additional Context

Thank you for the excellent tool concept - the pattern detection and memory features are exactly what we need for our team!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions