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 #61

Open
dummys opened this issue Aug 31, 2021 · 2 comments
Open

JavaScript heap out of memory #61

dummys opened this issue Aug 31, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dummys
Copy link

dummys commented Aug 31, 2021

Hello,
Even if I try to use the command: node /usr/lib/node_modules/dexcalibur/dexcalibur.js --max-old-space-size=16384 I still get the crash with error JavaScript heap out of memory:

[*] 44453 methods indexed
[*] 21470 fields indexed
[*] 167627 instructions indexed
[*] 43020 method calls mapped
[*] 4691 field calls mapped
[INFO] [INSPECTOR MANAGER] Project[wikiii], Step[POST_PLATFORM_SCAN] deploying inspectors : <none>
[INFO] Scanning default path :
<--- Last few GCs --->

[1151262:0x555e074894b0]   112232 ms: Mark-sweep 2038.7 (2085.5) -> 2037.3 (2090.5) MB, 1948.6 / 0.0 ms  (average mu = 0.249, current mu = 0.013) allocation failure scavenge might not succeed
[1151262:0x555e074894b0]   114190 ms: Mark-sweep 2041.8 (2090.7) -> 2039.3 (2092.5) MB, 1945.6 / 0.0 ms  (average mu = 0.140, current mu = 0.006) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0x555e058d2971 node::Abort() [node]
 2: 0x555e057d9c63 node::FatalError(char const*, char const*) [node]
 3: 0x555e05aaaaf2 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0x555e05aaad58 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0x555e05c687a6  [node]
 6: 0x555e05c79770 v8::internal::Heap::CollectAllGarbage(int, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 7: 0x555e05c7b74d v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0x555e05c7b7b5 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 9: 0x555e05c41248 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
10: 0x555e05f7d51b v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
11: 0x555e06305339  [node]
fish: Job 1, 'node /usr/lib/node_modules/dexc…' terminated by signal SIGABRT (Abort)
@dummys dummys added the bug Something isn't working label Aug 31, 2021
@dummys
Copy link
Author

dummys commented Aug 31, 2021

ok the only way I have made it work is modifying the file: /usr/lib/node_modules/dexcalibur/dexcalibur.js and add:

#!/usr/bin/env node --max-old-space-size=16384 to the shebang.
I needed to use this otherwise dexcalibur launch node without the option.
I tried to play with option in file: /usr/lib/node_modules/dexcalibur/dexcalibur but it never worked.

@FrenchYeti
Copy link
Owner

hi,

did you try

node --max-old-space-size=16384 /usr/lib/node_modules/dexcalibur/dexcalibur.js

instead of

node /usr/lib/node_modules/dexcalibur/dexcalibur.js --max-old-space-size=16384

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants