You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using glide 3.5.1, crashing a lot when onTrimMemory is triggered.
E/AndroidRuntime( 8832): java.lang.NullPointerException
E/AndroidRuntime( 8832): at com.bumptech.glide.util.Util.getBitmapByteSize(Util.java:79)
E/AndroidRuntime( 8832): at com.bumptech.glide.load.engine.bitmap_recycle.SizeStrategy.getSize(SizeStrategy.java:86)
E/AndroidRuntime( 8832): at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.trimToSize(LruBitmapPool.java:171)
E/AndroidRuntime( 8832): at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.clearMemory(LruBitmapPool.java:154)
E/AndroidRuntime( 8832): at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.trimMemory(LruBitmapPool.java:161)
E/AndroidRuntime( 8832): at com.bumptech.glide.Glide.trimMemory(Glide.java:381)
The text was updated successfully, but these errors were encountered:
Try using phone, emulator with very low memory, or heavy loaded, but I guess it would not be reproducible 100%. Then onTrimMemory should be triggered. I used Android 4.4.4. And yes, Glide 3.5.1
Using glide 3.5.1, crashing a lot when
onTrimMemory
is triggered.The text was updated successfully, but these errors were encountered: