Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Maybe memory leak? #667

@2youyou2

Description

@2youyou2

Hi,
I was building a texture packer with sharp, and i use sharp.overlayWith to pack small pictures to a big picture.
I found the way to overlay multiple pictures to a picture in #405. But it seems this will increase memory usage to a huge number and memory will not be release.

Before pack textures: memory usage 88.8 m
image

After pack textures: Memory usage 1.67 g
image

I have also disable the cache with sharp.cache(false), but it has no effect.

The example is here: https://github.com/2youyou2/electron-pitfalls
Please follow these steps:

Thanks for looking this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions