Closed
Description
Software and Package Versions
Software | Version |
---|---|
Node.JS | 10.18.1 |
npm | 6.13.4 |
Node-RED | 1.0.2 |
fs node | 1.2.0 |
OS | Ubuntu 19.10 |
Browser | Waterfox Classic |
Note that a browser version less than current-2 or IE < v11 very unlikely to work.
How is Node-RED installed?
Using the Pi install script
To reproduce
Configure the fs list node to show hidden files, and drive it via an inject node. Click the inject node about 20 times, it is not necessary to do it fast as far as I can see. Node red crashes with the error below.
Clearing Show Hidden Files appears to solve the problem.
Rolling back to v1.1.1 also solves it.
On a Pi Zero running Raspbian the same situation hogs the processor rather than crashing it.
Sample flow:
[{"id":"a8bcf9a2.709be8","type":"fs-file-lister","z":"5bb5a6a6.97527","name":"","start":"/","pattern":"fred","folders":"","hidden":true,"lstype":"files","path":false,"single":false,"depth":0,"stat":false,"x":348,"y":501,"wires":[["46bcb3a2.6fffec"]]},{"id":"c12ea2b0.a615d8","type":"inject","z":"5bb5a6a6.97527","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":181,"y":500,"wires":[["a8bcf9a2.709be8"]]},{"id":"46bcb3a2.6fffec","type":"debug","z":"5bb5a6a6.97527","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":509,"y":500,"wires":[]}]
Node red log:
--- Last few GCs --->
[20213:0x42edca0] 370577 ms: Mark-sweep 253.0 (261.9) -> 252.6 (262.4) MB, 182.7 / 0.0 ms (average mu = 0.145, current mu = 0.012) allocation failure scavenge might not succeed
[20213:0x42edca0] 370866 ms: Mark-sweep 253.4 (262.4) -> 253.1 (262.9) MB, 286.5 / 0.0 ms (average mu = 0.065, current mu = 0.008) allocation failure scavenge might not succeed
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x11ff2755be1d]
1: StubFrame [pc: 0x11ff2754dac0]
Security context: 0x0de13351e6e9 <JSObject>
2: replace [0xde1335105e9](this=0x02e8e53dfb49 <String[10]: .........*>,0x00081dc1d751 <JSRegExp <String[16]: (\\?)((\W)(\3*))>>,0x1ea7b40d5029 <JSFunction input.replace (sfi = 0x1aff74a0f8e9)>)
3: parse(aka parse) [0x28e23a399eb1] [/home/colinl/.node-red/node_modules/picomatch/lib/parse.js:~55] [pc=0x11ff278672b...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8fa090 node::Abort() [node-red]
2: 0x8fa0dc [node-red]
3: 0xb0039e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node-red]
4: 0xb005d4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node-red]
5: 0xef4ae2 [node-red]
6: 0xef4be8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node-red]
7: 0xf00cc2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node-red]
8: 0xf015f4 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node-red]
9: 0xf04261 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node-red]
10: 0xecd6e4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node-red]
11: 0x116d86e v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node-red]
12: 0x11ff2755be1d
nodered.service: Main process exited, code=dumped, status=6/ABRT
nodered.service: Failed with result 'core-dump'.