Skip to content

Memory leak on subscription #241

Description

@abramenko95

I am trying to use Oboe.js to subscription, receive and parse server data. I have problem with growing string inside function handleProgress() in file oboe-browser.js. In an hour and a half, the string grows from 1.4Mb to 150Mb. In a day, application (tab in browser) crashed. I am trying to use oboe.drop(), but it didn't work for me. I attach example of code and snapshots of memory samplings.

let subscription = oboe({
    url: 'SOME URL',
    cached: false,
  })
  .start(() => {
    // SOME COMMENTED CODE
  })
  .node('!.*', (status) => {
    // SOME COMMENTED CODE
    return oboe.drop();
  }).on('fail', function (error) {
    // SOME COMMENTED CODE
    return oboe.drop();
  });

snapshot2
spanshot1
Somebody know how fix this problem?

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