Skip to content

Memory Leak #155

@boedy

Description

@boedy

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:

Screenshot 2020-10-30 at 17 39 28

Tested on:
Raspberry PI 3B+
NodeJS (v8.11.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions