Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript heap out of memory during build #285

Open
riverdusty opened this issue Aug 25, 2022 · 0 comments
Open

JavaScript heap out of memory during build #285

riverdusty opened this issue Aug 25, 2022 · 0 comments

Comments

@riverdusty
Copy link

When following build instructions, Debian 11 virtual machine.

<--- Last few GCs --->

[13541:0x55a2fc10e0c0]    92444 ms: Mark-sweep 478.7 (493.6) -> 475.0 (493.6) MB, 711.8 / 0.0 ms  (average mu = 0.194, current mu = 0.130) allocation failure scavenge might not succeed
[13541:0x55a2fc10e0c0]    93281 ms: Mark-sweep 479.0 (493.9) -> 475.2 (493.9) MB, 730.8 / 0.0 ms  (average mu = 0.162, current mu = 0.128) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x7fcc74acb999]
    1: StubFrame [pc: 0x7fcc74aac267]
Security context: 0x12d104c34f31 <JSObject>
    2: split [0x12d104c25349](this=0x226cfdd1c7f1 <String[25]: "OptionInspectorSettings">,0x226cfdd1c861 <JSRegExp <String[#5]: \r?\n>>)
    3: print(aka print) [0x27b4f7a53f29] [/root/go/src/github.com/dgraph-io/ratel/client/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:~6973] [pc=0x232dca0bb...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x7fcc73eba1a8 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.72]
 2: 0x7fcc73df618e  [/lib/x86_64-linux-gnu/libnode.so.72]
 3: 0x7fcc74067f42 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
 4: 0x7fcc740681ef v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
 5: 0x7fcc74200e85  [/lib/x86_64-linux-gnu/libnode.so.72]
 6: 0x7fcc74210bdd v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
 7: 0x7fcc74211886 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
 8: 0x7fcc74213a0c v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
 9: 0x7fcc74213a74 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
10: 0x7fcc741da16b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/lib/x86_64-linux-gnu/libnode.so.72]
11: 0x7fcc7450b645 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.72]
12: 0x7fcc74acb999  [/lib/x86_64-linux-gnu/libnode.so.72]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant