java.lang.OutOfMemoryError: Failed to allocate a 8876812 byte allocation with 7873968 free bytes and 7MB until OOM

Stack Overflow | Itiel Maimon | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.OutOfMemoryError with ViewPager that contains ImageViews

    Stack Overflow | 8 months ago | Itiel Maimon
    java.lang.OutOfMemoryError: Failed to allocate a 8876812 byte allocation with 7873968 free bytes and 7MB until OOM
  2. 0

    OutOfMemoryError and Lag

    GitHub | 7 months ago | Pika3323
    java.lang.OutOfMemoryError: Failed to allocate a 37748748 byte allocation with 16777216 free bytes and 35MB until OOM
  3. 0

    OutOfMemoryError while loading images in RecyclerView

    Stack Overflow | 5 months ago | hetal shah
    java.lang.OutOfMemoryError: Failed to allocate a 548695740 byte allocation with 1430730 free bytes and 253MB until OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Simple Android App - Out of Memory error when running on smartphone

    Stack Overflow | 2 months ago | Kajetan Schuler
    java.lang.OutOfMemoryError: Failed to allocate a 192000012 byte allocation with 16775360 free bytes and 69MB until OOM
  6. 0

    Android Gmaps API error

    Stack Overflow | 5 months ago | Christine Jade Saturno Padullo
    java.lang.OutOfMemoryError: Failed to allocate a 52416012 byte allocation with 4194208 free bytes and 12MB until OOM
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 8876812 byte allocation with 7873968 free bytes and 7MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    Resources.getDrawable
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    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)
    9 frames
  3. Android v7
    ResourcesWrapper.getDrawable
    1. android.support.v7.widget.ResourcesWrapper.getDrawable(ResourcesWrapper.java:133)
    1 frame
  4. Android Platform
    Context.getDrawable
    1. android.content.Context.getDrawable(Context.java:464)
    1 frame
  5. Android Support v4
    ContextCompat.getDrawable
    1. android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)
    2. android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:352)
    2 frames
  6. Android v7
    AppCompatImageView.setImageResource
    1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:193)
    2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:181)
    3. android.support.v7.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:72)
    4. android.support.v7.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:71)
    4 frames
  7. appinventor.ai_itiel_maimon.Rubiks_cube
    S7.onCreateView
    1. appinventor.ai_itiel_maimon.Rubiks_cube.S7.onCreateView(S7.java:28)
    1 frame
  8. Android Support v4
    ViewPager.setCurrentItem
    1. android.support.v4.app.Fragment.performCreateView(Fragment.java:2074)
    2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
    3. android.support.v4.app.FragmentManagerImpl.attachFragment(FragmentManager.java:1464)
    4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:748)
    5. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1632)
    6. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:637)
    7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143)
    8. android.support.v4.view.ViewPager.populate(ViewPager.java:1235)
    9. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:666)
    10. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:628)
    11. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:609)
    11 frames
  9. android.support.design
    TabLayout$TabView.performClick
    1. android.support.design.widget.TabLayout$ViewPagerOnTabSelectedListener.onTabSelected(TabLayout.java:2168)
    2. android.support.design.widget.TabLayout.dispatchTabSelected(TabLayout.java:1157)
    3. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1151)
    4. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1124)
    5. android.support.design.widget.TabLayout$Tab.select(TabLayout.java:1419)
    6. android.support.design.widget.TabLayout$TabView.performClick(TabLayout.java:1524)
    6 frames
  10. Android Platform
    ActivityThread.main
    1. android.view.View$PerformClick.run(View.java:22526)
    2. android.os.Handler.handleCallback(Handler.java:739)
    3. android.os.Handler.dispatchMessage(Handler.java:95)
    4. android.os.Looper.loop(Looper.java:158)
    5. android.app.ActivityThread.main(ActivityThread.java:7229)
    5 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  12. 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