title: Error: cannot access an invalid/free'd bitmap here
body: <ol>
  <li>On fragment onPause, I create a bitmap:</li>
  </ol>
  
  <pre><code>mBitmap = Bitmap.createBitmap(720, 1280, Bitmap.Config.RGB_565);
  </code></pre>
  
  <ol start="2">
  <li>then call textureView's getBitmap</li>
  </ol>
  
  <pre><code>getBitmap(mBitmap);
  </code></pre>
  
  <ol start="3">
  <li>then throw a fatal exception:</li>
  </ol>
  
  <pre><code>F Bitmap : Error, cannot access an invalid/free'd bitmap here!
  </code></pre>
  
  <p>Stack tree:</p>
  
  <pre><code>1 #00 pc 000442b8 /system/lib/libc.so (tgkill+12) [armeabi-v7a::a699cc0495fb27c5d02d2f07457c9ac7]
  2 #01 pc 00041eb9 /system/lib/libc.so (pthread_kill+32) [armeabi-v7a::a699cc0495fb27c5d02d2f07457c9ac7]
  3 #02 pc 0001b9d3 /system/lib/libc.so (raise+10) [armeabi-v7a::a699cc0495fb27c5d02d2f07457c9ac7]
  4 #03 pc 00018c41 /system/lib/libc.so (__libc_android_abort+34) [armeabi-v7a::a699cc0495fb27c5d02d2f07457c9ac7]
  5 #04 pc 00016804 /system/lib/libc.so (abort+4) [armeabi-v7a::a699cc0495fb27c5d02d2f07457c9ac7]
  6 #05 pc 0000929b /system/lib/libcutils.so (__android_log_assert+86) [armeabi-v7a::732544599c30f6e6b85e83c6134e640a]
  7 #06 pc 0008097f /system/lib/libandroid_runtime.so (_ZNK7android6Bitmap11assertValidEv+18) [armeabi-v7a::cd82687a3f7f93e951d12444e0ef22cd]
  8 java:
  9 android.view.ThreadedRenderer.copyLayerInto(ThreadedRenderer.java:409)
  10 android.view.HardwareLayer.copyInto(HardwareLayer.java:94)
  11 android.view.TextureView.getBitmap(TextureView.java:590)
  </code></pre>