Skip to content

Memory issues #11

@prereality

Description

@prereality

Is any one having severe memory issues with this node wrapper for vips? I am looking to use it for a project but my tests so far with a 9meg jpeg has the library erroring out after about 25-30 iterations with an error stating "copy failed". The free memory drops quite rapidly from about 3.1gb free down to about 20meg it struggles at this level for a few more runs before breaking out with the error. My test is a simple one with an input folder containing 100 copies (1.jpg -> 100.jpg) of the fore mentioned 9 Meg jpeg with a simple JS setInterval processing one image every 5 seconds ( the image is resized in less that 1.5 seconds). If I repeat the same test using vips via bash (command line):

timestamp() {
date +"%T"
}
echo START
timestamp
for i in {1..100}
do
timestamp
vips im_shrink test_photos/$i.jpg output/$i.jpg 4.42 4.42
done

echo END
timestamp

There are no memory issues at all and all 100 images are processed. I have tested this issue in both vips versions 7.26 and the latest 7.36

If anyone has an ideas, suggestions or would like the test image and js test let me know. Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions