java.lang.OutOfMemoryError: Failed to allocate a 16396 byte allocation with 14928836 free bytes and 106MB 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


6 months ago
Expert tip

The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.


3 months ago

Solutions on the web621

Solution icon of web
via mozilla.com by Unknown author, 9 months ago
Failed to allocate a 16396 byte allocation with 14928836 free bytes and 106MB until OOM

Solution icon of github
via GitHub by matthiasprieth
, 4 months ago
Failed to allocate a 105678412 byte allocation with 16777216 free bytes and 65MB until OOM

Solution icon of github
via GitHub by iceberg1369
, 8 months ago
Failed to allocate a 67108876 byte allocation with 4194208 free bytes and 16MB until OOM

Solution icon of github
Failed to allocate a 1000012 byte allocation with 557840 free bytes and 544KB until OOM

Solution icon of stackoverflow
Failed to allocate a 244588824 byte allocation with 11397108 free bytes and 79MB until OOM

Solution icon of stackoverflow
via Stack Overflow by Paweł O
, 7 months ago
Failed to allocate a 156828 byte allocation with 40472 free bytes and 39KB until OOM

Solution icon of stackoverflow
via Stack Overflow by Kiran
, 1 year ago
Failed to allocate a 69050892 byte allocation with 628840 free bytes and 614KB until OOM

Solution icon of web
Failed to allocate a 167412 byte allocation with 92904 free bytes and 90KB until OOM

Solution icon of github
via GitHub by langyazhouwl
, 9 months ago
Failed to allocate a 138240019 byte allocation with 7739952 free bytes and 84MB until OOM

Solution icon of stackoverflow
Failed to allocate a 2097164 byte allocation with 338434 free bytes and 330KB until OOM

Stack trace

java.lang.OutOfMemoryError: Failed to allocate a 16396 byte allocation with 14928836 free bytes and 106MB until OOM
	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)

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

17 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
8 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
68 more bugmates