[BUG] some images are not loaded (using glide plugin)
See original GitHub issueNew Issue Checklist
- I have searched for a similar issue in the project and found none
Issue Info
Info | Value | |
---|---|---|
Device Info | Samsung A10 | |
System Version | e.g. 10.0 | |
APNG4Android Library Version | e.g. 2.14.0 | |
Repro rate | all the time (100%) | |
Repro with our demo project | the demo doesn’t seems to work well in general, the glide section shows nothing, (watching the logcat, issues with SSL loading some images remotely it seems, would also be nice if you add an option to attach images so people can test with certain images | |
Demo project link | this is happening to https://github.com/deltachat/deltachat-android app, if you try to attach the images I attach in this issue, with most images it doesn’t happens, it seems related to image resolution somehow: https://github.com/deltachat/deltachat-android/issues/1915 |
Issue Description and Steps
when I try to show this image:
I get this error:
10-16 18:00:25.150 26761 30234 W System.err: java.lang.IllegalArgumentException: Bad position 786474/786432
10-16 18:00:25.152 26761 30234 W System.err: at java.nio.Buffer.position(Buffer.java:259)
10-16 18:00:25.154 26761 30234 W System.err: at java.nio.ByteBuffer.position(ByteBuffer.java:812)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.io.ByteBufferReader.skip(ByteBufferReader.java:24)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.io.FilterReader.skip(FilterReader.java:20)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.gif.decode.ImageDescriptor.receive(ImageDescriptor.java:145)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.gif.decode.GifParser.parse(GifParser.java:118)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.gif.decode.GifDecoder.read(GifDecoder.java:73)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.gif.decode.GifDecoder.read(GifDecoder.java:26)
10-16 18:00:25.155 26761 30234 W System.err: at com.github.penfeizhou.animation.decode.FrameSeqDecoder$5.run(FrameSeqDecoder.java:226)
10-16 18:00:25.155 26761 30234 W System.err: at android.os.Handler.handleCallback(Handler.java:883)
10-16 18:00:25.155 26761 30234 W System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
10-16 18:00:25.155 26761 30234 W System.err: at android.os.Looper.loop(Looper.java:237)
10-16 18:00:25.155 26761 30234 W System.err: at android.os.HandlerThread.run(HandlerThread.java:67)
This image is also not loaded (99% of the time), but I don’t see any errors in logcat:
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Glide cannot load image - android - Stack Overflow
Try add android:usesCleartextTraffic="true" in Manifest in application. It will solve some issues with picture loading.
Read more >Displaying Images with the Glide Library - CodePath Cliffnotes
This is quite common and means that you are loading one or more large images that have not been properly resized. First, you...
Read more >Image is not getting loaded through glide on first run #1026
Scenario 1: I have recycler view where I need say profile pic First time entering screen the image does not load.
Read more >Load image and GIF using Glide - Medium
apply plugin: 'com.android.application' · // Top-level build file where you can add configuration options common to all sub-projects/modules.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, I missed the second picture before.This will be continue on.
This gif image’s format has some problem at the end. In chrome, this gif play once. in safari, this can play normaly. I guess it is because of some compat operation. I’ll do the same at my library, compating this situation. Thank you for the feedback.