Skip to content

"JavaScript heap out of memory" when building on RHEL-7 #23662

Closed

Description

  • VSCode Version: 1.10.2
  • OS Version: RHEL-7 (7.3 with nightly packages on the way towards 7.4).
  • NodeJS: v6.9.4 (packaged in the EPEL-7 repository)
  • NPM: 3.10.10

Steps to Reproduce:

  1. Try to build RPM package using https://gitlab.com/mcepl/vscode-pkg/blob/master/vscode.spec
  2. Observe the failure

The build log ends with:

<--- Last few GCs --->
  208718 ms: Mark-sweep 1158.0 (1436.2) -> 1158.0 (1436.2) MB, 1781.4 / 0.0 ms [allocation failure] [scavenge might not succeed].
  210553 ms: Mark-sweep 1158.0 (1436.2) -> 1158.0 (1436.2) MB, 1834.4 / 0.0 ms [allocation failure] [scavenge might not succeed].
  212438 ms: Mark-sweep 1158.1 (1436.2) -> 1158.0 (1436.2) MB, 1885.3 / 0.0 ms [allocation failure] [scavenge might not succeed].
<--- JS stacktrace --->
Cannot get stack trace in GC.
FATAL ERROR: MarkCompactCollector: semi-space copy, fallback in old gen Allocation failed - JavaScript heap out of memory
 1: node::Abort() [gulp]
 2: 0x109b1dc [gulp]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [gulp]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [gulp]
 5: v8::internal::MarkCompactCollector::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject*) [gulp]
 6: v8::internal::MarkCompactCollector::VisitLiveObjects(v8::internal::MemoryChunk*, v8::internal::MarkCompactCollector::HeapObjectVisitor*, v8::internal::MarkCompactCollector::IterationMode) [gulp]
 7: v8::internal::PageParallelJob<v8::internal::EvacuationJobTraits>::Task::RunInternal() [gulp]
 8: v8::internal::MarkCompactCollector::EvacuatePagesInParallel() [gulp]
 9: v8::internal::MarkCompactCollector::EvacuateNewSpaceAndCandidates() [gulp]
10: v8::internal::MarkCompactCollector::CollectGarbage() [gulp]
11: v8::internal::Heap::MarkCompact() [gulp]
12: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [gulp]
13: v8::internal::Heap::CollectGarbage(v8::internal::GarbageCollector, char const*, char const*, v8::GCCallbackFlags) [gulp]
14: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [gulp]
15: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]
16: 0x1a493cd079a7

The local computer has 4GB free memory (12GB total), 3+GB free disk space on /home partition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions