java.lang.OutOfMemoryError

Failed to allocate a 1464012 byte allocation with 286292 free bytes and 279KB 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 web2823

Solution icon of stackoverflow
via Stack Overflow by GetRealRenz
, 6 months ago
Failed to allocate a 1464012 byte allocation with 286292 free bytes and 279KB until OOM

Solution icon of coderanch
via Coderanch by Dirk Lucas, 7 months ago
Failed to allocate a 13063692 byte allocation with 4194304 free bytes and 10MB until OOM

Solution icon of github
via GitHub by Nexolight
, 6 months ago
Failed to allocate a 1369452 byte allocation with 840912 free bytes and 821KB until OOM

Solution icon of github
via GitHub by sorcer1122
, 7 months ago
Failed to allocate a 16396 byte allocation with 3684 free bytes and 3KB until OOM

Solution icon of github
via GitHub by kientux
, 1 year ago
Failed to allocate a 626707 byte allocation with 216077 free bytes and 211KB until OOM

Solution icon of github
via GitHub by neuspadrin
, 6 months ago
Failed to allocate a 241932 byte allocation with 189424 free bytes and 184KB until OOM

Solution icon of github
via GitHub by Dokuzov
, 1 year ago
Failed to allocate a 4227276 byte allocation with 2371664 free bytes and 2MB until OOM

Solution icon of github
Failed to allocate a 8294412 byte allocation with 8152436 free bytes and 7MB until OOM

Solution icon of github
via GitHub by ftechiesnitin
, 1 year ago
Failed to allocate a 16344170 byte allocation with 12679152 free bytes and 12MB until OOM

Solution icon of github
via GitHub by GedoonS
, 11 months ago
Failed to allocate a 10800012 byte allocation with 8388608 free bytes and 9MB until OOM

Stack trace

  • java.lang.OutOfMemoryError: Failed to allocate a 1464012 byte allocation with 286292 free bytes and 279KB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:634) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:610) at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:83) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:265) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:223) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:136) at com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:297) at com.nostra13.universalimageloader.core.ImageLoader.displayImage(ImageLoader.java:209) at com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:528) at com.nostra13.universalimageloader.core.ImageLoader.loadImage(ImageLoader.java:489) at com.nostra13.universalimageloader.core.ImageLoader.loadImageSync(ImageLoader.java:602) at com.nostra13.universalimageloader.core.ImageLoader.loadImageSync(ImageLoader.java:543) at com.example.navbartest.Parsers.InitNews.getImage(InitNews.java:58) at com.example.navbartest.Parsers.InitNews.<init>(InitNews.java:33) at com.example.navbartest.Parsers.InitNews.onLoadMore(InitNews.java:101) at com.example.navbartest.Fragments.MoneyFragment$onLoadMore.doInBackground(MoneyFragment.java:76) at com.example.navbartest.Fragments.MoneyFragment$onLoadMore.doInBackground(MoneyFragment.java:72)

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

Samebug visitor profile picture
Unknown user
2 times, 10 months ago
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 6 months ago
67 more bugmates