I'm experiencing a memory leak on my raspberry PI using node-speaker. Running the code copied from @LinusU in this PR #22) will slowly consume all available memory:
var Speaker = require('speaker');
var RandStream = require('randstream');
var s = new Speaker();
var firehose = new RandStream();
firehose.pipe(s);
I'm not able to pinpoint the error, but based on my heap profiles a lot of object are remaining behind, which are not being cleaned by the GC. See a screenshot of that below:

Tested on:
Raspberry PI 3B+
NodeJS (v8.11.4)
I'm experiencing a memory leak on my raspberry PI using
node-speaker. Running the code copied from @LinusU in this PR #22) will slowly consume all available memory:I'm not able to pinpoint the error, but based on my heap profiles a lot of object are remaining behind, which are not being cleaned by the GC. See a screenshot of that below:
Tested on:
Raspberry PI 3B+
NodeJS (v8.11.4)