java.lang.OutOfMemoryError: Failed to allocate a 23040012 byte allocation with 16777120 free bytes and 16MB until OOM

GitHub | hiteshsahu | 6 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

    OOM in viewpager with just 3 albumart

    GitHub | 6 months ago | hiteshsahu
    java.lang.OutOfMemoryError: Failed to allocate a 23040012 byte allocation with 16777120 free bytes and 16MB until OOM
  2. 0

    app stops using fragments with Countdown timer

    Stack Overflow | 6 months ago | Adnan Sheikh
    java.lang.OutOfMemoryError: Failed to allocate a 12695052 byte allocation with 7472568 free bytes and 7MB 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 | 4 months 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 | 4 months ago | Hemant
    java.lang.OutOfMemoryError: Failed to allocate a 9437196 byte allocation with 3044192 free bytes and 2MB 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 23040012 byte allocation with 16777120 free bytes and 16MB 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:837)
    4. android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:656)
    5. android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1037)
    6. android.content.res.Resources.loadDrawableForCookie(Resources.java:4037)
    7. android.content.res.Resources.loadDrawable(Resources.java:3910)
    8. android.content.res.TypedArray.getDrawable(TypedArray.java:776)
    9. android.view.View.<init>(View.java:4001)
    10. android.widget.ImageView.<init>(ImageView.java:144)
    11. android.widget.ImageView.<init>(ImageView.java:140)
    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:732)
    2. android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:511)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:415)
    4 frames
  6. com.c2h5oh.beer
    SongPagerAdapter.instantiateItem
    1. com.c2h5oh.beer.view.adapter.SongPagerAdapter.instantiateItem(SongPagerAdapter.java:46)
    1 frame
  7. Android Support v4
    ViewPager.setAdapter
    1. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1006)
    2. android.support.v4.view.ViewPager.populate(ViewPager.java:1154)
    3. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
    4. android.support.v4.view.ViewPager.setAdapter(ViewPager.java:542)
    4 frames
  8. com.c2h5oh.beer
    MediaHost.onPostExecute
    1. com.c2h5oh.beer.view.activity.AudioPlayerActivity.addViewListeners(AudioPlayerActivity.java:331)
    2. com.c2h5oh.beer.view.activity.AudioPlayerActivity.access$800(AudioPlayerActivity.java:60)
    3. com.c2h5oh.beer.view.activity.AudioPlayerActivity$14.onSuccess(AudioPlayerActivity.java:560)
    4. com.c2h5oh.beer.domain.OfflineMediaProvider.MediaHost.onPostExecute(MediaHost.java:64)
    5. com.c2h5oh.beer.domain.OfflineMediaProvider.MediaHost.onPostExecute(MediaHost.java:10)
    5 frames
  9. Android Platform
    ActivityThread.main
    1. android.os.AsyncTask.finish(AsyncTask.java:636)
    2. android.os.AsyncTask.access$500(AsyncTask.java:177)
    3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:145)
    6. android.app.ActivityThread.main(ActivityThread.java:6917)
    6 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    2 frames