我正在通过跟踪Google sample link
在我的应用程序中使用camera 2 api它第一次正常工作。如果您多次返回并再次出现,则该应用会崩溃,提示-
[CAM_ID(0)] [PREVIEW_BUF] -ERR(m_bufferCollectorThreadFunc [3196]):dequeueBuffer 失败,出队(5),收集(5)2019-09-20 17:33:12.208 3250-4904 /? E / BufferQueueProducer:[SurfaceView- com.example / com.example.FaceTrackerActivityPayment @ 7edb372 @ 0#0] dequeueBuffer:BufferQueue已被放弃2019-09-20 17:33:12.208 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(分配):出队缓冲区 失败2019-09-20 17:33:12.208 3250-4904 /? E / BufferQueueProducer: [SurfaceView- com.example / com.example.FaceTrackerActivityPayment @ 7edb372 @ 0#0] dequeueBuffer:BufferQueue已被放弃2019-09-20 17:33:12.208 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(分配):出队缓冲区 失败2019-09-20 17:33:12.208 3250-4904 /? E / BufferQueueProducer: [SurfaceView- com.example / com.example.FaceTrackerActivityPayment @ 7edb372 @ 0#0] dequeueBuffer:BufferQueue已被放弃2019-09-20 17:33:12.208 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(分配):出队缓冲区 失败2019-09-20 17:33:12.208 3250-4904 /? E / BufferQueueProducer: [SurfaceView- com.example / com.example.FaceTrackerActivityPayment @ 7edb372 @ 0#0] dequeueBuffer:BufferQueue已被放弃2019-09-20 17:33:12.208 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(分配):出队缓冲区 失败2019-09-20 17:33:12.209 3250-4904 /? E / BufferQueueProducer: [SurfaceView- com.example / com.example.FaceTrackerActivityPayment @ 7edb372 @ 0#0] dequeueBuffer:BufferQueue已被放弃2019-09-20 17:33:12.209 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(分配):出队缓冲区 失败2019-09-20 17:33:12.209 3405-15497 /? E / ExynosCameraMemoryAllocator:@@@@ ERR(alloc):* bufHandle == NULL 失败2019-09-20 17:33:12.209 3405-15497 /? E / ExynosCameraMemoryAllocator:ERR(dequeueBuffer):分配失败