<p dir="auto">We have a placeholder shape drawable (or sometimes shown directly as <code class="notranslate">.load(R.drawable.abc)</code>) which fails to display. The onException listener is called, but e is null.</p>
<p dir="auto">The logs contain only:</p>
<pre class="notranslate">com.example.app D/skia﹕ --- SkImageDecoder::Factory returned null</pre>
<p dir="auto">Glide: 3.5.2<br>
Tested on Genymotion v4.4.2</p>
<p dir="auto">The drawable:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
       android:shape=&quot;rectangle&quot;&gt;
    &lt;solid android:color=&quot;#ffabcdef&quot;/&gt;
&lt;/shape&gt;"><pre class="notranslate">&lt;<span class="pl-ent">shape</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
       <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">shape</span>=<span class="pl-s"><span class="pl-pds">"</span>rectangle<span class="pl-pds">"</span></span>&gt;
    &lt;<span class="pl-ent">solid</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">color</span>=<span class="pl-s"><span class="pl-pds">"</span>#ffabcdef<span class="pl-pds">"</span></span>/&gt;
&lt;/<span class="pl-ent">shape</span>&gt;</pre></div>
<p dir="auto">Hi,</p>
<p dir="auto">I need to cache all portrait covers of all movies of a pretty big VOD database to make them available in global Android TV search. Indeed android.app.SearchManager.SUGGEST_COLUMN_RESULT_CARD_IMAGE only accepts local images.<br>
So I tried to use asynchronous downloadOnly() method to cache every movie cover in a SyncAdapter runnning in its dedicated thread.<br>
Unfortunately asynchronous downloadOnly() method requires to be called from main thread because it calls internally GenericRequestBuilder.into() method which calls Util.assertMainThread().<br>
So I tried to call asynchronous downloadOnly() method in main thread but it leads to UI hangs. This limitation appears to me as an undesirable side effect of GenericRequestBuilder.into() call which usually takes a 'view' target.<br>
But I am not sure of my conclusion, so I prefer to ask instead of forking your fucking good piece of software.</p>
<p dir="auto">Kind regards,</p>
<p dir="auto">Laurent.</p>