Hi,
sometimes Node-red is crashing and I think it's when my network is down. I don' know why there is this behaviour. Here are the logs when the crash occurs.
May 11 20:20:00 Home-server node-red[1234]: 11 May 20:20:00 - [info] [exec:Ping @IP routeur bureau] ping -c 5 192.168.1.93
May 11 20:24:30 Home-server node-red[1234]: 11 May 20:24:30 - [info] [exec:Ping @IP switch] ping -c 5 192.168.1.64
May 11 20:24:30 Home-server node-red[1234]: 11 May 20:24:30 - [info] [exec:Ping @IP Capteur cuve] ping -c 5 192.168.1.90
May 11 20:24:30 Home-server node-red[1234]: 11 May 20:24:30 - [error] [rbe:26799aa0.84f586] TypeError: Cannot read property 'req' of null
May 11 20:24:30 Home-server node-red[1234]: at Object.cloneMessage (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/util.js:86:19)
May 11 20:24:30 Home-server node-red[1234]: at RbeNode.<anonymous> (/usr/lib/node_modules/node-red/node_modules/node-red-node-rbe/rbe.js:36:57)
May 11 20:24:30 Home-server node-red[1234]: at emitOne (events.js:116:13)
May 11 20:24:30 Home-server node-red[1234]: at RbeNode.emit (events.js:211:7)
May 11 20:24:30 Home-server node-red[1234]: at RbeNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:237:14)
May 11 20:24:30 Home-server node-red[1234]: at ChangeNode.Node.send (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:159:22)
May 11 20:24:30 Home-server node-red[1234]: at applyRules (/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/logic/15-change.js:336:30)
May 11 20:24:30 Home-server node-red[1234]: at completeApplyingRules (/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/logic/15-change.js:297:24)
May 11 20:24:30 Home-server node-red[1234]: at applyRule (/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/logic/15-change.js:326:47)
May 11 20:24:30 Home-server node-red[1234]: at getFromValue (/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/logic/15-change.js:241:44)
May 11 20:24:33 Home-server node-red[1234]: <--- Last few GCs --->
May 11 20:24:33 Home-server node-red[1234]: [1234:0x3b760f0] 3314073 ms: Mark-sweep 124.0 (167.5) -> 123.9 (167.5) MB, 83.9 / 0.0 ms allocation failure GC in old space requested
May 11 20:24:33 Home-server node-red[1234]: [1234:0x3b760f0] 3314207 ms: Mark-sweep 123.9 (167.5) -> 123.8 (135.0) MB, 118.5 / 0.0 ms last resort GC in old space requested
May 11 20:24:33 Home-server node-red[1234]: [1234:0x3b760f0] 3314291 ms: Mark-sweep 123.8 (135.0) -> 123.8 (135.0) MB, 83.4 / 0.0 ms last resort GC in old space requested
May 11 20:24:33 Home-server node-red[1234]: <--- JS stacktrace --->
May 11 20:24:33 Home-server node-red[1234]: ==== JS stack trace =========================================
May 11 20:24:33 Home-server node-red[1234]: Security context: 0x1215160a58b9 <JSObject>
May 11 20:24:33 Home-server node-red[1234]: 2: close [/home/patrick/.node-red/node_modules/sax/lib/sax.js:157] [bytecode=0x3935b6ea679 offset=10](this=0x25ca3114e299 <SAXParser map = 0x15705af8e071>)
May 11 20:24:33 Home-server node-red[1234]: 3: parseString [/home/patrick/.node-red/node_modules/xml2js/lib/parser.js:322] [bytecode=0x3935b6b7561 offset=202](this=0x25ca3114e399 <Parser map = 0x3cd9ddc57c31>,str=0x225fdbd02201 <Very long string[1970178]>,cb=0x25ca3114e351 <JSF...
May 11 20:24:33 Home-server node-red[1234]: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
May 11 20:24:33 Home-server node-red[1234]: 1: node::Abort() [node-red]
May 11 20:24:33 Home-server node-red[1234]: 2: 0x8ccf9c [node-red]
May 11 20:24:33 Home-server node-red[1234]: 3: v8::Utils::ReportOOMFailure(char const*, bool) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 5: v8::internal::Factory::NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle<v8::internal::Object>, bool, int) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 6: v8::internal::CodeGenerator::MakeCodeEpilogue(v8::internal::TurboAssembler*, v8::internal::EhFrameWriter*, v8::internal::CompilationInfo*, v8::internal::Handle<v8::internal::Object>) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 7: v8::internal::compiler::CodeGenerator::FinalizeCode() [node-red]
May 11 20:24:33 Home-server node-red[1234]: 8: v8::internal::compiler::PipelineImpl::FinalizeCode() [node-red]
May 11 20:24:33 Home-server node-red[1234]: 9: v8::internal::compiler::PipelineCompilationJob::FinalizeJobImpl() [node-red]
May 11 20:24:33 Home-server node-red[1234]: 10: v8::internal::CompilationJob::FinalizeJob() [node-red]
May 11 20:24:33 Home-server node-red[1234]: 11: 0xd2b38a [node-red]
May 11 20:24:33 Home-server node-red[1234]: 12: v8::internal::Compiler::CompileOptimized(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::ConcurrencyMode) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 13: v8::internal::Runtime_CompileOptimized_NotConcurrent(int, v8::internal::Object**, v8::internal::Isolate*) [node-red]
May 11 20:24:33 Home-server node-red[1234]: 14: 0x15b0104042fd
May 11 20:24:56 Home-server systemd[1]: node-red.service: Main process exited, code=dumped, status=6/ABRT
May 11 20:24:56 Home-server systemd[1]: node-red.service: Unit entered failed state.
May 11 20:24:56 Home-server systemd[1]: node-red.service: Failed with result 'core-dump'.
May 11 20:24:56 Home-server systemd[1]: node-red.service: Service hold-off time over, scheduling restart.
May 11 20:24:56 Home-server systemd[1]: Stopped Node-RED.
May 11 20:24:56 Home-server systemd[1]: Started Node-RED.
May 11 20:24:57 Home-server node-red[14107]: 11 May 20:24:57 - [info]
May 11 20:24:57 Home-server node-red[14107]: Welcome to Node-RED
May 11 20:24:57 Home-server node-red[14107]: ===================
May 11 20:24:57 Home-server node-red[14107]: 11 May 20:24:57 - [info] Node-RED version: v0.20.3
May 11 20:24:57 Home-server node-red[14107]: 11 May 20:24:57 - [info] Node.js version: v8.15.1