<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.util.NoSuchElementException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:350)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:376)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:374)
at com.bumptech.glide.util.LruCache.trimToSize(LruCache.java:157)
at com.bumptech.glide.util.LruCache.clearMemory(LruCache.java:146)
at com.bumptech.glide.Glide.clearMemory(Glide.java:370)
at com.bumptech.glide.RequestManager.onLowMemory(RequestManager.java:95)
at com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory(SupportRequestManagerFragment.java:156)"><pre class="notranslate"><code class="notranslate">java.util.NoSuchElementException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:350)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:376)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:374)
at com.bumptech.glide.util.LruCache.trimToSize(LruCache.java:157)
at com.bumptech.glide.util.LruCache.clearMemory(LruCache.java:146)
at com.bumptech.glide.Glide.clearMemory(Glide.java:370)
at com.bumptech.glide.RequestManager.onLowMemory(RequestManager.java:95)
at com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory(SupportRequestManagerFragment.java:156)
</code></pre></div>
<p dir="auto"><strong>Issue occurs in Glide version 3.6.1</strong></p>
<p dir="auto">Our crash monitoring facility had identified the above exception.  It has been reported using Glide 3.5.2 and 3.5.0.  It usually occurs in Android 4 devices, though we have reports up to 5.1.  We're not able to reproduce it in our testing.  While it's not a frequent report, we have seen 300+ reports in the last 30 days.</p>
<p dir="auto">It looks like it may be the same or related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48779317" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/266" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/266/hovercard" href="https://github.com/bumptech/glide/issues/266">#266</a>. Here's the stack trace in our case:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.util.LinkedHashMap$LinkedHashIterator.nextEntry (LinkedHashMap.java:350)
java.util.LinkedHashMap$EntryIterator.next (LinkedHashMap.java:374)
com.bumptech.glide.util.LruCache.trimToSize (LruCache.java:157)
com.bumptech.glide.util.LruCache.clearMemory (LruCache.java:146)
com.bumptech.glide.Glide.clearMemory (Glide.java:372)
com.bumptech.glide.RequestManager.onLowMemory (RequestManager.java:92)
com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory (SupportRequestManagerFragment.java:75)
android.support.v4.app.Fragment.performLowMemory (Fragment.java:1851)
dalvik.system.NativeStart.main (NativeStart.java)"><pre class="notranslate"><span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LinkedHashMap$LinkedHashIterator</span>.<span class="pl-en">nextEntry</span> (<span class="pl-smi">LinkedHashMap</span>.<span class="pl-smi">java</span>:<span class="pl-c1">350</span>)
<span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LinkedHashMap$EntryIterator</span>.<span class="pl-en">next</span> (<span class="pl-smi">LinkedHashMap</span>.<span class="pl-smi">java</span>:<span class="pl-c1">374</span>)
<span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LruCache</span>.<span class="pl-en">trimToSize</span> (<span class="pl-smi">LruCache</span>.<span class="pl-smi">java</span>:<span class="pl-c1">157</span>)
<span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LruCache</span>.<span class="pl-en">clearMemory</span> (<span class="pl-smi">LruCache</span>.<span class="pl-smi">java</span>:<span class="pl-c1">146</span>)
<span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">Glide</span>.<span class="pl-en">clearMemory</span> (<span class="pl-smi">Glide</span>.<span class="pl-smi">java</span>:<span class="pl-c1">372</span>)
<span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">RequestManager</span>.<span class="pl-en">onLowMemory</span> (<span class="pl-smi">RequestManager</span>.<span class="pl-smi">java</span>:<span class="pl-c1">92</span>)
<span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">manager</span>.<span class="pl-s1">SupportRequestManagerFragment</span>.<span class="pl-en">onLowMemory</span> (<span class="pl-smi">SupportRequestManagerFragment</span>.<span class="pl-smi">java</span>:<span class="pl-c1">75</span>)
<span class="pl-s1">android</span>.<span class="pl-s1">support</span>.<span class="pl-s1">v4</span>.<span class="pl-s1">app</span>.<span class="pl-s1">Fragment</span>.<span class="pl-en">performLowMemory</span> (<span class="pl-smi">Fragment</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1851</span>)
<span class="pl-s1">dalvik</span>.<span class="pl-s1">system</span>.<span class="pl-s1">NativeStart</span>.<span class="pl-en">main</span> (<span class="pl-smi">NativeStart</span>.<span class="pl-s1">java</span>)</pre></div>