Skip to content

Crashes during plan phase #469

@Tetramatrix

Description

@Tetramatrix

Summary

command-cli crashes in planing mode with a rather huge prompt. model deepseek v4 flash.

` list but doesn't have the content. The rag_node ran semantic search and found nothing. The router's
explicit filename matching failed to trigger rag_search_documents.

Let me actually trace what happened step by step.

SEARCH ["def _build_rag_query_from_messages|def _build_rag_query" in files]
│ Found 2 matches in 1 files
│ .\src\chat\nodes\rag_node.py (2 matches):
└ ... +2 lines [ctrl+o to expand]

READ [src\chat\nodes\rag_node.py] 80 lines

✻ Thinking… (390 lines) [ctrl+o to expand]

☆ Philosophizing… esc to interrupt • 12m 24s • ↓ 128.6k
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ Ask your question...
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
» accept edits on [shift+tab] [ctrl+t] continuous learning ◻ TASTE
? for shortcuts ~223k tokens in context · try /compact

<--- Last few GCs --->

[34044:00000000057FA000] 12523415 ms: Scavenge 4089.6 (4098.0) -> 4086.3 (4098.3) MB, pooled: 0.0 MB, 4.72 / 0.22 ms (average mu = 0.348, current mu = 0.293) allocation failure;
[34044:00000000057FA000] 12524129 ms: Mark-Compact (reduce) 4091.6 (4100.3) -> 4083.9 (4090.8) MB, pooled: 0.0 MB, 255.54 / 0.49 ms (+ 414.9 ms in 86 steps since start of marking, biggest step 5.2 ms, walltime since start of marking 714 ms) (average mu =
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 00007FF7D1AB4E56 node::OnFatalError+1318
2: 00007FF7D2654137 v8::Function::NewInstance+423
3: 00007FF7D2462547 v8::base::AddressSpaceReservation::AddressSpaceReservation+328087
4: 00007FF7D2466457 v8::base::AddressSpaceReservation::AddressSpaceReservation+344231
5: 00007FF7D2478058 v8::internal::StrongRootAllocatorBase::deallocate_impl+19176
6: 00007FF7D247788B v8::internal::StrongRootAllocatorBase::deallocate_impl+17179
7: 00007FF7D3BF80ED v8::platform::DelayedTaskQueue::Terminate+10478877
8: 00007FF7D245FE78 v8::base::AddressSpaceReservation::AddressSpaceReservation+318152
9: 00007FF7D247DAB0 X509_STORE_set_cleanup+5664
10: 00007FF7D247C7DE X509_STORE_set_cleanup+846
11: 00007FF7D248A42B SSL_CTX_set_cookie_generate_cb+21131
12: 00007FF7D208A24E v8::String::Utf8Value::~Utf8Value+152798
13: 000000004067B4FA`

Image

Expected Behavior

no crashes

Actual Behavior

cli command-code app crashes

Steps to reproduce the issue

  1. start command-code
  2. enter plan mode
  3. paste rather big prompt
  4. enter

Command Code Version

Microsoft Windows [Version 10.0.26200.6725]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

D:\Benutzer\Dokumente__ [ Projects ] __\FileManager>

Operating System

Windows

Terminal/IDE

powershell

Shell

cmd.exe

Additional context

Strix Halo, 128 GB ram, Win 11, PowerShell 7.6.2, model deepseek v4 flash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions