Fresco.initialize caused Application Not Responding
Description
While executing a code on below line it is producing ANR. ANR's are reported on Crashlytics We are facing ANR while initializing the liabrary as
fun init() {
Fresco.initialize(application, imagePipelineConfig)
}
Below is the ANR report from Crashlytics:
at java.util.concurrent.CancellationException.
Reproduction
It is an online ANR, I can't reproduce it on my phone, however it happens for multiple users.
Solution
N/A
Additional Information
- Fresco version: 2.5.0
- Platform version: Android version 11, 12, 13 Devices: HMD Global, Motorola, Google Cros, Oneplus, Samsung and other
Any update on it? or do I need to assign it to any specific person in order get the update ? cc : @ @steelrooter
fun init() { Fresco.initialize(application, imagePipelineConfig) }
docs/images/ActionsPermissions.png
docs/images/ActionsPermissions.png
how do you solved this?
I thought by updating the version it will resolve the ANR. But it seems it is still there. Reopening the issue.:
There are multiple similar ANR's reported on Crashlytics:
main (runnable):tid=1 systid=2700
at androidx.core.util.Pools$SynchronizedPool.release(Pools.kt:130)
at com.facebook.imagepipeline.platform.PlatformDecoderFactory.createPool(PlatformDecoderFactory.java:81)
at com.facebook.imagepipeline.platform.PlatformDecoderFactory.buildPlatformDecoder(PlatformDecoderFactory.java:40)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformDecoder(ImagePipelineFactory.java:373)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformBitmapFactory(ImagePipelineFactory.java:365)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getAnimatedFactory(ImagePipelineFactory.java:178)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getImageDecoder(ImagePipelineFactory.java:249)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerFactory(ImagePipelineFactory.java:391)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerSequenceFactory(ImagePipelineFactory.java:427)
at com.facebook.imagepipeline.core.ImagePipelineFactory.createImagePipeline(ImagePipelineFactory.java:345)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getImagePipeline(ImagePipelineFactory.java:338)
at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.
main (runnable):tid=1 systid=24588
at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.