-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Out of memory error when using multiple cameras #77
Comments
I've never troubleshooted a Java memory error, so I'm not really sure where to start. So far the Oracle docs aren't that much of a help. |
At Jason's request, I tried adding -Xmx1024m to the JVM options, which increases the available memory to the process. Still dies with 2 cameras. Oh, this is a Windows issue BTW :) |
I will give this a try tonight, thanks!! |
Good catch. I didn't realize they had to be manually released. If that's On Wed, Feb 4, 2015 at 6:06 AM, Neil Jansen notifications@github.com
|
If this works, it can actually be simplified. Just release the Mat after On Wed, Feb 4, 2015 at 8:03 AM, Jason von Nieda jason@vonnieda.org wrote:
|
Can you explain further? I don't understand what you mean by this. |
@FlyingLotus1983 Is this issue still valid? I see you had committed a fix. Are you using it, or are you using the stock code? |
I'll try to check and get back to you.. Don't think I ever submitted a pull request for it. Will investigate. |
OK, just looked into this, I had committed it to my old fork but never did a pull request. I just applied the diff and will send a pull request for this, just as soon as I finish getting eclipse running on my new machine. |
This has been fixed for quite a while. The Mat is now released before the function returns. |
I'm getting an out of memory error for some reason, thinking it might have to do with multiple cameras. I initially had a 90 degree rotation on C1, but the memory error happens if set to zero (which I assume bypasses the rotation code?).
When disabling one camera or the other camera, the system seems to work as expected.
With both cameras enabled, it will eventually freeze with the error below.. the time-to-freeze varies, but is never more than a few minutes.
My machine.xml is posted here:
https://gist.github.com/FlyingLotus1983/51747c6de78558836a9d
The text was updated successfully, but these errors were encountered: