java.lang.OutOfMemoryError

GitHub | codeanticode | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    OutOfMemoryError when loading an image

    Stack Overflow | 2 years ago | AMb
    java.lang.OutOfMemoryError
  4. 0

    java.lang.OutOfMemoryError

    GitHub | 1 year ago | wussup
    java.lang.OutOfMemoryError
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.Bitmap.nativeCreate()
  2. Android Platform
    Bitmap.createBitmap
    1. android.graphics.Bitmap.nativeCreate(Native Method)
    2. android.graphics.Bitmap.createBitmap(Bitmap.java:928)
    3. android.graphics.Bitmap.createBitmap(Bitmap.java:901)
    4. android.graphics.Bitmap.createBitmap(Bitmap.java:868)
    4 frames
  3. processing.core
    PApplet.initSurface
    1. processing.core.PGraphicsAndroid2D.allocate(Unknown Source)
    2. processing.core.PGraphics.setSize(Unknown Source)
    3. processing.core.PApplet.makeGraphics(Unknown Source)
    4. processing.core.PApplet.initSurface(Unknown Source)
    4 frames
  4. processing.android
    PFragment.onCreateView
    1. processing.android.PFragment.onCreateView(Unknown Source)
    1 frame
  5. Android Support v4
    ViewPager.setCurrentItem
    1. android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    3. android.support.v4.app.FragmentManagerImpl.attachFragment(FragmentManager.java:1430)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:732)
    5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    6. android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:570)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
    8. android.support.v4.view.ViewPager.populate(ViewPager.java:1177)
    9. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:608)
    10. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:570)
    11. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:551)
    11 frames
  6. imc_ebola.test.imcebola
    MainActivity$1.onTabSelected
    1. imc_ebola.test.imcebola.MainActivity$1.onTabSelected(MainActivity.java:91)
    1 frame
  7. android.support.design
    TabLayout$TabView.performClick
    1. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1025)
    2. android.support.design.widget.TabLayout.selectTab(TabLayout.java:995)
    3. android.support.design.widget.TabLayout$Tab.select(TabLayout.java:1272)
    4. android.support.design.widget.TabLayout$TabView.performClick(TabLayout.java:1377)
    4 frames
  8. Android Platform
    ActivityThread.main
    1. android.view.View$PerformClick.run(View.java:19270)
    2. android.os.Handler.handleCallback(Handler.java:733)
    3. android.os.Handler.dispatchMessage(Handler.java:95)
    4. android.os.Looper.loop(Looper.java:146)
    5. android.app.ActivityThread.main(ActivityThread.java:5602)
    5 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame