Closed kocoai closed 2 years ago
Hello,
I got crash in [PBJVision capturePhoto]
Fatal Exception: NSInternalInconsistencyException *** -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:] - inconsistent state.
Here is the stack trace:
Thread : Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x299b0137 __exceptionPreprocess 1 libobjc.A.dylib 0x37a40c77 objc_exception_throw 2 AVFoundation 0x284e951b -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:] 3 PBJVision 0x77ea51 -[PBJVision capturePhoto] (PBJVision.m:1665) 4 ... 0x1092d4 @objc RKCameraViewModel.capturePhoto() -> () (RKCameraViewModel.swift:73) 5 ... 0xfa4a5 -[RKCameraControlView takePhotoAction:] (RKCameraControlView.m:138) 6 UIKit 0x2d01ba7b -[UIApplication sendAction:to:from:forEvent:] 7 UIKit 0x2d01ba21 -[UIControl sendAction:to:forEvent:] 8 UIKit 0x2d0065c5 -[UIControl _sendActionsForEvents:withEvent:] 9 UIKit 0x2d01b461 -[UIControl touchesEnded:withEvent:] 10 UIKit 0x2d01b133 -[UIWindow _sendTouchesForEvent:] 11 UIKit 0x2d014a41 -[UIWindow sendEvent:] 12 UIKit 0x2cfeac05 -[UIApplication sendEvent:] 13 UIKit 0x2d26131f _UIApplicationHandleEventFromQueueEvent 14 UIKit 0x2cfe9607 _UIApplicationHandleEventQueue 15 CoreFoundation 0x2997622f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 16 CoreFoundation 0x29975643 __CFRunLoopDoSources0 17 CoreFoundation 0x29973cc1 __CFRunLoopRun 18 CoreFoundation 0x298bf9a1 CFRunLoopRunSpecific
@kocoai I have same problem. I resolved by check connection is enabled. https://github.com/codezero-jp/PBJVision/commit/e89d5ad4fc287b8a449f58c54862b5edee98a5be
Hello,
I got crash in [PBJVision capturePhoto]
Here is the stack trace: