cyrildiagne / ar-facedoodle

Doodle AR masks right from the browser with tensorflow.js
MIT License
545 stars 89 forks source link

what is the minimum memory required? #4

Open inglesuniversal opened 4 years ago

inglesuniversal commented 4 years ago

my shared VM - AWS-BITNAMI dumped the start-up process half way

`<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 0xa295b0 node::Abort() [node] 2: 0x9782df node::FatalError(char const, char const) [node] 3: 0xb999be v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node] 4: 0xb99d37 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node] 5: 0xd3a145 [node] 6: 0xd3aaeb v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node] 7: 0xd488e2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node] 8: 0xd49735 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallb ackFlags) [node] 9: 0xd4c0fc v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOr igin, v8::internal::AllocationAlignment) [node] 10: 0xd1b79b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [nod e] 11: 0x104bb5f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [node] 12: 0x13a5839 [node] Aborted (core dumped)`

cyrildiagne commented 4 years ago

Which part is throwing that error?

inglesuniversal commented 4 years ago

I think it has to do with the memory I have available... in my case is a really tiny VM (BITNAMI LAMP 550+mb shared memory

limit Allocation failed

cyrildiagne commented 4 years ago

Hmm could you maybe check if Expo's requirements are compatible with your setup? I'm not sure that it's related to the code in this repo