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

Out Of Memory error #39

Open
pradeep1806 opened this issue Nov 20, 2015 · 2 comments
Open

Out Of Memory error #39

pradeep1806 opened this issue Nov 20, 2015 · 2 comments

Comments

@pradeep1806
Copy link

Please find the logs.

E/AndroidRuntime(11680): Caused by: java.lang.OutOfMemoryError: Failed to allocate a 26214412 byte allocation with 13777168 free bytes and 13MB until OOM
E/AndroidRuntime(11680): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
E/AndroidRuntime(11680): at android.graphics.Bitmap.nativeCreate(Native Method)
E/AndroidRuntime(11680): at android.graphics.Bitmap.createBitmap(Bitmap.java:885)
E/AndroidRuntime(11680): at android.graphics.Bitmap.createBitmap(Bitmap.java:909)
E/AndroidRuntime(11680): at com.enrique.stackblur.JavaBlurProcess.blur(JavaBlurProcess.java:102)
E/AndroidRuntime(11680): at com.enrique.stackblur.StackBlurManager.process(StackBlurManager.java:73)
E/AndroidRuntime(11680): at com.micromax.aroundyou.CustomContent$11.doInBackground(CustomContent.java:788)
E/AndroidRuntime(11680): at com.micromax.aroundyou.CustomContent$11.doInBackground(CustomContent.java:777)
E/AndroidRuntime(11680): at android.os.AsyncTask$2.call(AsyncTask.java:292)
E/AndroidRuntime(11680): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/AndroidRuntime(11680): ... 4 more

@Jawnnypoo
Copy link

So I believe this is an issue with the size of the image. Can you tell me the size of the image?

@LanderlYoung
Copy link

In my opinion, it is the programmer's responsibility to catch that Error, since any Bitmap operation (eg. decode, create) may raise an OOM.

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

No branches or pull requests

3 participants