If i run npx frontity dev
, and working on my site, than after around 20 minutes, i get an error message like this:
webpack building...
<--- Last few GCs --->
[4708:0x2ab9e90] 1378829 ms: Mark-sweep 1356.7 (1387.0) -> 1356.6 (1387.0) MB, 177.2 / 0.0 ms (average mu = 0.900, current mu = 0.001) last resort GC in old space requested
[4708:0x2ab9e90] 1379001 ms: Mark-sweep 1356.6 (1387.0) -> 1356.6 (1387.0) MB, 171.6 / 0.0 ms (average mu = 0.816, current mu = 0.000) last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x2bfb32078a1]
Security context: 0x2f964841e6e9 <JSObject>
1: byteLength(aka byteLength) [0x17d28b2796c1] [buffer.js:~509] [pc=0x2bfb4b279d0](this=0x30ac61e826f1 <undefined>,string=0x371575562c61 <Very long string[14699526]>,encoding=0x2f964843dda9 <String[4]: utf8>)
2: arguments adaptor frame: 3->2
3: fromString(aka fromString) [0x2be72a0932e9] [buffer.js:~334] [pc=0x2bfb4b49af0](this=0x30ac61e826f1 <und...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 0x8fa090 node::Abort() [node]
2: 0x8fa0dc [node]
3: 0xb0052e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb00764 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xef4c72 [node]
6: 0xf0448f v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
7: 0xed403b v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [node]
8: 0x101d8c3 v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [node]
9: 0xafded4 v8::internal::String::Flatten(v8::internal::Handle<v8::internal::String>, v8::internal::PretenureFlag) [node]
10: 0xb0b8a0 v8::String::Utf8Length() const [node]
11: 0x913629 [node]
12: 0x2bfb32078a1
Aborted (core dumped)
I customize the chakra theme. Do I have memory leak somewhere? How shall I debug it? Will it affect my production site?
Thanks for any help…