-
Notifications
You must be signed in to change notification settings - Fork 48
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
OutOfMemoryError: Failed to allocate memory within limits #15
Comments
You can set |
Thank you for your reply, I try to set PREFERRED_PREVIEW_WIDTH and PREFERRED_PREVIEW_HEIGHT to smaller like this : But it also crash at 1-2 minutes . |
It could be memory leaks. |
I try to find memory leaks , but not find, can you help me to find this ? I just use your project only change the MAX_VIDEO_LENGTH to 10 minutes, Thanks ! |
It works fine on my device. Please provide more info about your testing environment (device model, Android version etc) and upload error logs, .hprof, .alloc files around the crash point. |
error log is like this , my device is samsung ,android version is 5.0.1 |
It just point in project file : FFmpegRecordActivity this line |
This could be a bug upstream. See this issue. |
I set android:largeHeap to true ,but It does't work also , I see the Monitors ,this project works hightest memory is 50MB, then it crash,reason is : |
Check if |
Dear CrazyOrr:
I use this Project, after recording 1 minutes will be crash, the reason is java.lang.OutOfMemoryError: Failed to allocate memory within limits: totalBytes = 255M + 112K > maxBytes = 256M
do you have some good suggestions to correct this error
Thanks very much
The text was updated successfully, but these errors were encountered: