<p dir="auto"><strong>Glide Version</strong>: 3.8.0-SNAPSHOT</p>

<p dir="auto"><strong>Device/Android Version</strong>: Nexus 5, 5.0.1</p>
<p dir="auto">I'm using a <code class="notranslate">PaletteBitmapTranscoder</code> to generate a palette, as demonstrated in the <a href="https://github.com/bumptech/glide/wiki/Custom-targets#palette-example">Custom targets</a> section of the Glide wiki.</p>
<p dir="auto">However, when using <code class="notranslate">.thumbnail()</code> in cases where the thumbnail request finishes after the full request, it ends up using the palette that was generated for the thumbnail instead of the full image.</p>
<p dir="auto">Since <code class="notranslate">Palette</code> generates very different color swatches as an image is resized, this can affect the results.</p>
<p dir="auto">In my test, the thumbnail palette always gets used the first time the image is loaded, but the full image's palette is used for all subsequent loads. (I think that if the full request is in the cache, the thumbnail does not get generated?)</p>
<p dir="auto">Is there a way to prevent transcoding of the thumbnail when using a transcoder for the full image request?</p>
<p dir="auto">I've tried changing the order of where <code class="notranslate">.thumbnail()</code> is called when building the request, but didn't have any luck with that approach. Most of those attempts wouldn't compile because of type incompatibility, e.g. not having a compatible <code class="notranslate">TranscodeType</code> with the full request.</p>
<p dir="auto">I also tried using an explicit thumbnail request with its own settings but that didn't work; the full request's resource transcoder still gets called for the thumbnail. Giving the thumbnail its own <code class="notranslate">PalletteBitmapNullTranscoder</code> that doesn't generate a palette didn't work either; it just resulted in additional <code class="notranslate">transcode()</code> calls (and additional <code class="notranslate">DecodeJobs</code> in the log output). The additional <code class="notranslate">transcode()</code> calls did what I wanted (namely, not generating a palette) but it didn't replace the original thumbnail <code class="notranslate">transcode()</code> call that I was trying to override.</p>
<p dir="auto">At this point I've disabled thumbnail generation when using a PaletteBitmapTranscoder, but I'm still new to Glide so I wonder if there might be something obvious that I might be missing.</p>
<p dir="auto">For instance, is there any way to create a thumbnail request that uses a different <code class="notranslate">TranscodeType</code>, or a different <code class="notranslate">ModelType</code> for that matter?</p>
<p dir="auto">Or is there some way within a <code class="notranslate">ResourceTranscoder</code> to know whether <code class="notranslate">transcode()</code> is being called for the full request or the thumbnail request?</p>
<p dir="auto"><strong>Glide Version</strong>: glide:4.3.1</p>

<p dir="auto"><strong>Integration libraries</strong>: okhttp3-integration:4.3.1</p>

<p dir="auto"><strong>Device/Android Version</strong>: Various, reported from field. Stacktrace comes from Samsung Galaxy S5 (klteatt) Android 6.0</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
The exception text is misleading as the problem is not occuring in my AppGlideModule implementation.</p>
<p dir="auto">This is difficult to reproduce as it appears to be a timing issue. I'm getting several reports of crashes and the location varies. Possibly related to Kotlin coroutines, but this did not occur on Glide pre 4.0. The stacktrace indicates this is not inside a Kotlin coroutine.</p>
<p dir="auto">I've tried adding a "dummy" Glide request of Uri.Empty at the beginning of onCreate() to init Glide, but this hasn't helped.</p>
<div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    // force glide initialization
    try {
      if (!glideInitialized.getAndSet(true)) {
        debug { LOG.log(LogLevel.ERROR, &quot;Initialize Glide&quot;) }
        Glide.with(this).load(Uri.EMPTY).submit(10, 10)
      }
    } catch (e: Exception) {
      debug { LOG.caught(LogLevel.ERROR, e) }
    }"><pre class="notranslate">    <span class="pl-c"><span class="pl-c">//</span> force glide initialization</span>
    <span class="pl-k">try</span> {
      <span class="pl-k">if</span> (<span class="pl-k">!</span>glideInitialized.getAndSet(<span class="pl-c1">true</span>)) {
        debug { <span class="pl-en">LOG</span>.log(<span class="pl-en">LogLevel</span>.<span class="pl-en">ERROR</span>, <span class="pl-s"><span class="pl-pds">"</span>Initialize Glide<span class="pl-pds">"</span></span>) }
        <span class="pl-en">Glide</span>.<span class="pl-c1">with</span>(<span class="pl-c1">this</span>).load(<span class="pl-en">Uri</span>.<span class="pl-en">EMPTY</span>).submit(<span class="pl-c1">10</span>, <span class="pl-c1">10</span>)
      }
    } <span class="pl-k">catch</span> (e<span class="pl-k">:</span> <span class="pl-en">Exception</span>) {
      debug { <span class="pl-en">LOG</span>.caught(<span class="pl-en">LogLevel</span>.<span class="pl-en">ERROR</span>, e) }
    }</pre></div>
