danielebogo/DBCamera

Inconsistent state

Open

#173 aperta il 30 lug 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Objective-C (256 fork)github user discovery
Hacktoberfest

Metriche repository

Star
 (1258 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor