onfido-ios-sdk
onfido-ios-sdk copied to clipboard
Crash CameraLayerImpl
What was the expected behaviour?
User verification flow without the app crashing.
What happened instead?
$s6Onfido15CameraLayerImplC4stopyyF
Crashed: com.apple.main-thread
0 Onfido 0x945fc $s6Onfido15CameraLayerImplC4stopyyF + 840
1 Onfido 0x97500 $s6Onfido15CameraLayerImplCAA9StoppableA2aDP4stopyyFTW + 20
2 Onfido 0x1ef1cc $s6Onfido16PhotoCaptureViewC4stopyyF + 384
3 Onfido 0x89820 $s6Onfido27CameraCaptureViewControllerC17viewWillDisappearyySbFTo + 120
4 UIKitCore 0x19a0ac -[UIViewController _setViewAppearState:isAnimating:] + 928
5 UIKitCore 0x2356dc -[UIViewController __viewWillDisappear:] + 92
6 UIKitCore 0x260f94 -[UINavigationController viewWillDisappear:] + 116
7 UIKitCore 0x19a0ac -[UIViewController _setViewAppearState:isAnimating:] + 928
8 UIKitCore 0x2356dc -[UIViewController __viewWillDisappear:] + 92
9 UIKitCore 0x88fed8 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.401 + 872
10 UIKitCore 0x30c240 -[_UIAfterCACommitBlock run] + 64
11 UIKitCore 0x227770 -[_UIAfterCACommitQueue flush] + 200
12 UIKitCore 0x155eb0 _runAfterCACommitDeferredBlocks + 640
13 UIKitCore 0x15657c _cleanUpAfterCAFlushAndRunDeferredBlocks + 128
14 UIKitCore 0x156748 _afterCACommitHandler + 56
15 CoreFoundation 0x3e83c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
16 CoreFoundation 0xfa74 __CFRunLoopDoObservers + 616
17 CoreFoundation 0xaffc __CFRunLoopRun + 1012
18 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572
19 GraphicsServices 0x1988 GSEventRunModal + 160
20 UIKitCore 0x4e5a94 -[UIApplication _run] + 1080
21 UIKitCore 0x27efd4 UIApplicationMain + 336
22 _________ 0xb3f4 main + 9 (AppDelegate.swift:9)
23 ??? 0x103df44d0 (Missing)
Version info:
SPM: 26.1.1 Onfido SDK (Debug/Release): Release iOS: 15.6.1 Device: Phone 8
Integration configuration:
.withSDKToken(token)
.withCustomLocalization()
.withAppearance(appearance)
.withWelcomeStep()
.withDocumentStep(ofType: .drivingLicence(config: DrivingLicenceConfiguration(documentFormat: .card)))
.withFaceStep(ofVariant: .video(withConfiguration: nil))
.build()
let onfidoFlow = OnfidoFlow(withConfiguration: config).with(responseHandler: { onfidoResponse in
switch onfidoResponse {
case .cancel:
seal.reject(OnfidoError.cancelled)
case .success(let results):
seal.fulfill(results)
case .error(let error):
seal.reject(error)
@unknown default:
seal.reject(OnfidoError.unknown)
}
})
let viewController = try onfidoFlow.run()
viewController.modalPresentationStyle = .fullScreen
navigationController.present(viewController, animated: true)```
### Steps to reproduce:
Unable to reproduce. Crash is from Firebase.