java.lang.OutOfMemoryError: Failed to allocate a 2555148 byte allocation with 2261680 free bytes and 2MB until OOM

GitHub | firetrap | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bottom bar Icons/textView disappear when pressed multiple times

    GitHub | 8 months ago | firetrap
    java.lang.OutOfMemoryError: Failed to allocate a 2555148 byte allocation with 2261680 free bytes and 2MB until OOM

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Failed to allocate a 2555148 byte allocation with 2261680 free bytes and 2MB until OOM

      at dalvik.system.VMRuntime.newNonMovableArray()
    2. Android Platform
      ViewGroup.drawChild
      1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
      2. android.graphics.Bitmap.nativeCreate(Native Method)
      3. android.graphics.Bitmap.createBitmap(Bitmap.java:831)
      4. android.graphics.Bitmap.createBitmap(Bitmap.java:808)
      5. android.graphics.Bitmap.createBitmap(Bitmap.java:775)
      6. android.graphics.drawable.VectorDrawable$VectorDrawableState.createCachedBitmapIfNeeded(VectorDrawable.java:834)
      7. android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:318)
      8. android.widget.ImageView.onDraw(ImageView.java:1244)
      9. android.view.View.draw(View.java:16178)
      10. android.view.View.updateDisplayListIfDirty(View.java:15174)
      11. android.view.View.draw(View.java:15948)
      12. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      12 frames
    3. android.support.design
      CollapsingToolbarLayout.drawChild
      1. android.support.design.widget.CollapsingToolbarLayout.drawChild(CollapsingToolbarLayout.java:302)
      1 frame
    4. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      2. android.view.View.draw(View.java:16181)
      2 frames
    5. android.support.design
      CollapsingToolbarLayout.draw
      1. android.support.design.widget.CollapsingToolbarLayout.draw(CollapsingToolbarLayout.java:263)
      1 frame
    6. Android Platform
      ViewGroup.drawChild
      1. android.view.View.updateDisplayListIfDirty(View.java:15174)
      2. android.view.View.draw(View.java:15948)
      3. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      4. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      5. android.view.View.draw(View.java:16181)
      6. android.view.View.updateDisplayListIfDirty(View.java:15174)
      7. android.view.View.draw(View.java:15948)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      8 frames
    7. android.support.design
      CoordinatorLayout.drawChild
      1. android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)
      1 frame
    8. Android Platform
      ViewGroup.drawChild
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      2. android.view.View.draw(View.java:16181)
      3. android.view.View.updateDisplayListIfDirty(View.java:15174)
      4. android.view.View.draw(View.java:15948)
      5. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      5 frames
    9. android.support.design
      CoordinatorLayout.drawChild
      1. android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)
      1 frame
    10. Android Platform
      View.draw
      1. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      2. android.view.View.updateDisplayListIfDirty(View.java:15169)
      3. android.view.View.draw(View.java:15948)
      4. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      6. android.view.View.draw(View.java:16181)
      7. android.view.View.updateDisplayListIfDirty(View.java:15174)
      8. android.view.View.draw(View.java:15948)
      9. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      11. android.view.View.updateDisplayListIfDirty(View.java:15169)
      12. android.view.View.draw(View.java:15948)
      13. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      15. android.view.View.updateDisplayListIfDirty(View.java:15169)
      16. android.view.View.draw(View.java:15948)
      17. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      19. android.view.View.updateDisplayListIfDirty(View.java:15169)
      20. android.view.View.draw(View.java:15948)
      21. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      22. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      23. android.view.View.updateDisplayListIfDirty(View.java:15169)
      24. android.view.View.draw(View.java:15948)
      25. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      26. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      27. android.view.View.draw(View.java:16181)
      27 frames
    11. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
      1 frame
    12. Android Platform
      ThreadedRenderer.draw
      1. android.view.View.updateDisplayListIfDirty(View.java:15174)
      2. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
      3. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
      4. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
      4 frames