Memory leak with libvips 8.9
See original GitHub issueI have a very simple code:
import pyvips
im = pyvips.Image.new_from_file('../imgs/anoir-chafik-37957.jpg')
while True:
im.shrink(16, 16).write_to_file('_vips.16x.png')
It constantly consuming more and more memory until it hangs up.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
php libvips: memory leak and GLib errors - Stack Overflow
I have recently started using libvips for php, and I have noticed that every time a php script is run, the amount of...
Read more >libvips
A fast image processing library with low memory needs. ... libvips 8.9 is now done, so here's a quick overview of what's new....
Read more >README — pyvips 2.2.1 documentation
This binding passes the vips test suite cleanly and with no leaks under python2.7 - python3.6, ... For example, the libvips speed and...
Read more >Support Advisory: Node.js v8 profile memory leak
There is a bug in the Node.js v8 profiler that causes memory leaks in Node.js versions 7 to 8.9.3. For more information, see...
Read more >Deploy details | react-bootstrap/react-overlays - Netlify App
... MaxListenersExceededWarning: Possible EventEmitter memory leak detected. ... /sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-linux-x64.tar.gz.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s the libvips operation cache. It’ll keep the decoded image around in case it is needed again.
Try this:
The
sequential
tag will prevent the image being cached and it’ll be unreffed and decoded again each time. You shouldn’t see memory growth, even without that patch.This is all released now, so I’ll close.