<p dir="auto">I was trying to load a jpeg image which had frames like gif.<br>
The library failed to decode the below images<br>
<a href="http://img0.ropose.com/story/BcjX_1466616614110_d6cbd61b-e288-40ae-90d1-e5742af50c27.jpeg" rel="nofollow">http://img0.ropose.com/story/BcjX_1466616614110_d6cbd61b-e288-40ae-90d1-e5742af50c27.jpeg</a><br>
<a href="http://img0.ropose.com/story/wPqT_1466617581389_b8ce67d3-38dd-4795-96bf-df955fdb2969.jpeg" rel="nofollow">http://img0.ropose.com/story/wPqT_1466617581389_b8ce67d3-38dd-4795-96bf-df955fdb2969.jpeg</a></p>
<p dir="auto"><strong>Glide Version</strong>: Glide 3.7.0</p>
<p dir="auto"><strong>Integration libraries</strong>: Using okhttp 3.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 = {StackTraceElement@6571} &quot;java.nio.Buffer.positionImpl(Buffer.java:351)&quot;
1 = {StackTraceElement@6572} &quot;java.nio.Buffer.position(Buffer.java:345)&quot;
2 = {StackTraceElement@6573} &quot;com.bumptech.glide.gifdecoder.GifHeaderParser.skip(GifHeaderParser.java:319)&quot;
3 = {StackTraceElement@6574} &quot;com.bumptech.glide.gifdecoder.GifHeaderParser.skipImageData(GifHeaderParser.java:309)&quot;
4 = {StackTraceElement@6575} &quot;com.bumptech.glide.gifdecoder.GifHeaderParser.readBitmap(GifHeaderParser.java:202)&quot;
5 = {StackTraceElement@6576} &quot;com.bumptech.glide.gifdecoder.GifHeaderParser.readContents(GifHeaderParser.java:93)&quot;
6 = {StackTraceElement@6577} &quot;com.bumptech.glide.gifdecoder.GifHeaderParser.parseHeader(GifHeaderParser.java:67)&quot;
7 = {StackTraceElement@6578} &quot;com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:69)&quot;
8 = {StackTraceElement@6579} &quot;com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:61)&quot;
9 = {StackTraceElement@6580} &quot;com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:26)&quot;
10 = {StackTraceElement@6581} &quot;com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeGifWrapper(GifBitmapWrapperResourceDecoder.java:101)&quot;
11 = {StackTraceElement@6582} &quot;com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeStream(GifBitmapWrapperResourceDecoder.java:87)&quot;
12 = {StackTraceElement@6583} &quot;com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:71)&quot;
13 = {StackTraceElement@6584} &quot;com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:61)&quot;
14 = {StackTraceElement@6585} &quot;com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:22)&quot;
15 = {StackTraceElement@6586} &quot;com.bumptech.glide.load.engine.DecodeJob.decodeFromSourceData(DecodeJob.java:190)&quot;
16 = {StackTraceElement@6587} &quot;com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:177)&quot;
17 = {StackTraceElement@6588} &quot;com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128)&quot;
18 = {StackTraceElement@6589} &quot;com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122)&quot;
19 = {StackTraceElement@6590} &quot;com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101)&quot;
20 = {StackTraceElement@6591} &quot;com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58)&quot;
21 = {StackTraceElement@6592} &quot;java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)&quot;
22 = {StackTraceElement@6593} &quot;java.util.concurrent.FutureTask.run(FutureTask.java:237)&quot;
23 = {StackTraceElement@6594} &quot;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)&quot;
24 = {StackTraceElement@6595} &quot;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)&quot;
25 = {StackTraceElement@6596} &quot;java.lang.Thread.run(Thread.java:818)&quot;
26 = {StackTraceElement@6597} &quot;com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118)&quot;"><pre class="notranslate"><code class="notranslate">0 = {StackTraceElement@6571} "java.nio.Buffer.positionImpl(Buffer.java:351)"
1 = {StackTraceElement@6572} "java.nio.Buffer.position(Buffer.java:345)"
2 = {StackTraceElement@6573} "com.bumptech.glide.gifdecoder.GifHeaderParser.skip(GifHeaderParser.java:319)"
3 = {StackTraceElement@6574} "com.bumptech.glide.gifdecoder.GifHeaderParser.skipImageData(GifHeaderParser.java:309)"
4 = {StackTraceElement@6575} "com.bumptech.glide.gifdecoder.GifHeaderParser.readBitmap(GifHeaderParser.java:202)"
5 = {StackTraceElement@6576} "com.bumptech.glide.gifdecoder.GifHeaderParser.readContents(GifHeaderParser.java:93)"
6 = {StackTraceElement@6577} "com.bumptech.glide.gifdecoder.GifHeaderParser.parseHeader(GifHeaderParser.java:67)"
7 = {StackTraceElement@6578} "com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:69)"
8 = {StackTraceElement@6579} "com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:61)"
9 = {StackTraceElement@6580} "com.bumptech.glide.load.resource.gif.GifResourceDecoder.decode(GifResourceDecoder.java:26)"
10 = {StackTraceElement@6581} "com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeGifWrapper(GifBitmapWrapperResourceDecoder.java:101)"
11 = {StackTraceElement@6582} "com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeStream(GifBitmapWrapperResourceDecoder.java:87)"
12 = {StackTraceElement@6583} "com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:71)"
13 = {StackTraceElement@6584} "com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:61)"
14 = {StackTraceElement@6585} "com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:22)"
15 = {StackTraceElement@6586} "com.bumptech.glide.load.engine.DecodeJob.decodeFromSourceData(DecodeJob.java:190)"
16 = {StackTraceElement@6587} "com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:177)"
17 = {StackTraceElement@6588} "com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128)"
18 = {StackTraceElement@6589} "com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122)"
19 = {StackTraceElement@6590} "com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101)"
20 = {StackTraceElement@6591} "com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58)"
21 = {StackTraceElement@6592} "java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)"
22 = {StackTraceElement@6593} "java.util.concurrent.FutureTask.run(FutureTask.java:237)"
23 = {StackTraceElement@6594} "java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)"
24 = {StackTraceElement@6595} "java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)"
25 = {StackTraceElement@6596} "java.lang.Thread.run(Thread.java:818)"
26 = {StackTraceElement@6597} "com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118)"
</code></pre></div>
<p dir="auto">this is image address:<a href="http://img1.famulei.com/z/0/p/164/2113351333687.gif" rel="nofollow">http://img1.famulei.com/z/0/p/164/2113351333687.gif</a>.</p>
<p dir="auto">this image cause this exception.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13093238/14733683/6af02e80-0897-11e6-943f-494df0d81644.png"><img src="https://cloud.githubusercontent.com/assets/13093238/14733683/6af02e80-0897-11e6-943f-494df0d81644.png" alt="8lq le f 07 170miybuh" style="max-width: 100%;"></a></p>
<p dir="auto">the image showed up when we deleted last frame of this gif image.</p>