felipecsl/GifImageView

divide by zero Problem

Closed this issue · 6 comments

I get this error when using GifImageView with GridView using custom ImageAdapter extends BaseAdapter

12-02 16:06:56.619 15491-15601/? E/AndroidRuntime: FATAL EXCEPTION: Thread-3008
Process: vn.messengerkvtm.gs, PID: 15491
java.lang.ArithmeticException: divide by zero
at com.felipecsl.gifimageview.library.GifDecoder.advance(GifDecoder.java:229)
at com.felipecsl.gifimageview.library.GifImageView.run(GifImageView.java:157)
at java.lang.Thread.run(Thread.java:841)

ImageAdapter.txt

can you also please attach the GIF image that you're using?

received_10208002856299538

Here is one of my images. I created it by png images using Easy Gif Animator.

shtil commented

Hmm.. I have this exception too...

This is the Glide commit that fixed the issue
bumptech/glide@5ce0c11

Happens to me too, irregularly.

Fixed by #36.