java.lang.OutOfMemoryError: Failed to allocate a 8754216 byte allocation with 6257104 free bytes and 5MB until OOM


Solutions on the web

Solution icon of stackoverflow
Failed to allocate a 8754216 byte allocation with 6257104 free bytes and 5MB until OOM

Solution icon of github
via GitHub by vkramsingh
, 1 year ago
Failed to allocate a 15116556 byte allocation with 5346608 free bytes and 5MB until OOM

Solution icon of github
via GitHub by onurh
, 4 weeks ago
Failed to allocate a 7834380 byte allocation with 5303464 free bytes and 5MB until OOM

Solution icon of github
via GitHub by takn
, 11 months ago
Failed to allocate a 8294412 byte allocation with 5353726 free bytes and 5MB until OOM

Solution icon of github
Failed to allocate a 10690572 byte allocation with 6103696 free bytes and 5MB until OOM

Solution icon of stackoverflow
via Stack Overflow by Daniel Matev
, 1 year ago
Failed to allocate a 60652956 byte allocation with 4194304 free bytes and 5MB until OOM

Solution icon of stackoverflow
Failed to allocate a 9223212 byte allocation with 5451732 free bytes and 5MB until OOM

Solution icon of stackoverflow
Failed to allocate a 9437196 byte allocation with 5482336 free bytes and 5MB until OOM

Solution icon of github
via GitHub by AEFeinstein
, 1 year ago
Failed to allocate a 6076428 byte allocation with 5932552 free bytes and 5MB until OOM

Solution icon of stackoverflow
via Stack Overflow by sunny
, 1 year ago
Failed to allocate a 7128012 byte allocation with 5880016 free bytes and 5MB until OOM

Stack trace

java.lang.OutOfMemoryError: Failed to allocate a 8754216 byte allocation with 6257104 free bytes and 5MB 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:1155)
	at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:720)
	at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:571)
	at android.content.res.Resources.loadDrawable(Resources.java:858)
	at android.content.res.TypedArray.getDrawable(TypedArray.java:928)
	at android.widget.ImageView.<init>(ImageView.java:162)
	at android.widget.ImageView.<init>(ImageView.java:150)
	at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:60)
	at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:56)
	at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
	at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1017)
	at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1076)
	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.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:994)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:854)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
	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.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
	at com.devsvalley.pacobookings.HallDetailActivity.onCreate(HallDetailActivity.java:116)
	at android.app.Activity.performCreate(Activity.java:6679)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)

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

9 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
76 more bugmates