java.lang.OutOfMemoryError: Failed to allocate a 26211852 byte allocation with 16777216 free bytes and 21MB until OOM

GitHub | minstrelsy | 5 months ago
  1. 0

    OutOfMemory in Lollipop & Marshmallow

    GitHub | 5 months ago | minstrelsy
    java.lang.OutOfMemoryError: Failed to allocate a 26211852 byte allocation with 16777216 free bytes and 21MB until OOM
  2. 0

    GitHub comment 1416#245191145

    GitHub | 3 months ago | ladia12
    java.lang.OutOfMemoryError: Failed to allocate a 8843124 byte allocation with 7598648 free bytes and 7MB until OOM
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    OutOfMemoryError and InflateException android

    Stack Overflow | 7 months ago | Amjad Khader
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.amjad.helthapp/com.example.amjad.helthapp.homepage}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
  5. 0

    Many errors OutOfMemoryError

    GitHub | 3 years ago | moisesvs
    java.lang.OutOfMemoryError

  1. Aria Pahlavan 73 times, last 3 weeks ago
  2. Agócs Tamás 2 times, last 4 months ago
  3. Pawan 4 times, last 5 months ago
  4. Ranjana Dangol 8 times, last 5 months ago
  5. asvid 34 times, last 6 months ago
2 more registered users
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 26211852 byte allocation with 16777216 free bytes and 21MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    Resources.getDrawable
    1. dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
    2. android.graphics.BitmapFactory.nativeDecodeAsset(BitmapFactory.java)
    3. android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:2228)
    6. android.content.res.Resources.loadDrawableForCookie(Resources.java:4211)
    7. android.content.res.Resources.loadDrawable(Resources.java:4085)
    8. android.content.res.Resources.getDrawable(Resources.java:2005)
    9. android.content.res.Resources.getDrawable(Resources.java:1987)
    10. android.content.res.Resources.getDrawable(Resources.java:1961)
    10 frames
  3. com.facebook.drawee
    SimpleDraweeView.<init>
    1. com.facebook.drawee.generic.GenericDraweeHierarchyInflater.getDrawable(SourceFile:227)
    2. com.facebook.drawee.generic.GenericDraweeHierarchyInflater.updateBuilder(SourceFile:116)
    3. com.facebook.drawee.generic.GenericDraweeHierarchyInflater.inflateBuilder(SourceFile:77)
    4. com.facebook.drawee.view.GenericDraweeView.inflateHierarchy(SourceFile:58)
    5. com.facebook.drawee.view.GenericDraweeView.<init>(SourceFile)
    6. com.facebook.drawee.view.SimpleDraweeView.<init>(SourceFile)
    6 frames
  4. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.newInstance(Constructor.java)
    1 frame
  5. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:631)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
    3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:847)
    5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    6. android.view.LayoutInflater.rInflate(LayoutInflater.java:855)
    7. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    8. android.view.LayoutInflater.rInflate(LayoutInflater.java:855)
    9. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
    10. android.view.LayoutInflater.inflate(LayoutInflater.java:527)
    11. android.view.LayoutInflater.inflate(LayoutInflater.java:429)
    11 frames
  6. com.xxx
    xxxFragment.onCreateView
    1. com.xxx.xxxFragment.onCreateView(SourceFile:130)
    1 frame
  7. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.Fragment.performCreateView(SourceFile:1962)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1067)
    3. android.support.v4.app.FragmentManagerImpl.attachFragment(SourceFile:1426)
    4. android.support.v4.app.BackStackRecord.run(SourceFile:728)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(SourceFile:1613)
    6. android.support.v4.app.FragmentManagerImpl.executePendingTransactions(SourceFile:570)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(SourceFile:141)
    8. android.support.v4.view.ViewPager.populate(SourceFile:1106)
    9. android.support.v4.view.ViewPager.populate(SourceFile:952)
    10. android.support.v4.view.ViewPager.onMeasure(SourceFile:1474)
    10 frames
  8. Android Platform
    View.measure
    1. android.view.View.measure(View.java:20151)
    2. android.widget.LinearLayout.measureVertical(LinearLayout.java:900)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    4. android.view.View.measure(View.java:20151)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    7. android.view.View.measure(View.java:20151)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    9. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    10. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    11. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    12. android.view.View.measure(View.java:20151)
    12 frames
  9. Android Support v4
    DrawerLayout.onMeasure
    1. android.support.v4.widget.DrawerLayout.onMeasure(SourceFile:940)
    1 frame
  10. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    3 frames
  11. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(SourceFile:135)
    1 frame
  12. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    14. android.view.View.measure(View.java:20151)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    16 frames
  13. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
    1 frame
  14. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7403)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    14. android.app.ActivityThread.main(ActivityThread.java:7229)
    14 frames
  15. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    1 frame
  16. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames