Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory use saving a gif #115

Closed
rafaqz opened this issue May 9, 2018 · 1 comment
Closed

Memory use saving a gif #115

rafaqz opened this issue May 9, 2018 · 1 comment

Comments

@rafaqz
Copy link

rafaqz commented May 9, 2018

I'm saving a gif of a boolean array:

using FileIO
cells = rand(Bool(0):Bool(1), 300, 300, 1000)
save("/tmp/test.gif", cells, fps=30)

The file is about 13Mb, but the ram used is 2-3Gb! And it doesn't go back down after save finishes. Eventually it crashes julia when it runs out of memory after a few saves. gc() only frees a small part of the used memory.

A smaller array does not have this effect, there is some kind of tipping point where memory use increases.

imagemagick version : 7.0.7.28-1

ImageMagick 0.5.1
FileIO 0.7.0

Julia Version 0.6.2
Commit d386e40 (2017-12-13 18:08 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libm
LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)

@timholy
Copy link
Member

timholy commented Dec 12, 2019

I can't replicate this anymore (Julia 1.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants