Skip to content

馃悰Memory leak聽#353

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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