Yummypets / YPImagePicker

📸 Instagram-like image picker & filters for iOS
MIT License
4.3k stars 975 forks source link

Crash when hardware corrupted camera is used for capturing photo #735

Open M-I-N opened 2 years ago

M-I-N commented 2 years ago

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:

  1. Run the example project
  2. Click on 'Pick'
  3. Tap 'Photo' on the bottom selector
  4. Allow camera permission if needed
  5. Tap the flip camera button with no success
  6. Tap the green 'Capture' button
  7. Observe the crash

Expected behavior Crash should be prevented. Flip camera button should actually flip the camera.

Environment (please complete the following information):

Installation Type

xav42mac commented 5 months ago

Any news about this crash ? Still have it today with the last version.