java.lang.OutOfMemoryError

Failed to allocate a 1000012 byte allocation with 627808 free bytes and 613KB 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 web2786

  • via Stack Overflow by Anunay
    , 1 year ago
    Failed to allocate a 1000012 byte allocation with 627808 free bytes and 613KB until OOM
  • Failed to allocate a 1000012 byte allocation with 732188 free bytes and 715KB 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
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 1000012 byte allocation with 627808 free bytes and 613KB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeFileDescriptor(Native Method) at android.graphics.BitmapFactory.decodeFileDescriptor(BitmapFactory.java:672) at android.graphics.BitmapFactory.decodeFileDescriptor(BitmapFactory.java:704) at com.example.anunay.musicplayerdemo.Song.getAlbumArt(Song.java:165) at com.example.anunay.musicplayerdemo.Song.getPlayList(Song.java:114) at com.example.anunay.musicplayerdemo.PlayListActivity.onCreate(PlayListActivity.java:63) at android.app.Activity.performCreate(Activity.java:6323) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494) at android.app.ActivityThread.access$900(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5451) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    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

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