java.lang.OutOfMemoryError

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


Solutions on the web2799

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 strubelz
, 9 months ago
Failed to allocate a 8294412 byte allocation with 6001984 free bytes and 5MB until OOM

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

Solution icon of github
Failed to allocate a 6350412 byte allocation with 5567360 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
via Stack Overflow by sunny
, 1 year ago
Failed to allocate a 7128012 byte allocation with 5880016 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 github
Failed to allocate a 7755276 byte allocation with 4194208 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
via Stack Overflow by akhdi boom
, 3 months ago
Failed to allocate a 16000012 byte allocation with 5290208 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, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 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
74 more bugmates