<p dir="auto"><strong>Glide Version</strong>: 4.0.0-RC1<br>
<strong>Integration libraries</strong>: okhttp3-4.0.0-RC1<br>
<strong>Device/Android Version</strong>: Nexus 5X 7.1.2</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p>
<p dir="auto">Loading an Uri pointing to a resource drawable "android.resource://package/drawable/ic_facebook" fails if the drawable is a Vector. Works fine otherwise, so that is definitely the problem.</p>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="07-13 13:35:47.132 23478-23478/package W/Glide: Load failed for android.resource://package/drawable/ic_facebook with size [189x189]
                                                               class com.bumptech.glide.load.engine.GlideException: Failed to load resource
                                                                 Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{AssetInputStream-&gt;Bitmap-&gt;Bitmap}, LOCAL
                                                                   Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{AssetInputStream-&gt;Bitmap-&gt;Bitmap}
                                                                 Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.os.ParcelFileDescriptor, LOCAL
                                                                   Cause (1 of 1): class java.io.FileNotFoundException: Resource does not exist: android.resource://package/drawable/ic_facebook
07-13 13:35:47.132 23478-23478/package E/Glide: class com.bumptech.glide.load.engine.GlideException: Failed to load resource
07-13 13:35:47.134 23478-23478/package I/Glide: Root cause (1 of 1)
                                                               java.io.FileNotFoundException: Resource does not exist: android.resource://package/drawable/ic_facebook
                                                                   at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:976)
                                                                   at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:907)
                                                                   at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:21)
                                                                   at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:13)
                                                                   at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:40)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:282)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:398)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:359)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.onDataReady(SourceGenerator.java:111)
                                                                   at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:48)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:282)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:252)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:222)
                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                                   at java.lang.Thread.run(Thread.java:761)
                                                                   at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:347)
"><pre class="notranslate"><code class="notranslate">07-13 13:35:47.132 23478-23478/package W/Glide: Load failed for android.resource://package/drawable/ic_facebook with size [189x189]
                                                               class com.bumptech.glide.load.engine.GlideException: Failed to load resource
                                                                 Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{AssetInputStream-&gt;Bitmap-&gt;Bitmap}, LOCAL
                                                                   Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{AssetInputStream-&gt;Bitmap-&gt;Bitmap}
                                                                 Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.os.ParcelFileDescriptor, LOCAL
                                                                   Cause (1 of 1): class java.io.FileNotFoundException: Resource does not exist: android.resource://package/drawable/ic_facebook
07-13 13:35:47.132 23478-23478/package E/Glide: class com.bumptech.glide.load.engine.GlideException: Failed to load resource
07-13 13:35:47.134 23478-23478/package I/Glide: Root cause (1 of 1)
                                                               java.io.FileNotFoundException: Resource does not exist: android.resource://package/drawable/ic_facebook
                                                                   at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:976)
                                                                   at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:907)
                                                                   at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:21)
                                                                   at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:13)
                                                                   at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:40)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:282)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:398)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:359)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.onDataReady(SourceGenerator.java:111)
                                                                   at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:48)
                                                                   at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:282)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:252)
                                                                   at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:222)
                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                                   at java.lang.Thread.run(Thread.java:761)
                                                                   at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:347)

</code></pre></div>
<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>