claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude Code crashed in long session

Open Helmi opened this issue 7 months ago • 0 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • Claude CLI version: 1.0.6
  • Operating System: macOS 15.5 (in Docker container)
  • Terminal: warp

Bug Description

Claude crashed when executing a longer running set of tasks. The session at the point was going for 384 minutes and was 4683 messages long.

Here's the message on the console after the crash:

<--- Last few GCs --->

[25718:0x394a48a0] 23123658 ms: Mark-sweep 1951.3 (2088.3) -> 1927.9 (2080.9) MB, 665.8 / 0.0 ms  (average mu = 0.189, current mu = 0.193) allocation failure; scavenge might not succeed
[25718:0x394a48a0] 23124501 ms: Mark-sweep 1943.2 (2081.1) -> 1926.6 (2080.9) MB, 613.7 / 0.0 ms  (average mu = 0.230, current mu = 0.272) task; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb826e4 node::Abort() [node]
 2: 0xa9bf08  [node]
 3: 0xd43e90 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xd44060 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xf22814  [node]
 6: 0xf2347c v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
 7: 0xf339c4  [node]
 8: 0xf34588 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 9: 0xf9f908 v8::internal::ScavengeJob::Task::RunInternal() [node]
10: 0xe1d968 non-virtual thunk to v8::internal::CancelableTask::Run() [node]
11: 0xbe4ac4  [node]
12: 0xbe7ef8 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [node]
13: 0x15e8e64  [node]
14: 0x15fafc8  [node]
15: 0x15e98cc uv_run [node]
16: 0xacf478 node::SpinEventLoop(node::Environment*) [node]
17: 0xbc1560 node::NodeMainInstance::Run() [node]
18: 0xb4036c node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [node]
19: 0xb43c2c node::Start(int, char**) [node]
20: 0xffff9ea70dd8 __libc_start_main [/lib/aarch64-linux-gnu/libc.so.6]
21: 0xacd9a8  [node]
Aborted

Helmi avatar May 30 '25 06:05 Helmi