title: attempting to exceed the max dequeued buffer count (12)
body: <p>I'm building a app camera (api2), i show camera preview, capture and after show image. </p>
  
  <p>It worked but my logcat have error:</p>
  
  <pre><code>dequeueBuffer: attempting to exceed the max dequeued buffer count (12)
  </code></pre>
  
  <p>This my code camera prevew:</p>
  
  <pre><code>fun cameraPreview(){
      if(camOutputSizeWidth &gt; camOutputSizeHeight){
          val layoutParam = RelativeLayout.LayoutParams(widthPixels,(widthPixels*camOutputSizeWidth)/(camOutputSizeHeight))
          mytextureView.layoutParams = layoutParam
      }else{
          val layoutParam = RelativeLayout.LayoutParams(widthPixels,(widthPixels*camOutputSizeHeight)/(camOutputSizeWidth))
          mytextureView.layoutParams = layoutParam
      }
  
      val texture = mytextureView.surfaceTexture
      texture.setDefaultBufferSize(camOutputSizeWidth, camOutputSizeWidth)
  
      val surface  = Surface(texture)
      captureRequestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW)
      captureRequestBuilder.addTarget(surface)
      mCamera.createCaptureSession(arrayListOf(surface),CameraPreviewSessionCallback(), null)
  }
  </code></pre>
  
  <p>Why is that error? How to do fix it? </p>