<p dir="auto">Can I force Glide init in some other manner? While I appreciate lazy loading resources I may never use, my app will use Glide and my loaders when my first activity starts and I'm looking for a workaround. The code snippet is related to the included stack trace, however the problem occurs at many different Glide.with() invocations randomly. After a Glide.with() executes without error, the issue does not reoccur.</p>

<div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  override fun onBindViewHolder(holder: ViewHolder, position: Int) {
    val image = imageList[position]
    val uri = Uri.parse(image.text)
    val options = RequestOptions()
        .diskCacheStrategy(DiskCacheStrategy.DATA)
    if (LastFm.IMAGE_SIZE_MEGA == image.size) {
      options.override(OVERRIDE_SIZE, OVERRIDE_SIZE)
          .fitCenter()
    }

    Glide.with(activity)
        .asBitmap()
        .load(uri)
        .apply(options)
        .listener(object : RequestListener&lt;Bitmap&gt; {
          override fun onResourceReady(p0: Bitmap?, p1: Any?, p2: Target&lt;Bitmap&gt;?, p3: DataSource?, p4: Boolean): Boolean {
            holder.progressBar.visibility = View.GONE
            return false
          }

          override fun onLoadFailed(p0: GlideException?, p1: Any?, p2: Target&lt;Bitmap&gt;?, p3: Boolean): Boolean {
            holder.progressBar.visibility = View.GONE
            return false
          }
        })
        .into(holder.albumArtView)"><pre class="notranslate">  <span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">onBindViewHolder</span>(<span class="pl-smi">holder</span><span class="pl-k">:</span> <span class="pl-en">ViewHolder</span>, <span class="pl-smi">position</span><span class="pl-k">:</span> <span class="pl-c1">Int</span>) {
    <span class="pl-k">val</span> image <span class="pl-k">=</span> imageList[position]
    <span class="pl-k">val</span> uri <span class="pl-k">=</span> <span class="pl-en">Uri</span>.parse(image.text)
    <span class="pl-k">val</span> options <span class="pl-k">=</span> <span class="pl-en">RequestOptions</span>()
        .diskCacheStrategy(<span class="pl-en">DiskCacheStrategy</span>.<span class="pl-en">DATA</span>)
    <span class="pl-k">if</span> (<span class="pl-en">LastFm</span>.<span class="pl-en">IMAGE_SIZE_MEGA</span> <span class="pl-k">==</span> image.size) {
      options.<span class="pl-k">override</span>(<span class="pl-en">OVERRIDE_SIZE</span>, <span class="pl-en">OVERRIDE_SIZE</span>)
          .fitCenter()
    }

    <span class="pl-en">Glide</span>.<span class="pl-c1">with</span>(activity)
        .asBitmap()
        .load(uri)
        .<span class="pl-c1">apply</span>(options)
        .listener(<span class="pl-k">object</span> <span class="pl-k">:</span> <span class="pl-en">RequestListener</span>&lt;<span class="pl-en">Bitmap</span>&gt; {
          <span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">p0</span><span class="pl-k">:</span> <span class="pl-en">Bitmap</span><span class="pl-k">?</span>, <span class="pl-smi">p1</span><span class="pl-k">:</span> <span class="pl-c1">Any?</span>, <span class="pl-smi">p2</span><span class="pl-k">:</span> <span class="pl-en">Target</span>&lt;<span class="pl-en">Bitmap</span>&gt;<span class="pl-k">?</span>, <span class="pl-smi">p3</span><span class="pl-k">:</span> <span class="pl-en">DataSource</span><span class="pl-k">?</span>, <span class="pl-smi">p4</span><span class="pl-k">:</span> <span class="pl-c1">Boolean</span>): <span class="pl-c1">Boolean</span> {
            holder.progressBar.visibility <span class="pl-k">=</span> <span class="pl-en">View</span>.<span class="pl-en">GONE</span>
            <span class="pl-k">return</span> <span class="pl-c1">false</span>
          }

          <span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">onLoadFailed</span>(<span class="pl-smi">p0</span><span class="pl-k">:</span> <span class="pl-en">GlideException</span><span class="pl-k">?</span>, <span class="pl-smi">p1</span><span class="pl-k">:</span> <span class="pl-c1">Any?</span>, <span class="pl-smi">p2</span><span class="pl-k">:</span> <span class="pl-en">Target</span>&lt;<span class="pl-en">Bitmap</span>&gt;<span class="pl-k">?</span>, <span class="pl-smi">p3</span><span class="pl-k">:</span> <span class="pl-c1">Boolean</span>): <span class="pl-c1">Boolean</span> {
            holder.progressBar.visibility <span class="pl-k">=</span> <span class="pl-en">View</span>.<span class="pl-en">GONE</span>
            <span class="pl-k">return</span> <span class="pl-c1">false</span>
          }
        })
        .into(holder.albumArtView)</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;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;

