glide icon indicating copy to clipboard operation
glide copied to clipboard

The app crashes due to a ​NoSuchElementException.

Open slowhandwc opened this issue 6 months ago • 0 comments

Glide Version:4.12.0

Integration libraries:okhttp3-integration:4.12.0

Device/Android Version: Xiaomi 2410DPN6CC/Android 13

Issue details / Repro steps / Use case background: The app crashes when handling the ​OnTrimMemory​ callback.

Stack trace / LogCat:

`java.util.NoSuchElementException: java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:762) java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:792) java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:790) com.bumptech.glide.util.LruCache.void trimToSize(long)(LruCache.java:184) com.bumptech.glide.load.engine.cache.LruResourceCache.void trimMemory(int)(LruResourceCache.java:56) com.bumptech.glide.Glide.void trimMemory(int)(Glide.java:717) com.bumptech.glide.Glide.void onTrimMemory(int)(Glide.java:925) android.content.ComponentCallbacksController.lambda$dispatchTrimMemory$1(ComponentCallbacksController.java:109) android.content.ComponentCallbacksController$$ExternalSyntheticLambda1.accept(Unknown Source:4) android.content.ComponentCallbacksController.forAllComponentCallbacks(ComponentCallbacksController.java:124) android.content.ComponentCallbacksController.dispatchTrimMemory(ComponentCallbacksController.java:107) android.app.Application.onTrimMemory(Application.java:289)

slowhandwc avatar May 12 '25 09:05 slowhandwc