My Node.js script crashes because of a thrown ENOMEM (Out of memory) errnoException when using spawn.
The error:
child_process.js:935 throw errnoEx
You have to flush the outputs from the called process!
A python example looks like this:
import sys ... sys.stdout.flush()