ffmpeg.js
ffmpeg.js copied to clipboard
Fatal Error: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
Hey Kagami and community, thanks for a great library. Having some trouble at the moment.
When importing ffmpeg.js I am unable to compile my project. This occurs when attempting to require both ffmpeg.js and ffmpeg-mp4.js.
code used:
const ffmpeg = require('ffmpeg.js/ffmpeg-mp4.js');
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Trace:
1: 0x1000819ca node::Abort() [/usr/local/bin/node]
2: 0x100081b4e node::errors::TryCatchScope::~TryCatchScope() [/usr/local/bin/node]
3: 0x100182567 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
4: 0x100182503 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0x10030a8c5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
6: 0x10030bfa4 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]
7: 0x100308d3e v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
8: 0x100306d26 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
9: 0x1003126aa v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
10: 0x100312731 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
11: 0x1002dfa76 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
12: 0x100620c38 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
13: 0x100953f79 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
:+1:
I am using create react app.
Push. Same here.
Hi, @Luxapodular, did you manage to solve the issue?
Same issue.
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory