Skip to content

Javascript running out of heap memory and cannot get it to increase #6

@TheGamingGallifreyan

Description

@TheGamingGallifreyan

I have been attempting to decompile a ~300MB .rcc file but just keep getting this error after about 5 minutes of letting it run. It gets up to ~4GB of RAM and then dies.

<--- JS stacktrace --->

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

 1: 00007FF71F49C52A uv_cpumask_size+56906
 2: 00007FF71F4152FB node::OnFatalError+747
 3: 00007FF7226BF514 v8::Function::NewInstance+868
 4: 00007FF7226BF483 v8::Function::NewInstance+723
 5: 00007FF72279DF27 v8::CppHeap::CollectGarbageInYoungGenerationForTesting+70263
 6: 00007FF720C160B7 v8::internal::ThreadIsolation::StartOfJitAllocationAt+360071
 7: 00007FF720C0FF6D v8::internal::ThreadIsolation::StartOfJitAllocationAt+335165
 8: 00007FF720BFF8A5 v8::internal::ThreadIsolation::StartOfJitAllocationAt+267893
 9: 00007FF7209BFD0C uv_random+3527276
10: 00007FF720B84F5C v8::String::NewFromOneByte+220
11: 00007FF71FA553C5 node::GetAnonymousMainPath+77813
12: 00007FF71FA54F0A node::GetAnonymousMainPath+76602
13: 00007FF71F42C5BA node::Buffer::New+24122
14: 00007FF7212569F3 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2315971
15: 00007FF7812AE18F

I have been trying different ways to increase the memory limit using the --max-old-space-size= flag and 64 bit NodeJS but no matter where I put it doesn't seem to take it and still dies at 4GB. I added it to the command line arguments and as an environment variable but no luck. How do you increase the memory limit?

I absolutely dread every time I have to deal with a NodeJS project because stuff that should be simple always ends up being incredibly frustrating and taking days... I just want these image files man lmao

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