&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
              xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
              xmlns:tools=&quot;http://schemas.android.com/tools&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:padding=&quot;8dp&quot;
    &gt;

    &lt;android.support.v7.widget.CardView
        android:id=&quot;@+id/album_art_card&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;
        android:background=&quot;?attr/ap_secondaryBackground&quot;
        &gt;

        &lt;RelativeLayout
            android:layout_width=&quot;match_parent&quot;
            android:layout_height=&quot;match_parent&quot;
            &gt;

            &lt;fr.castorflex.android.circularprogressbar.CircularProgressBar
                android:id=&quot;@+id/last_art_card_progress&quot;
                android:layout_width=&quot;40dp&quot;
                android:layout_height=&quot;40dp&quot;
                android:layout_centerInParent=&quot;true&quot;
                android:indeterminate=&quot;true&quot;
                app:cpb_color=&quot;?attr/ap_secondaryBackground&quot;
                app:cpb_colors=&quot;@array/gplus_colors&quot;
                app:cpb_rotation_speed=&quot;1.0&quot;
                app:cpb_sweep_speed=&quot;1.0&quot;
                app:cpb_stroke_width=&quot;4dp&quot;
                app:cpb_min_sweep_angle=&quot;10&quot;
                app:cpb_max_sweep_angle=&quot;300&quot;
                /&gt;
            
            &lt;ImageView
                android:id=&quot;@+id/album_art_image&quot;
                android:layout_width=&quot;156dp&quot;
                android:layout_height=&quot;156dp&quot;
                android:layout_alignParentTop=&quot;true&quot;
                android:layout_marginBottom=&quot;6dp&quot;
                android:layout_centerHorizontal=&quot;true&quot;
                tools:ignore=&quot;ContentDescription&quot;
                /&gt;

            &lt;TextView
                android:id=&quot;@+id/album_art_description&quot;
                android:layout_width=&quot;match_parent&quot;
                android:layout_height=&quot;wrap_content&quot;
                android:layout_below=&quot;@+id/album_art_image&quot;
                android:gravity=&quot;center_horizontal&quot;
                android:textSize=&quot;18sp&quot;
                /&gt;

        &lt;/RelativeLayout&gt;

    &lt;/android.support.v7.widget.CardView&gt;

&lt;/LinearLayout&gt;
"><pre class="notranslate">&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>utf-8<span class="pl-pds">"</span></span>?&gt;

&lt;<span class="pl-ent">LinearLayout</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">xmlns</span><span class="pl-e">:</span><span class="pl-e">app</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res-auto<span class="pl-pds">"</span></span>
              <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">tools</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/tools<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>match_parent<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>match_parent<span class="pl-pds">"</span></span>
              <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">padding</span>=<span class="pl-s"><span class="pl-pds">"</span>8dp<span class="pl-pds">"</span></span>
    &gt;

    &lt;<span class="pl-ent">android</span>.support.v7.widget.CardView
        <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/album_art_card<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>match_parent<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>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">background</span>=<span class="pl-s"><span class="pl-pds">"</span>?attr/ap_secondaryBackground<span class="pl-pds">"</span></span>
        &gt;

        &lt;<span class="pl-ent">RelativeLayout</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>match_parent<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>match_parent<span class="pl-pds">"</span></span>
            &gt;

            &lt;<span class="pl-ent">fr</span>.castorflex.android.circularprogressbar.CircularProgressBar
                <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/last_art_card_progress<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>40dp<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>40dp<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerInParent</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">indeterminate</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_color</span>=<span class="pl-s"><span class="pl-pds">"</span>?attr/ap_secondaryBackground<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_colors</span>=<span class="pl-s"><span class="pl-pds">"</span>@array/gplus_colors<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_rotation_speed</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_sweep_speed</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_stroke_width</span>=<span class="pl-s"><span class="pl-pds">"</span>4dp<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_min_sweep_angle</span>=<span class="pl-s"><span class="pl-pds">"</span>10<span class="pl-pds">"</span></span>
                <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">cpb_max_sweep_angle</span>=<span class="pl-s"><span class="pl-pds">"</span>300<span class="pl-pds">"</span></span>
                /&gt;
            
            &lt;<span class="pl-ent">ImageView</span>
                <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/album_art_image<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>156dp<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>156dp<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_alignParentTop</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_marginBottom</span>=<span class="pl-s"><span class="pl-pds">"</span>6dp<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerHorizontal</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
                <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">ignore</span>=<span class="pl-s"><span class="pl-pds">"</span>ContentDescription<span class="pl-pds">"</span></span>
                /&gt;

            &lt;<span class="pl-ent">TextView</span>
                <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/album_art_description<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>match_parent<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>wrap_content<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/album_art_image<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center_horizontal<span class="pl-pds">"</span></span>
                <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">textSize</span>=<span class="pl-s"><span class="pl-pds">"</span>18sp<span class="pl-pds">"</span></span>
                /&gt;

        &lt;/<span class="pl-ent">RelativeLayout</span>&gt;

    &lt;/<span class="pl-ent">android</span>.support.v7.widget.CardView&gt;

&lt;/<span class="pl-ent">LinearLayout</span>&gt;
</pre></div>

<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: 
   at com.bumptech.glide.Glide.checkAndInitializeGlide (Glide.java:172)
   at com.bumptech.glide.Glide.get (Glide.java:160)
   at com.bumptech.glide.Glide.getRetriever (Glide.java:583)
   at com.bumptech.glide.Glide.with (Glide.java:620)
   at com.ealva.alvaplayer.ui.image.LastFmImageAdapter.onBindViewHolder (LastFmImageAdapter.java:83)
   at com.ealva.alvaplayer.ui.image.LastFmImageAdapter.onBindViewHolder (LastFmImageAdapter.java:48)
   at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6508)
   at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6541)
   at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5484)
   at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:5750)
   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5589)
   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5585)
   at android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2231)
   at android.support.v7.widget.GridLayoutManager.layoutChunk (GridLayoutManager.java:556)
   at android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1518)
   at android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:610)
   at android.support.v7.widget.GridLayoutManager.onLayoutChildren (GridLayoutManager.java:170)
   at android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3719)
   at android.support.v7.widget.RecyclerView.dispatchLayout (RecyclerView.java:3436)
   at android.support.v7.widget.RecyclerView.onLayout (RecyclerView.java:3988)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1080)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.support.design.widget.CoordinatorLayout.layoutChild (CoordinatorLayout.java:1171)
   at android.support.design.widget.CoordinatorLayout.onLayoutChild (CoordinatorLayout.java:856)
   at android.support.design.widget.CoordinatorLayout.onLayout (CoordinatorLayout.java:875)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.support.v4.widget.DrawerLayout.onLayout (DrawerLayout.java:1172)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1742)
   at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1585)
   at android.widget.LinearLayout.onLayout (LinearLayout.java:1494)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1742)
   at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1585)
   at android.widget.LinearLayout.onLayout (LinearLayout.java:1494)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at com.android.internal.policy.PhoneWindow$DecorView.onLayout (PhoneWindow.java:3193)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:2717)
   at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2418)
   at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1488)
   at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7451)
   at android.view.Choreographer$CallbackRecord.run (Choreographer.java:920)
   at android.view.Choreographer.doCallbacks (Choreographer.java:695)
   at android.view.Choreographer.doFrame (Choreographer.java:631)
   at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:906)
   at android.os.Handler.handleCallback (Handler.java:739)
   at android.os.Handler.dispatchMessage (Handler.java:95)
   at android.os.Looper.loop (Looper.java:158)
   at android.app.ActivityThread.main (ActivityThread.java:7224)
   at java.lang.reflect.Method.invoke (Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: 
   at com.bumptech.glide.Glide.checkAndInitializeGlide (Glide.java:172)
   at com.bumptech.glide.Glide.get (Glide.java:160)
   at com.bumptech.glide.Glide.getRetriever (Glide.java:583)
   at com.bumptech.glide.Glide.with (Glide.java:620)
   at com.ealva.alvaplayer.ui.image.LastFmImageAdapter.onBindViewHolder (LastFmImageAdapter.java:83)
   at com.ealva.alvaplayer.ui.image.LastFmImageAdapter.onBindViewHolder (LastFmImageAdapter.java:48)
   at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6508)
   at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6541)
   at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5484)
   at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:5750)
   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5589)
   at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5585)
   at android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2231)
   at android.support.v7.widget.GridLayoutManager.layoutChunk (GridLayoutManager.java:556)
   at android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1518)
   at android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:610)
   at android.support.v7.widget.GridLayoutManager.onLayoutChildren (GridLayoutManager.java:170)
   at android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3719)
   at android.support.v7.widget.RecyclerView.dispatchLayout (RecyclerView.java:3436)
   at android.support.v7.widget.RecyclerView.onLayout (RecyclerView.java:3988)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1080)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.support.design.widget.CoordinatorLayout.layoutChild (CoordinatorLayout.java:1171)
   at android.support.design.widget.CoordinatorLayout.onLayoutChild (CoordinatorLayout.java:856)
   at android.support.design.widget.CoordinatorLayout.onLayout (CoordinatorLayout.java:875)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.support.v4.widget.DrawerLayout.onLayout (DrawerLayout.java:1172)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1742)
   at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1585)
   at android.widget.LinearLayout.onLayout (LinearLayout.java:1494)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1742)
   at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1585)
   at android.widget.LinearLayout.onLayout (LinearLayout.java:1494)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.widget.FrameLayout.layoutChildren (FrameLayout.java:344)
   at android.widget.FrameLayout.onLayout (FrameLayout.java:281)
   at com.android.internal.policy.PhoneWindow$DecorView.onLayout (PhoneWindow.java:3193)
   at android.view.View.layout (View.java:17945)
   at android.view.ViewGroup.layout (ViewGroup.java:5814)
   at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:2717)
   at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2418)
   at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1488)
   at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7451)
   at android.view.Choreographer$CallbackRecord.run (Choreographer.java:920)
   at android.view.Choreographer.doCallbacks (Choreographer.java:695)
   at android.view.Choreographer.doFrame (Choreographer.java:631)
   at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:906)
   at android.os.Handler.handleCallback (Handler.java:739)
   at android.os.Handler.dispatchMessage (Handler.java:95)
   at android.os.Looper.loop (Looper.java:158)
   at android.app.ActivityThread.main (ActivityThread.java:7224)
   at java.lang.reflect.Method.invoke (Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
</code></pre></div>