Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpectedly found nil while implicitly unwrapping an Optional value #77

Closed
ian-sayles opened this issue Aug 18, 2022 · 9 comments
Closed

Comments

@ian-sayles
Copy link

On a new device app keeps crashing when asked to give permission to access the camera.
It crashes with the following error below, this happens before the 'OK' button is pressed, if you press the OK button, and start the app again it works ok.

CodeScanner/ScannerViewController.swift:178: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
2022-08-12 09:30:14.185667+0100 [405:12472] CodeScanner/ScannerViewController.swift:178: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

if previewLayer == nil {
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
}

The version of Codescanner 2.1.2 and iOS 15.6 and happens on iPad's and iPhone's

@nathanfallet
Copy link
Collaborator

Fixed by #73, just need to wait for a release

@MartinaRogach
Copy link

Fixed by #73, just need to wait for a release

when do you release this fix?

@nathanfallet
Copy link
Collaborator

Fixed by #73, just need to wait for a release

when do you release this fix?

We're waiting for @twostraws to tag a new version

@twostraws
Copy link
Owner

This has just been done. Sorry for the delay – I'm still on vacation!

@nathanfallet
Copy link
Collaborator

Thanks for merging! Have you seen my email about this repository? (Sent on Aug 22 to find it easily)

@twostraws
Copy link
Owner

@nathanfallet No; I’m on vacation.

@nathanfallet
Copy link
Collaborator

@twostraws Yes I know, and I saw you don’t have many time to maintain this repo.
That’s why I would like to help you and become a maintainer (“collaborator” on GitHub) on the project. Like I already do with SQLite.swift and CryptoSwift, I can help managing issues (sort, reply, or close if needed), pull requests (review and merge if approved), and releases (create a tag when needed).
I already made some contributions on it, and I would love to help more! Tell me what you think about it.

@twostraws
Copy link
Owner

Okay, let's give it a try! 👍

@nathanfallet
Copy link
Collaborator

Thanks! I already fixes some issues. I will follow what's new and do all I can to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants