java.lang.OutOfMemoryError: bitmap size exceeds VM budget

Stack Overflow | Chrispix | 8 years ago
  1. 0

    Strange out of memory issue while loading an image to a Bitmap object

    Stack Overflow | 8 years ago | Chrispix
    java.lang.OutOfMemoryError: bitmap size exceeds VM budget
  2. 0

    Android-app crash on adding image in custom list view

    Stack Overflow | 4 years ago | varun
    java.lang.OutOfMemoryError: bitmap size exceeds VM budget
  3. 0

    OutOfMemoryError of Bitmap in Android

    Stack Overflow | 4 years ago | anddev
    java.lang.OutOfMemoryError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemoryError captureSharedElementState androidL

    Stack Overflow | 2 years ago | tibo
    java.lang.OutOfMemoryError: Failed to allocate a 1817612 byte allocation with 772936 free bytes
  6. 0

    Poweramp crashing on all 2.10 builds - Bugs - Poweramp

    powerampapp.com | 1 year ago
    java.lang.OutOfMemoryError: Failed to allocate a 16396 byte allocation with 14488 free bytes and 14KB until OOM at com.maxmpz.audioplayer.widget.llI$ll1.<init>(":118) at com.maxmpz.audioplayer.data.0xFF.Il1.<init>(":38) at com.maxmpz.audioplayer.data.0xFF.l1I.<init>(":40) at com.maxmpz.audioplayer.data.0xFF.l1l.<init>(":173) at com.maxmpz.audioplayer.PlayListActivity.onCreate(":149)

  1. bayukresno 7 times, last 7 months ago
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

    bitmap size exceeds VM budget

    at android.graphics.BitmapFactory.nativeDecodeStream()
  2. Android Platform
    ActivityThread.main
    1. android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
    2. android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:304)
    3. android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:149)
    4. android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:174)
    5. android.graphics.drawable.Drawable.createFromPath(Drawable.java:729)
    6. android.widget.ImageView.resolveUri(ImageView.java:484)
    7. android.widget.ImageView.setImageURI(ImageView.java:281)
    8. android.widget.SimpleCursorAdapter.setViewImage(SimpleCursorAdapter.java:183)
    9. android.widget.SimpleCursorAdapter.bindView(SimpleCursorAdapter.java:129)
    10. android.widget.CursorAdapter.getView(CursorAdapter.java:150)
    11. android.widget.AbsListView.obtainView(AbsListView.java:1057)
    12. android.widget.ListView.makeAndAddView(ListView.java:1616)
    13. android.widget.ListView.fillSpecific(ListView.java:1177)
    14. android.widget.ListView.layoutChildren(ListView.java:1454)
    15. android.widget.AbsListView.onLayout(AbsListView.java:937)
    16. android.view.View.layout(View.java:5611)
    17. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
    18. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1108)
    19. android.widget.LinearLayout.onLayout(LinearLayout.java:922)
    20. android.view.View.layout(View.java:5611)
    21. android.widget.FrameLayout.onLayout(FrameLayout.java:294)
    22. android.view.View.layout(View.java:5611)
    23. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
    24. android.widget.LinearLayout.layoutVertical(LinearLayout.java:999)
    25. android.widget.LinearLayout.onLayout(LinearLayout.java:920)
    26. android.view.View.layout(View.java:5611)
    27. android.widget.FrameLayout.onLayout(FrameLayout.java:294)
    28. android.view.View.layout(View.java:5611)
    29. android.view.ViewRoot.performTraversals(ViewRoot.java:771)
    30. android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
    31. android.os.Handler.dispatchMessage(Handler.java:88)
    32. android.os.Looper.loop(Looper.java:123)
    33. android.app.ActivityThread.main(ActivityThread.java:3742)
    33 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame