java.lang.OutOfMemoryError

Failed to allocate a 90012 byte allocation with 73184 free bytes and 71KB until OOM

Samebug tips4

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2788

  • via GitHub by pasin
    , 10 months ago
    Failed to allocate a 90012 byte allocation with 73184 free bytes and 71KB until OOM
  • via Coderanch by Dirk Lucas, 6 months ago
    Failed to allocate a 13063692 byte allocation with 4194304 free bytes and 11MB until OOM
  • via GitHub by kkot
    , 6 months ago
    Failed to allocate a 57283554 byte allocation with 16777120 free bytes and 34MB until OOM
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 90012 byte allocation with 73184 free bytes and 71KB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:817) at android.graphics.Bitmap.createBitmap(Bitmap.java:794) at android.graphics.Bitmap.createBitmap(Bitmap.java:714) at android.graphics.Bitmap.createBitmap(Bitmap.java:639) at android.media.ThumbnailUtils.transform(ThumbnailUtils.java:436) at android.media.ThumbnailUtils.extractThumbnail(ThumbnailUtils.java:226) at android.media.ThumbnailUtils.extractThumbnail(ThumbnailUtils.java:201) at com.couchbase.todolite.MainActivity$TasksFragment.onActivityResult(MainActivity.java:858) at android.app.Activity.dispatchActivityResult(Activity.java:6139) at android.app.ActivityThread.deliverResults(ActivityThread.java:3535) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3582) at android.app.ActivityThread.access$1300(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 5 months ago
    24 times, 8 months ago
    2 times, 9 months ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 10 months ago
    65 more bugmates