Skip to content

OOM bug on heap memory #522

Description

@mysterioustravel99

Summary

Host: Ubuntu 24.04
Session ID: 9bc0ba9f-2b3e-4bc4-824d-7fce0e9196ea
Mode: Deepseek v4 Pro
CC version: 0.40.5
Context: CONTEXT · DeepSeek V4 Pro
8.9k / 1M · 991.1k remaining (estimated)

System tools 7.4k tokens · 17 built-in
Skills 279 tokens · 2 loaded
Messages 1.3k tokens · 4 user · 3 assistant

This particular session had OOM on heap while reasoning in planning mode. Was a simple chat prompt with google docs formula, with no input file to read. I resumed the session and type continue and got the crash again. Not sure if it was random but I resumed it once more and enter a different prompt then it continued on fine.

<--- Last few GCs --->

[1421479:0x6a55000]   173503 ms: Mark-Compact 4093.5 (4101.6) -> 4092.1 (4100.1) MB, pooled: 2 MB, 69.16 / 0.00 ms  (average mu = 0.404, current mu = 0.157) allocation failure; scavenge might not succeed
[1421479:0x6a55000]   173544 ms: Mark-Compact (reduce) 4095.0 (4101.1) -> 4094.0 (4098.6) MB, pooled: 0 MB, 19.22 / 0.01 ms  (+ 13.2 ms in 31 steps since start of marking, biggest step 5.0 ms, walltime since start of marking 37 ms) (average mu = 0.341, cu
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x744ae8 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
 2: 0xc1a4b0  [node]
 3: 0xc1a59f  [node]
 4: 0xebdda5  [node]
 5: 0xecf70c  [node]
 6: 0xea4bc3  [node]
 7: 0xe7a6d0  [node]
 8: 0x1371f28  [node]
 9: 0x711e592769b6 
Aborted (core dumped)

Expected Behavior

CC should not crash

Actual Behavior

CC crashed with OOM on heap error

Steps to reproduce the issue

Not sure

Command Code Version

0.40.5

Operating System

Linux

Terminal/IDE

Unknown

Shell

bash

Additional context

Gnome terminal

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