<p dir="auto">Stack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal Exception: java.lang.IllegalStateException: Already released
       at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
       at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518)
       at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217)
       at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5584)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
       at dalvik.system.NativeStart.main(NativeStart.java)"><pre class="notranslate"><code class="notranslate">Fatal Exception: java.lang.IllegalStateException: Already released
       at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
       at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518)
       at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217)
       at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5584)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
       at dalvik.system.NativeStart.main(NativeStart.java)
</code></pre></div>
<p dir="auto"><a href="http://crashes.to/s/77a94a0d3c4" rel="nofollow">Fabric</a></p>
<p dir="auto"><strong>Glide Version</strong>:<br>
4.4.0</p>

<p dir="auto"><strong>Integration libraries</strong>:<br>
"com.squareup.okhttp3:okhttp:3.6.0",<br>
"com.squareup.okhttp3:logging-interceptor:3.6.0",<br>
"com.github.bumptech.glide:glide:4.4.0",<br>
'com.github.bumptech.glide:compiler:4.4.0',<br>
"com.github.bumptech.glide:okhttp3-integration:4.4.0",</p>

<p dir="auto"><strong>Device/Android Version</strong>:<br>
Huawei P6-T00 4.4.2</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
I come across a crash when i quickly drag RecyclerView. I want to load original picture when load failed the thumbnail. if i delete "error(Glide.with(applicationContext).load(url))", it will be good running.</p>

<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="            Glide.with(applicationContext)
                    .load(Utils.getImageCompress(url))
                    .error(Glide.with(applicationContext).load(url))
                    .into(mImageView);"><pre class="notranslate">            <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">applicationContext</span>)
                    .<span class="pl-en">load</span>(<span class="pl-smi">Utils</span>.<span class="pl-en">getImageCompress</span>(<span class="pl-s1">url</span>))
                    .<span class="pl-en">error</span>(<span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">applicationContext</span>).<span class="pl-en">load</span>(<span class="pl-s1">url</span>))
                    .<span class="pl-en">into</span>(<span class="pl-s1">mImageView</span>);</pre></div>

<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;com.xxxx.views.AsyncRoundedImageView
            android:id=&quot;@id/imageview1&quot;
            android:layout_width=&quot;@dimen/_190px2dp&quot;
            android:layout_height=&quot;@dimen/_190px2dp&quot;
            android:layout_below=&quot;@id/imageview6&quot;
            android:layout_toRightOf=&quot;@id/imageview6&quot;
            android:src=&quot;@mipmap/ic_launcher&quot;
            app:riv_corner_radius=&quot;@dimen/_6px2dp&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">com</span>.xxxx.views.AsyncRoundedImageView
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview1<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_190px2dp<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_190px2dp<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_below</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview6<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_toRightOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview6<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@mipmap/ic_launcher<span class="pl-pds">"</span></span>
            <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">riv_corner_radius</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_6px2dp<span class="pl-pds">"</span></span> /&gt;</pre></div>

<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Already released
    at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
    at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:595)
    at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:591)
    at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:292)
    at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:325)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5253)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:939)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
    at dalvik.system.NativeStart.main(Native Method)"><pre class="notranslate"><span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">IllegalStateException</span>: <span class="pl-en">Already</span> <span class="pl-en">released</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">pool</span><span class="pl-kos">.</span><span class="pl-en">StateVerifier</span>$DefaultStateVerifier<span class="pl-kos">.</span><span class="pl-en">throwIfRecycled</span><span class="pl-kos">(</span><span class="pl-v">StateVerifier</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:44</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">.</span><span class="pl-en">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:595</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">.</span><span class="pl-en">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:591</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">handleExceptionOnMainThread</span><span class="pl-kos">(</span><span class="pl-v">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:292</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineJob</span>$MainThreadCallback<span class="pl-kos">.</span><span class="pl-en">handleMessage</span><span class="pl-kos">(</span><span class="pl-v">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:325</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Handler</span><span class="pl-kos">.</span><span class="pl-en">dispatchMessage</span><span class="pl-kos">(</span><span class="pl-v">Handler</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:98</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Looper</span><span class="pl-kos">.</span><span class="pl-en">loop</span><span class="pl-kos">(</span><span class="pl-v">Looper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:136</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:5253</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invokeNative</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invoke</span><span class="pl-kos">(</span><span class="pl-v">Method</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:515</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span>$MethodAndArgsCaller<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:939</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:755</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">de</span><span class="pl-kos">.</span><span class="pl-en">robv</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">xposed</span><span class="pl-kos">.</span><span class="pl-en">XposedBridge</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">XposedBridge</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:132</span><span class="pl-kos">)</span>
    <span class="pl-en">at</span> <span class="pl-en">dalvik</span><span class="pl-kos">.</span><span class="pl-en">system</span><span class="pl-kos">.</span><span class="pl-en">NativeStart</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span></pre></div>