Skip to content

🐛Memory leak #353

@PekingSpades

Description

@PekingSpades

Precondition

  • Version number: latest version: { full: '2.0.5', major: 2, minor: 0, dot: 5 }
  • Browser: Chrome 130.0.6723.117

I modified the source code when I used it in my project. The main part that was modified was to determine when to use Blob. when my project is running under self-signed HTTPS and is on an intranet with no access to the internet, it will degrade to use the Blob scheme, as you would design it in your project. So, using Blob remains very common in my projects.

Anyway, if you downgrade to Blob, it triggers the bug.

Bug

Replication path: download large files using Blob. If you call the close() method multiple times, you can continue to trigger the download. This means that the data is still in memory.

Reason

Even if the caller no longer holds the object returned by streamsaver.createWriteStream, the memory referenced by the link created by the URL.createObjectURL method is still not freed.

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