java.lang.OutOfMemoryError: Failed to allocate a 467251212 byte allocation with 13040548 free bytes and 173MB until OOM

Stack Overflow | Jibran Ejaz | 2 days ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 491#204051809

    GitHub | 11 months ago | 4sskick
    java.lang.OutOfMemoryError: Failed to allocate a 10890012 byte allocation with 4194304 free bytes and 10MB until OOM
  2. 0

    [Crash Log] Mon, 04 Apr 2016 15:45:46 GMT

    GitHub | 11 months ago | blFeedbackBot
    java.lang.OutOfMemoryError: Failed to allocate a 10584012 byte allocation with 4981328 free bytes and 4MB until OOM
  3. 0

    OutOfMemoryError

    GitHub | 2 years ago | zhengxiaopeng
    java.lang.OutOfMemoryError: Failed to allocate a 5017612 byte allocation with 2124244 free bytes and 2MB until OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Studio terminates app instantly

    Stack Overflow | 2 days ago | Jibran Ejaz
    java.lang.OutOfMemoryError: Failed to allocate a 467251212 byte allocation with 13040548 free bytes and 173MB until OOM
  6. 0

    setOnClickListener get OutOfMemoryError

    Stack Overflow | 10 months ago | Poh
    java.lang.OutOfMemoryError: Failed to allocate a 95976012 byte allocation with 16777120 free bytes and 38MB 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 467251212 byte allocation with 13040548 free bytes and 173MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    ImageView.<init>
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    3. android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:667)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:488)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1082)
    6. android.content.res.Resources.loadDrawableForCookie(Resources.java:2702)
    7. android.content.res.Resources.loadDrawable(Resources.java:2603)
    8. android.content.res.HwResources.loadDrawable(HwResources.java:665)
    9. android.content.res.TypedArray.getDrawable(TypedArray.java:912)
    10. android.widget.ImageView.<init>(ImageView.java:152)
    11. android.widget.ImageView.<init>(ImageView.java:140)
    11 frames
  3. Android v7
    AppCompatDelegateImplV7.onCreateView
    1. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:57)
    2. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:53)
    3. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
    4. android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:1008)
    5. android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1067)
    5 frames
  4. Android Support v4
    LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
    1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
    1 frame
  5. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:765)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:723)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:854)
    4. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:817)
    5. android.view.LayoutInflater.rInflate(LayoutInflater.java:857)
    6. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:817)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:534)
    8. android.view.LayoutInflater.inflate(LayoutInflater.java:434)
    9. android.view.LayoutInflater.inflate(LayoutInflater.java:377)
    9 frames
  6. 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
  7. com.jibran.ejaz
    MainActivity.onCreate
    1. com.jibran.ejaz.prayertimes.MainActivity.onCreate(MainActivity.java:17)
    1 frame
  8. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6367)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2397)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504)
    5. android.app.ActivityThread.access$900(ActivityThread.java:165)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:150)
    9. android.app.ActivityThread.main(ActivityThread.java:5546)
    9 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
    2 frames