YPImagePicker
YPImagePicker copied to clipboard
Crash when hardware corrupted camera is used for capturing photo
Describe the bug When any camera is corrupted for hardware failure, using that camera for capturing photo causes a fatal crash. Also the camera flipping feature doesn't work. A console log is printed in the case of fatal crash:
[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection
To Reproduce Prerequisite: An iPhone with a camera (preferably back camera) that is corrupted due to hardware failure. Steps to reproduce the behavior:
- Run the example project
- Click on 'Pick'
- Tap 'Photo' on the bottom selector
- Allow camera permission if needed
- Tap the flip camera button with no success
- Tap the green 'Capture' button
- Observe the crash
Expected behavior Crash should be prevented. Flip camera button should actually flip the camera.
Environment (please complete the following information):
- Device: [e.g. iPhone8]
- OS: [Any]
- Xcode Version [e.g. 13.2.1]
- Swift Version [e.g. 5.3]
Installation Type
- SPM
- Cocoapods
- Manual
Any news about this crash ? Still have it today with the last version.