-
Notifications
You must be signed in to change notification settings - Fork 610
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
Dali leaks memory on invalid images #4740
Comments
Hi @joey-trigo, Thank you for reporting this problem. I remember we fixed a similar one some time ago in #4138.
where test.py is your sample. |
Hi,
The bug you referenced does sound very similar, is it possible that only the GPU memory is freed there and not the CPU memory? |
Thanks, @joey-trigo, the repro is very helpful. I believe I managed to fix the issue in #4748. |
Will do, thanks! That fix looks good, I'll test it as soon as it merges |
Hi, tested the change and it looks like it's working. Thanks again! |
Hi!
Due to an issue earlier in my pipeline dali received invalid JPEGs. When that happened, dali ended up leaking memory on each request until my process was killed by OOM. I don't necessarily expect dali to handle invalid JPEGs elegantly but it definitely shouldn't be leaking memory
Here is a minimal test case to reproduce this behaviour:
Running this with a folder
foo/
containing a regular jpg (such as good.jpg works fine. The script has no output and the memory is stable. Running with a corrupted jpg such as0.jpg causes a rapid memory increase until the process is killed
The text was updated successfully, but these errors were encountered: