title: Adreno-GSL and AdMob Crashes
body: <p>I was hoping someone could help me translate what this error message means so I can fixes my app crashes. An few hours of scouring Google etc has yielded no clues.</p>
  
  <p>LogCat Output:</p>
  
  <pre><code>03-15 22:33:12.383: W/Adreno-GSL(31852): &lt;gsl_ldd_control:393&gt;: ioctl fd 55 code     0xc0140910 (IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS) failed: errno 71 Protocol error
  03-15 22:33:12.383: W/Adreno-GSL(31852): &lt;log_gpu_snapshot:308&gt;: panel.gpuSnapshotPath is not set.not generating user snapshot
  03-15 22:33:13.173: W/Adreno-GSL(31852): &lt;gsl_ldd_control:393&gt;: ioctl fd 55 code 0xc0140910 (IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS) failed: errno 35 Resource deadlock would occur
  03-15 22:33:13.173: W/Adreno-GSL(31852): &lt;log_gpu_snapshot:308&gt;: panel.gpuSnapshotPath is not set.not generating user snapshot
  03-15 22:33:13.173: W/Adreno-GSL(31852): &lt;gsl_ldd_control:393&gt;: ioctl fd 55 code 0xc0140910 (IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS) failed: errno 35 Resource deadlock would occur
  03-15 22:33:13.173: W/Adreno-GSL(31852): &lt;log_gpu_snapshot:308&gt;: panel.gpuSnapshotPath is not set.not generating user snapshot
  </code></pre>
  
  <p>I have narrowed it down to my Ad Mobile code. If I put the code below in either the onCreate or onResume sections of my main activity it crashes with the above error (Samsung Galaxy S4). If added in after a delay there doesn't seem to be a problem.</p>
  
  <pre><code>    if (adView == null &amp;&amp; GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext()) ==  ConnectionResult.SUCCESS){
          adView = new AdView(this);
          if (adView != null){
              adView.setAdSize(AdSize.SMART_BANNER);
              adView.setAdUnitId(AD_UNIT_ID);
              LinearLayout layout = (LinearLayout) findViewById(R.id.addBar);
              if (layout != null){
                  layout.addView(adView);         
                  AdRequest adRequest = new AdRequest.Builder()
                  .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
                  .addTestDevice("B3EEABB8EE11C2BE770B684D95219ECB")
                  .build();
                  adView.loadAd(adRequest);
              }
          }
      }
  </code></pre>