dokun1 / Lumina

A camera designed in Swift for easily integrating CoreML models - as well as image streaming, QR/Barcode detection, and many other features
https://david.okun.io
MIT License
898 stars 91 forks source link

AVCaptureDevice setActiveColorSpace #95

Open aabanaag opened 5 years ago

aabanaag commented 5 years ago

Describe the bug My app crashes after calling self.present(camera, animated: true, completion: nil) twice.

To Reproduce Steps to reproduce the behavior: Call self.present(camera, animated: true, completion: nil) twice the app will crash

Expected behavior Should not crash when re-opening the camera.

Screenshots image

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

dokun1 commented 5 years ago

Hey @aabanaag! Thanks for testing this out. Does this stack appear after the second call to present the view controller is made? I wonder if this is a referencing issue due to calling this method twice from a single view controller. Or are you calling present again after dismissing it?