java.lang.OutOfMemoryError

Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB 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 web2789

  • via Stack Overflow by Jesse Liberty
    , 5 months ago
    Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB until OOM
  • Failed to allocate a 5614568 byte allocation with 4904032 free bytes and 4MB until OOM
  • Failed to allocate a 6127628 byte allocation with 4344378 free bytes and 4MB until OOM
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675) at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:703) at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:733)

    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

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    8 times, 5 months ago
    24 times, 8 months ago
    2 times, 9 months ago
    66 more bugmates