-
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
java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes (974M) > maxPhysicalBytes (512M) #1465
Comments
Please try again with JavaCV 1.5.4-SNAPSHOT: http://bytedeco.org/builds/ |
I have similar errors: Setup: export JAVA_MIN_MEM=512M Javacv 1.3.3 Env: Karaf, Java8, Linux/Mac OSX For two cases: Caused by: java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes = 2G > maxPhysicalBytes = 1G Caused by: java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes = 1G > maxPhysicalBytes = 1G *for 2nd error, accessed from >>> try (MatVector matVector = new MatVector()) { ... } |
@cotfas This one appeared on Android |
@saudet Due to network problems, it cannot be downloaded. When will 1.5.4 come out? |
Please try again, the snapshots should work now. |
@saudet I replaced to 1.5.4 but the problem still occurs |
512 MB is not a lot of memory. You'll probably need more memory than that anyway. Make sure to set the "largeHeap" to "true": |
Duplicate of #707 |
@saudet this is not good idea,I want to increase automatically when the memory is insufficient, instead of doing so, it seems that this kind of problem rarely occurs, whether it is a problem with the code, I use the jni method to perform the creation of the grab |
We can also let the process use more memory by setting the "org.bytedeco.javacpp.maxphysicalbytes" system property to the desired value or "0" to disable the check. |
@saudet Thanks, i will try it |
I tried to port the jar of this project to unreal engine 4, Android platform, but found that when I dynamically create a FFmpegFrameGrabber.createDefault(url);, when the memory exceeds 512M, an error will be reported, the error is as follows
The text was updated successfully, but these errors were encountered: