Open qianshui423 opened 2 years ago
I find RecyclableBufferedInputStream's skip() method has a bug while parameter byteCount > buffer's remain count. follow:
RecyclableBufferedInputStream class's 391 line, comment content: '// Couldn't get all the bytes, skip what we read.'
I'd welcome a fix, or a sample project/unit test where I can reproduce this. It seems like the error must be deeper in in the stream, fillBuff is failing to read the required data?
I got same issue. When change 'DiskCacheStrategy.RESOURCE' to 'DiskCacheStrategy.ALL' thIs issue not occur but it will make some side effect for my application. Please help to check this.
Glide Version:4.11.0
Integration libraries:okhttp 4.8.0、okio 2.7.0
Device/Android Version:Xiaomi 10 Pro/Android 11
Issue details / Repro steps / Use case background: It load image failed when I use 'DiskCacheStrategy.RESOURCE' mode.
Glide load line /
GlideModule
(if any) / list Adapter code (if any):Layout XML:
Stack trace / LogCat: