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

Stack Overflow | Adnan Sheikh | 2 months ago
  1. 0

    app stops using fragments with Countdown timer

    Stack Overflow | 2 months ago | Adnan Sheikh
    java.lang.OutOfMemoryError: Failed to allocate a 12695052 byte allocation with 7472568 free bytes and 7MB until OOM
  2. 0

    OOM in viewpager with just 3 albumart

    GitHub | 2 months ago | hiteshsahu
    java.lang.OutOfMemoryError: Failed to allocate a 23040012 byte allocation with 16777120 free bytes and 16MB until OOM
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    How to fix java.lang.OutOfMemoryError in Android

    Stack Overflow | 1 day ago | Dj.Soa
    java.lang.OutOfMemoryError: Failed to allocate a 490012 byte allocation with 316664 free bytes and 309KB until OOM
  5. 0

    How to increase heap size of Android Application?

    Stack Overflow | 12 hours ago | Hemant
    java.lang.OutOfMemoryError: Failed to allocate a 9437196 byte allocation with 3044192 free bytes and 2MB until OOM

  1. mathan m 1 times, last 4 months ago
  2. Agócs Tamás 2 times, last 4 months ago
  3. Ranjana Dangol 3 times, last 5 months ago
  4. bayukresno 1 times, last 6 months ago
  5. Saravana Kumar Chinnaraj 4 times, last 7 months ago
4 more registered users
15 unregistered visitors
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 12695052 byte allocation with 7472568 free bytes and 7MB 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:609)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:988)
    6. android.content.res.Resources.loadDrawableForCookie(Resources.java:2477)
    7. android.content.res.Resources.loadDrawable(Resources.java:2384)
    8. android.content.res.TypedArray.getDrawable(TypedArray.java:749)
    9. android.view.View.<init>(View.java:3742)
    10. android.widget.ImageView.<init>(ImageView.java:149)
    11. android.widget.ImageView.<init>(ImageView.java:145)
    11 frames
  3. Android v7
    AppCompatDelegateImplV9.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.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
    5. android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)
    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:725)
    2. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
    5. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    7 frames
  6. com.example.sheikhspc
    Question4.onCreateView
    1. com.example.sheikhspc.testapp.Question4.onCreateView(Question4.java:36)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.app.Fragment.performCreateView(Fragment.java:2053)
    2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
    3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    4. android.app.BackStackRecord.run(BackStackRecord.java:834)
    5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1454)
    6. android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
    7. android.os.Handler.handleCallback(Handler.java:746)
    8. android.os.Handler.dispatchMessage(Handler.java:95)
    9. android.os.Looper.loop(Looper.java:135)
    10. android.app.ActivityThread.main(ActivityThread.java:5356)
    10 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    2 frames