java.lang.OutOfMemoryError: Failed to allocate a 416160012 byte allocation with 11861984 free bytes and 239MB until OOM

Stack Overflow | Jason | 4 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

    Failed to allocate size

    Stack Overflow | 4 months ago | Jason
    java.lang.OutOfMemoryError: Failed to allocate a 416160012 byte allocation with 11861984 free bytes and 239MB until OOM
  2. 0

    App crashes when reopening

    Stack Overflow | 1 year ago | Remco van den Dungen
    java.lang.RuntimeException: Unable to start activity ComponentInfo{remco.politiewillemiiapp/remco.politiewillemiiapp.MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
  3. 0

    OutOfMemory in NavigationView

    Stack Overflow | 8 months ago | vdopp
    java.lang.RuntimeException: Unable to start activity ComponentInfo{me.finalproject.com.apchemchemolyapp/me.finalproject.com.apchemchemolyapp.MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Listview out of memory exception in viewholder

    Stack Overflow | 12 months ago | james
    java.lang.OutOfMemoryError: Failed to allocate a 26620312 byte allocation with 4194304 free bytes and 11MB until OOM
  6. 0

    Too many ImageButton makes the app crash

    Stack Overflow | 7 days ago | Luke The Dal Zot
    java.lang.OutOfMemoryError: Failed to allocate a 9000012 byte allocation with 204192 free bytes and 199KB 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 416160012 byte allocation with 11861984 free bytes and 239MB 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:620)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:455)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1152)
    6. android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:855)
    7. android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:706)
    8. android.content.res.Resources.getDrawable(Resources.java:776)
    8 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:525)
    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:321)
    2 frames
  6. Android v7
    AppCompatDelegateImplV7.onCreateView
    1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:202)
    2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:192)
    3. android.support.v7.widget.AppCompatImageHelper.loadFromAttributes(AppCompatImageHelper.java:49)
    4. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:65)
    5. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:53)
    6. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
    7. android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:980)
    8. android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1039)
    8 frames
  7. Android Support v4
    LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
    1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
    1 frame
  8. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
    4. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:518)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:426)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:377)
    7 frames
  9. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  10. com.sp.ez_mart
    Store_Layout.onCreate
    1. com.sp.ez_mart.Store_Layout.onCreate(Store_Layout.java:15)
    1 frame
  11. Android Platform
    Activity.performCreate
    1. android.app.Activity.performCreate(Activity.java:6754)
    1 frame