java.lang.OutOfMemoryError: Failed to allocate a 416160012 byte allocation with 11861984 free bytes and 239MB until OOM


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by Jason
, 9 months ago
Failed to allocate a 416160012 byte allocation with 11861984 free bytes and 239MB until OOM

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

Solution icon of github
via GitHub by astrazzari72
, 1 year ago
Failed to allocate a 1048588 byte allocation with 342216 free bytes and 334KB until OOM

Solution icon of github
via GitHub by manijak
, 6 months ago
Failed to allocate a 2188332 byte allocation with 1938816 free bytes and 1893KB until OOM

Solution icon of github
via GitHub by 2-4601
, 9 months ago
Failed to allocate a 10077708 byte allocation with 316712 free bytes and 309KB until OOM

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

Solution icon of github
Failed to allocate a 7672332 byte allocation with 7074500 free bytes and 6MB until OOM

Solution icon of github
via GitHub by Alexendoo
, 1 year ago
Failed to allocate a 14997484 byte allocation with 10379014 free bytes and 9MB until OOM

Solution icon of github
via GitHub by apperside
, 1 month ago
Failed to allocate a 10227216 byte allocation with 5293641 free bytes and 5MB until OOM

Solution icon of github
via GitHub by JaisonBrooks
, 1 year ago
Failed to allocate a 3111708 byte allocation with 2034696 free bytes and 1987KB until OOM

Stack trace

java.lang.OutOfMemoryError: Failed to allocate a 416160012 byte allocation with 11861984 free bytes and 239MB until OOM
	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
	at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:620)
	at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:455)
	at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1152)
	at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:855)
	at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:706)
	at android.content.res.Resources.getDrawable(Resources.java:776)
	at android.support.v7.widget.ResourcesWrapper.getDrawable(ResourcesWrapper.java:133)
	at android.content.Context.getDrawable(Context.java:525)
	at android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)
	at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321)
	at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:202)
	at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:192)
	at android.support.v7.widget.AppCompatImageHelper.loadFromAttributes(AppCompatImageHelper.java:49)
	at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:65)
	at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:53)
	at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
	at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:980)
	at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1039)
	at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
	at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
	at com.sp.ez_mart.Store_Layout.onCreate(Store_Layout.java:15)
	at android.app.Activity.performCreate(Activity.java:6754)

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

73 times, 11 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
71 more bugmates