java.lang.OutOfMemoryError

Stack Overflow | AmirrezASe7eN | 7 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

    4 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

      No message provided

      at android.graphics.BitmapFactory.nativeDecodeAsset()
    2. Android Platform
      View.setBackgroundResource
      1. android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      2. android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500)
      3. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:353)
      4. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781)
      5. android.content.res.Resources.loadDrawable(Resources.java:1930)
      6. android.content.res.Resources.getDrawable(Resources.java:659)
      7. android.view.View.setBackgroundResource(View.java:14179)
      7 frames
    3. com.myapps.gridviewexample
      GridViewActivity$ImageAdapter.getView
      1. com.myapps.gridviewexample.GridViewActivity$ImageAdapter.getView(GridViewActivity.java:89)
      1 frame
    4. Android Platform
      ViewGroup.layout
      1. android.widget.AbsListView.obtainView(AbsListView.java:2267)
      2. android.widget.GridView.makeAndAddView(GridView.java:1331)
      3. android.widget.GridView.makeRow(GridView.java:331)
      4. android.widget.GridView.fillDown(GridView.java:283)
      5. android.widget.GridView.fillFromTop(GridView.java:407)
      6. android.widget.GridView.layoutChildren(GridView.java:1219)
      7. android.widget.AbsListView.onLayout(AbsListView.java:2102)
      8. android.view.View.layout(View.java:13754)
      9. android.view.ViewGroup.layout(ViewGroup.java:4362)
      10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
      11. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1638)
      12. android.widget.LinearLayout.onLayout(LinearLayout.java:1422)
      13. android.view.View.layout(View.java:13754)
      14. android.view.ViewGroup.layout(ViewGroup.java:4362)
      15. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      16. android.view.View.layout(View.java:13754)
      17. android.view.ViewGroup.layout(ViewGroup.java:4362)
      17 frames
    5. Android v7
      ActionBarOverlayLayout.onLayout
      1. android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:13754)
      2. android.view.ViewGroup.layout(ViewGroup.java:4362)
      3. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      4. android.view.View.layout(View.java:13754)
      5. android.view.ViewGroup.layout(ViewGroup.java:4362)
      6. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
      7. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
      8. android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
      9. android.view.View.layout(View.java:13754)
      10. android.view.ViewGroup.layout(ViewGroup.java:4362)
      11. android.widget.FrameLayout.onLayout(FrameLayout.java:448)
      12. android.view.View.layout(View.java:13754)
      13. android.view.ViewGroup.layout(ViewGroup.java:4362)
      14. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1866)
      15. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1687)
      16. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
      17. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
      18. android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
      19. android.view.Choreographer.doCallbacks(Choreographer.java:555)
      20. android.view.Choreographer.doFrame(Choreographer.java:525)
      21. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
      22. android.os.Handler.handleCallback(Handler.java:615)
      23. android.os.Handler.dispatchMessage(Handler.java:92)
      24. android.os.Looper.loop(Looper.java:137)
      25. android.app.ActivityThread.main(ActivityThread.java:4745)
      25 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame