question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Marshmallow can't recycle memory in Recyclerview

See original GitHub issue
04-09 22:57:50.567 17733-17804/sunger.org.net.meishi E/AndroidRuntime: FATAL EXCEPTION: Thread-392
                                                                       Process: sunger.org.net.meishi, PID: 17733
                                                                       Theme: themes:{}
                                                                       java.lang.OutOfMemoryError: Failed to allocate a 921612 byte allocation with 563712 free bytes and 550KB until OOM
                                                                           at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
                                                                           at android.graphics.Bitmap.nativeCreate(Native Method)
                                                                           at android.graphics.Bitmap.createBitmap(Bitmap.java:832)
                                                                           at android.graphics.Bitmap.createBitmap(Bitmap.java:809)
                                                                           at android.graphics.Bitmap.createBitmap(Bitmap.java:776)
                                                                           at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:55)
                                                                           at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:30)
                                                                           at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:259)
                                                                           at com.facebook.imagepipeline.platform.ArtDecoder.decodeStaticImageFromStream(ArtDecoder.java:137)
                                                                           at com.facebook.imagepipeline.platform.ArtDecoder.decodeJPEGFromEncodedImage(ArtDecoder.java:120)
                                                                           at com.facebook.imagepipeline.decoder.ImageDecoder.decodeJpeg(ImageDecoder.java:151)
                                                                           at com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage(ImageDecoder.java:85)
                                                                           at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:189)
                                                                           at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200(DecodeProducer.java:97)
                                                                           at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:129)
                                                                           at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:207)
                                                                           at com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:27)
                                                                           at com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:78)
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                           at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)
                                                                           at java.lang.Thread.run(Thread.java:818)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sungerkcommented, Apr 20, 2016

@kirwan i calling the setOldController as sample. the but it’s still has the problem

0reactions
sungerkcommented, Apr 19, 2016

thanks.I will try

Read more comments on GitHub >

github_iconTop Results From Across the Web

recyclerview vieholder is not getting recycled - Stack Overflow
developing an image picker using recyclerview with all images in devices for an android app, facing an issue when user scroll through images ......
Read more >
Create dynamic lists with RecyclerView - Android Developers
When an item scrolls off the screen, RecyclerView doesn't destroy its view. Instead, RecyclerView reuses the view for new items that have scrolled...
Read more >
Getting Started With RecyclerView in Android — Kotlin - Medium
Loading all views at the beginning wastes memory since there will be many views loaded that cannot be seen on the screen. When...
Read more >
Android RecyclerView Tutorial - In Depth Guide incl. Different ...
FREE! Join our All-Access subscription to get access to all of our premium courses including the complete Android Masterclass: ...
Read more >
Android RecyclerView, Android CardView Example Tutorial
As the name suggests, Android RecyclerView is used to reuse cells when scrolling up and down by recycling the items in the list....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found