Skip to content

Crash when calling query_graph #627

Description

@zbynekwinkler

Version

codebase-memory-mcp 0.8.1

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

After indexing I tasked my agent to find dead code. It started calling the mcp and it has crashed almost on the first useful query.

Reproduction

It is a private codebase. I had to check the box that it is not. I am doing so in the hopes that it might help anyway.

codebase-memory-mcp cli query_graph '{"project": "YYY", "query": "MATCH (f:Function) WHERE NOT f.file_path CONTAINS ''ext'' AND NOT f.file_path CONTAINS ''Tests'' AND NOT f.file_path CONTAINS ''examples'' AND NOT f.name = ''main'' OPTIONAL MATCH (c)-[:CALLS]->(f) WITH f, c WHERE c IS NULL RETURN f.name, f.qualified_name, f.file_path, f.start_line ORDER BY f.file_path LIMIT 50"}'

no usefull output, just a crash dump appearing in AppData\Local\CrashDumps\

Logs

PS C:\Users\XXX\AppData> codebase-memory-mcp cli query_graph '{"project": "YYY", "query": "MATCH (f:Function) WHERE NOT f.file_path CONTAINS ''ext'' AND NOT f.file_path CONTAINS ''Tests'' AND NOT f.file_path CONTAINS ''examples'' AND NOT f.name = ''main'' OPTIONAL MATCH (c)-[:CALLS]->(f) WITH f, c WHERE c IS NULL RETURN f.name, f.qualified_name, f.file_path, f.start_line ORDER BY f.file_path LIMIT 50"}'
level=info msg=mem.init budget_mb=32596 total_ram_mb=65192
PS C:\Users\XXX\AppData>

Project scale (if relevant)

Nodes: 29,361 Edges: 59,940

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcypherCypher query language parser/executor bugsstability/performanceServer crashes, OOM, hangs, high CPU/memorywindowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions