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

JavaCpp BytePointer OutOfMemory error #130

Closed
tunahanbayindir opened this issue Sep 20, 2016 · 5 comments
Closed

JavaCpp BytePointer OutOfMemory error #130

tunahanbayindir opened this issue Sep 20, 2016 · 5 comments
Labels

Comments

@tunahanbayindir
Copy link

Updated JavaCv and JavaCpp today, now it gives an OutOfMemoryError.
No implementation found for long org.bytedeco.javacpp.Pointer.physicalBytes() (tried Java_org_bytedeco_javacpp_Pointer_physicalBytes and Java_org_bytedeco_javacpp_Pointer_physicalBytes__)

with this print trace and

java.lang.OutOfMemoryError: Cannot allocate 267850702 + 614403 bytes (> Pointer.maxBytes) at org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:543) at org.bytedeco.javacpp.Pointer.init(Pointer.java:121) at org.bytedeco.javacpp.BytePointer.allocateArray(Native Method) at org.bytedeco.javacpp.BytePointer.<init>(BytePointer.java:82) at org.bytedeco.javacv.FFmpegFrameFilter.pushImage(FFmpegFrameFilter.java:265) at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:252) at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:248)

this error code.
Need really urgent help. Best regards.

@saudet
Copy link
Member

saudet commented Sep 20, 2016

Increase that value, usually with the java -Xmx command line flag option.

@saudet saudet closed this as completed Sep 20, 2016
@tunahanbayindir
Copy link
Author

Don't know how to do. Any help, I am using Android Studio.

@saudet
Copy link
Member

saudet commented Sep 20, 2016 via email

@tunahanbayindir
Copy link
Author

tunahanbayindir commented Sep 20, 2016

thanks a lot. largeHeap did the trick but it used about 400mb's ram when recording video with javacpp. Isn't it extremely high??

@saudet
Copy link
Member

saudet commented Sep 24, 2016

If you feel that's too high, please file a ticket about that upstream.

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

No branches or pull requests

2 participants