question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] some images are not loaded (using glide plugin)

See original GitHub issue

New 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: 2021-07-20-02-38

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: 2021-05-04-00-09

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
penfeizhoucommented, Oct 23, 2021

yes

OK, I missed the second picture before.This will be continue on.

1reaction
penfeizhoucommented, Oct 19, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >
Glide v4 : Download & Setup - GitHub Pages
Fast and efficient image loading for Android.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found