danielebogo/DBCamera

Inconsistent state

Open

#173 创建于 2015年7月30日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Objective-C (256 fork)github user discovery
Hacktoberfest

仓库指标

Star
 (1,258 star)
PR 合并指标
 (PR 指标待抓取)

描述

I've been using DBCamera manager for a while. In the latest release I'm getting quite a few of these:

Fatal Exception: NSInternalInconsistencyException
*** -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:] - inconsistent state.

stack trace:

ReceiptBank 
DBCameraManager.m line 154
-[DBCameraManager captureImageForDeviceOrientation:]

ReceiptBank 
DBCameraViewController.m line 405
-[DBCameraViewController cameraViewStartRecording]

ReceiptBank 
DBCameraView.m line 352
-[DBCameraView triggerAction:]

I've only replicated it once, the camera shows up black (somehow failed to initialise I guess) and upon pressing the capture button the crash occurs. In the wild the crash is occurring quite a often. I'm not sure what part of my code could cause the camera to show up black randomly. I do dismiss the camera controller when the app goes in the background and recreate a new one when going in foreground if needed.

贡献者指南