Skip to content

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory #728

@hammerhoundai

Description

@hammerhoundai

What happened?

Encountered this issue in the middle of an ongoing session:

<--- Last few GCs --->

[2460468:0x39b68020] 2907050 ms: Mark-Compact 2084.4 (2096.0) -> 2041.0 (2057.0) MB, 25.50 / 0.00 ms (average mu = 0.826, current mu = 0.872) allocation failure; scavenge might not succeed
[2460468:0x39b68020] 2907115 ms: Mark-Compact 2048.2 (2060.3) -> 2046.0 (2069.2) MB, 52.58 / 0.00 ms (average mu = 0.625, current mu = 0.197) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0xb8cf03 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
2: 0xf060d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
3: 0xf063b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
4: 0x1118005 [node]
5: 0x112fe88 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
6: 0x1105fa1 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
7: 0x1107135 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
8: 0x10e4786 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
9: 0x15402c6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
10: 0x7dbf4fed9ef6
Aborted (core dumped)

What did you expect to happen?

expected the program to keep working.

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

$ qwen /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions