java.lang.OutOfMemoryError

Failed to allocate a 3240012 byte allocation with 2370308 free bytes and 2MB until OOM

Samebug tips4

This was issue #159 in Fresco, and was fixed recently, in v1.3.0.

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 web2779

  • via GitHub by huhuanhuan
    , 10 months ago
    Failed to allocate a 3240012 byte allocation with 2370308 free bytes and 2MB until OOM
  • Failed to allocate a 3240012 byte allocation with 1617768 free bytes and 1579KB until OOM
  • via GitHub by strubelz
    , 8 months ago
    Failed to allocate a 3686412 byte allocation with 2645616 free bytes and 2MB until OOM
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 3240012 byte allocation with 2370308 free bytes and 2MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:939) at android.graphics.Bitmap.createBitmap(Bitmap.java:912) at android.graphics.Bitmap.createBitmap(Bitmap.java:879) at com.github.mikephil.charting.renderer.LineChartRenderer.drawData(LineChartRenderer.java:88) at com.github.mikephil.charting.charts.BarLineChartBase.onDraw(BarLineChartBase.java:247)

    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

    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 9 months ago
    68 more bugmates