-
Notifications
You must be signed in to change notification settings - Fork 68
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
EXC_BAD_ACCESS on VideoFeed.swift line 104: session.addInput(videoDeviceInput) #89
Comments
Thanks for the bug report, Walter. We're on it. @jaimejiyepark can you take a look? |
taking a peek now! let me see if i can reproduce this. |
PR for fix is here: #90 |
Here is the example app with the changes needed to take photos: |
Thanks Walter! Taking a look now. |
Hey @waltersanford , |
Is there another way to reproduce the error? |
Interesting, I wonder if its device specific. What device are you testing on? I'll try it on several here. |
I am testing on my iPhone 8 Plus + iOS13. What about you? |
Here is what I have so far: |
I've updated that original iPhone Xs Max to 13.1.3 and I still get the error. I'll track down another similar device and see if I can reproduce it there. |
I will also try to run it on an iPhone Xs Max. Will get back to you shortly. |
I just tried it on an iPhone Xs (13.1.2). I couldn't reproduce the crash in the same way but I was able to cause it to crash using a different set of steps: In my version of the Example app I opened the Scan window 3 times (tapping the Scan Card button, then the Back button) and then tapped the Take Photo button. |
Good news. Applying the fix in my PR fixes the second crash too. I'm calling it a second crash because it's also an EXC_BAD_ACCESS with code=2 but it doesn't have the same stack trace. |
So far it's only reproducible on the iPhone Xs and Xs Max. It doesn't happen on the iPhone 8, iPhone 6s Plus or the iPad Air 2. |
Hey @waltersanford. |
When trying to scan a credit card after using the camera, the video preview window appears empty and we get Thread 9: EXC_BAD_ACCESS (code=2, address=0x16db6fff8). The line of code that is failing is VideoFeed.swift, line 104: session.addInput(videoDeviceInput).
I've reproduced the error in CardScan - Example by adding a button that opens a standard UIImagePickerController. If you open the camera using the UIImagePickerController 3+ times and then tap the Scan Card button, the error will happen.
The text was updated successfully, but these errors were encountered: