Hello,
I have recently upgraded node-red from v.0.19.5 to v.1.2.9. Now node-red works for the existing flows. However I cannot log into the UI anymore. The screen stops at the Message "loading flows". In the log file I can see, that it keeps crashing with Javascript Out of Memory error. Here is the stack trace:
Mar 8 09:59:31 server node-red[12185]: <--- JS stacktrace --->
Mar 8 09:59:31 server node-red[12185]: ==== JS stack trace =========================================
Mar 8 09:59:31 server node-red[12185]: Security context: 0x3f1002c98fe1 <JSObject>
Mar 8 09:59:31 server node-red[12185]: 1: fromString(aka fromString) [buffer.js:314] [bytecode=0x25afc8cf87a9 offset=164](this=0x3f1002c82241 <undefined>,string=0x16bbf27eb8d1 <Very long string[949467]>,encoding=0x3f1002cf01a9 <String[4]: utf8>)
Mar 8 09:59:31 server node-red[12185]: 2: from [buffer.js:177] [bytecode=0x25afc8cf82b1 offset=11](this=0x1090cb348b31 <JSFunction Buffer (sfi = 0x50fae4282d1)>,value=0x16bbf27eb8d1 <Very long string[949467]>,encodingOrOff...
Mar 8 09:59:31 server node-red[12185]: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Mar 8 09:59:31 server node-red[12185]: 1: node::Abort() [node-red]
Mar 8 09:59:31 server node-red[12185]: 2: 0x5555c0f25011 [node-red]
Mar 8 09:59:31 server node-red[12185]: 3: v8::Utils::ReportOOMFailure(char const*, bool) [node-red]
Mar 8 09:59:31 server node-red[12185]: 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node-red]
Mar 8 09:59:31 server node-red[12185]: 5: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [node-red]
Mar 8 09:59:31 server node-red[12185]: 6: v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [node-red]
Mar 8 09:59:31 server node-red[12185]: 7: v8::String::WriteUtf8(char*, int, int*, int) const [node-red]
Mar 8 09:59:31 server node-red[12185]: 8: node::StringBytes::Write(v8::Isolate*, char*, unsigned long, v8::Local<v8::Value>, node::encoding, int*) [node-red]
Mar 8 09:59:31 server node-red[12185]: 9: node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) [node-red]
Mar 8 09:59:31 server node-red[12185]: 10: 0x5555c0f4ae46 [node-red]
Mar 8 09:59:31 server node-red[12185]: 11: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [node-red]
Mar 8 09:59:31 server node-red[12185]: 12: 0x5555c08a3b62 [node-red]
Mar 8 09:59:31 server node-red[12185]: 13: 0x5555c08a40af [node-red]
Mar 8 09:59:31 server node-red[12185]: 14: 0x6264e9840bd
Mar 8 09:59:31 server systemd[1]: node-red.service: Main process exited, code=dumped, status=6/ABRT
Mar 8 09:59:31 server systemd[1]: node-red.service: Failed with result 'core-dump'.
Mar 8 09:59:31 server systemd[1]: node-red.service: Service hold-off time over, scheduling restart.
Mar 8 09:59:31 server systemd[1]: node-red.service: Scheduled restart job, restart counter is at 34.
Is this most probably a plugin problem and should I remove all plugins? Or is this maybe a known problem that can be fixed otherwise? Any help is very welcome. Here are additional infos:
OS: Ubuntu 18.04.5 LTS
Installed and upgraded via : sudo npm install -g --unsafe-perm node-red
Thanks a lot!