-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
need help, javacv 1.5.9 memory leak #2119
Comments
If the problem doesn't occur without VideoComputeInfo, it's a problem with your VideoComputeInfo, not JavaCV. |
thank you for your reply! but VideoComputeInfo is a simple java object , use java heap. i analysis the java heap memory, its looks like normal, so the leak occurs not in java heap? |
If you can reproduce the issue without VideoComputeInfo, please provide such sample code. |
and VideoComputeInfo should occupy very little memory, but actually it will eat 1G memory one day |
i also want to know , Is the way I'm using javacv correct? |
Looks alright, but the problem might also be caused by your InputStream. If you're not closing your InputStream, it can leak memory. If you want me to help, you'll need to come up with something that doesn't depend on your system. |
hi, i find where is bug is. when FFmpegFrameGrabber input param is inputstream,it don't realease avformat and occurs memory leak. when i change FFmpegFrameGrabber input param from inputstream to file, memory leak disapears. otherwise, in this issue : #911, someone has mensioned it, looks like the same problem with me. |
Sounds like a fix. Please open a pull request!
|
|
hello,i had the same problem.How did you reslove it? |
@Lwine Thanks for the fix! @shaoneng111 Please give it a try with the snapshots: http://bytedeco.org/builds/ |
How to fix this javacv 1.5.9 memory leak ? Base in javacv keep version 1.5.9,not change |
JavaCV 1.5.11 has been released and should fix this issue, but please let me know if you still have problems! Thanks |
And thanks for @Lwine for the fix! |
environment : centos 6.8
jdk: java8
problem: memory is growing slowly
mycode:
i don't know what's wrong with it
The text was updated successfully, but these errors were encountered: