Ausstehende Ausnahme java.lang.OutOfMemoryError: Fehler beim Zuweisen einer 1125012-Byte-Zuweisung mit 784248 freien Bytes und 765 KB bis OOM
com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream, android.graphics.BitmapFactory$Options, com.bumptech .glide.load.engine.bitmap_recycle.BitmapPool, int, int, int, com.bumptech.glide.load.DecodeFormat) (Downsampler.java:217)
bei android.graphics.Bitmap com.bumptech.glide.load.resource .bitmap.Downsampler.decode(java.io.InputStream, com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool, int, int, com.bumptech.glide.load.DecodeFormat) (Downsampler.java:151)
at com.bumptech.glide.load.engine.Resource com.bumptech.glide.load.resource.bitmap.StreamBitmapDecoder.decode(java.io.InputStream, int, int) (StreamBitmapDecoder.java:50)
bei com.bumptech. glide.load.engine.Resource com.bumptech.glide.load.resource.bitmap.StreamBitmapDecoder.decode(java.lang.Object, int, int) (StreamBitmapDecoder.java:19)
bei com.bumptech.glide.load. engine.Resource com.bumptech.glide.load.resource.bitmap.ImageVideoBitmapDecoder.decode(com.bumptech.glide.load.model.ImageVideoWrapper, int, int) (ImageVideoBitmapDecoder.java:39)
谁有解决方法,发给我谢谢
看这个log并不能发现什么,图片加载出现oom是非常高概率的。
请仔细判断
1)是否连续的加载了大图而没有及时回收?
2)是否哪里内存泄漏了?
可以尝试用LeakCanary检查下内存泄漏,或者用工具持续检查内存占用状况