Skip to content

JavaScript heap out of memory error (likely during compaction) #44

@coverband

Description

@coverband

Observed the following error messages from the CLI when it crashed and returned to command prompt:

<--- Last few GCs --->

[34904:000002AD56250000] 253242356 ms: Mark-Compact 4037.2 (4129.1) -> 4025.2 (4129.1) MB, pooled: 5 MB, 1350.57 / 1.63 ms (average mu = 0.349, current mu = 0.445) allocation failure; scavenge might not succeed
[34904:000002AD56250000] 253244190 ms: Mark-Compact 4041.7 (4129.1) -> 4014.9 (4131.1) MB, pooled: 14 MB, 1601.74 / 3.10 ms (average mu = 0.250, current mu = 0.127) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 00007FF7F0CB711D node::SetCppgcReference+17725
2: 00007FF7F0C1A138 SSL_get_quiet_shutdown+92344
3: 00007FF7F17A0C51 v8::Isolate::ReportExternalAllocationLimitReached+65
4: 00007FF7F178D8D6 v8::Function::Experimental_IsNopFunction+2870
5: 00007FF7F15DAA20 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31456
6: 00007FF7F15D471A v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+6106
7: 00007FF7F15CFDB5 v8::CpuProfileNode::GetScriptResourceNameStr+188453
8: 00007FF7F0F5309D BIO_ssl_shutdown+189

Let me know if you need more info. This was while using blackboxai/openai/gpt-5.1 model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions