bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.67k stars 6.12k forks source link

Crash in version 4.8.0 #5419

Open jhouska opened 5 months ago

jhouska commented 5 months ago

I use the Bumptech Glide library to display an animated gif.

After upgrading to version 4.8.0, some users have started experiencing the crash:

java.lang.NullPointerException: null cannot be cast to non-null type T of androidx.core.util.Pools.SimplePool at androidx.core.util.Pools$SimplePool.acquire(Pools.kt:89) at com.bumptech.glide.util.pool.FactoryPools$FactoryPool.acquire(FactoryPools.java:157) at com.bumptech.glide.load.engine.Engine$DecodeJobFactory.build(Engine.java:428) at com.bumptech.glide.load.engine.Engine.load(Engine.java:210) at com.bumptech.glide.request.SingleRequest.onSizeReady(SingleRequest.java:432) at com.bumptech.glide.request.SingleRequest.begin(SingleRequest.java:255) at com.bumptech.glide.manager.RequestTracker.runRequest(RequestTracker.java:44) at com.bumptech.glide.RequestManager.track(RequestManager.java:614) at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:646) at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:611) at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:604) at com.bumptech.glide.load.resource.gif.GifFrameLoader.loadNextFrame(GifFrameLoader.java:226) at com.bumptech.glide.load.resource.gif.GifFrameLoader.onFrameReady(GifFrameLoader.java:284) at com.bumptech.glide.load.resource.gif.GifFrameLoader$FrameLoaderCallback.handleMessage(GifFrameLoader.java:298) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7959) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1001)