react-native-sdk
react-native-sdk copied to clipboard
partial apply for closure #1 in FlowCoordinator.registerClosuresWithContainer()
What was the expected behaviour? We are expecting users to go through the verification flow without the app crashing.
What happened instead? We are seeing many users who experience crashes somewhere during the verification flow. Here's such a stacktrace:
This is still happening on the latest Onfido React native SDK [5.4.0]
CrashReporter Key: e9121f82a58cdd3801d4738f6ab27991186e1784
Hardware Model: iPhone13,2
OS Version: 15.5
Process: xxxxxx
Identifier: xxxxxx
Version: xxxx
Role: Foreground
OS Version: iOS 15.5
Exception Type: EXC_BREAKPOINT
Exception Subtype: KERN_INVALID_ADDRESS
EXC_BREAKPOINT:
0 Onfido partial apply for closure #1 in FlowCoordinator.registerClosuresWithContainer()
1 Onfido partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed Resolver) -> (@owned NavigationControllerProxy)
2 Onfido partial apply for closure #1 in Container.resolve<A>(_:name:)
3 Onfido partial apply for thunk for @callee_guaranteed (@unowned @callee_guaranteed @substituted <A> (@in_guaranteed Resolver) -> (@out A) for <A>) -> (@out A)
4 Onfido partial apply for thunk for @callee_guaranteed (@guaranteed @escaping @callee_guaranteed @substituted <A> (@in_guaranteed Resolver) -> (@out A) for <A>) -> (@out A)
5 Onfido Container.resolve<A, B>(entry:key:invoker:)
6 Onfido Container._resolve<A, B>(name:option:invoker:)
7 Onfido Container.resolve<A>(_:name:)
8 Onfido protocol witness for Resolver.resolve<A>(_:name:) in conformance Container
9 Onfido Resolver.resolveOrFail<A>(_:)
10 Onfido closure #1 in closure #1 in static BootstrapCoordinators.registerNonCaptureCoordinators(container:)
11 Onfido partial apply for thunk for @escaping @callee_guaranteed (@guaranteed WelcomeViewCoordinatorDelegate, @unowned WelcomeSteps, @unowned WorkflowRunUIConfiguration?) -> (@owned Coordinator)
12 Onfido partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed WelcomeViewCoordinatorDelegate, @in_guaranteed WelcomeSteps, @in_guaranteed WorkflowRunUIConfiguration?) -> (@out Coordinator)
13 Onfido FlowCoordinator.showWelcome()
14 Onfido closure #1 in FlowCoordinator.start()
15 Onfido closure #1 in FlowCoordinator.requestApiConfig(onCompletion:)
16 Onfido partial apply for closure #1 in ApiConfigRepository.get(onCompletion:)
17 Onfido partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ApiConfig) -> ()
18 Onfido DefaultOnfidoApi.handleResponse<A, B>(apiResponse:withCompletionHandler:andFailureHandler:resendRequestHandler:)
19 Onfido closure #1 in closure #1 in DefaultOnfidoApi.performPostRequest<A, B>(toPath:jsonData:withTimeoutInSeconds:withCompletionHandler:andFailureHandler:apiVersion:)
20 Onfido partial apply for closure #1 in closure #1 in DefaultOnfidoApi.performPostRequest<A, B>(toPath:jsonData:withTimeoutInSeconds:withCompletionHandler:andFailureHandler:apiVersion:)
21 Onfido thunk for @escaping @callee_guaranteed () -> ()
22 libdispatch.dylib __dispatch_call_block_and_release
23 libdispatch.dylib __dispatch_client_callout
24 libdispatch.dylib __dispatch_main_queue_drain
25 libdispatch.dylib __dispatch_main_queue_callback_4CF
26 CoreFoundation ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
27 CoreFoundation ___CFRunLoopRun
28 CoreFoundation _CFRunLoopRunSpecific
29 GraphicsServices _GSEventRunModal
30 UIKitCore -[UIApplication _run]
31 UIKitCore _UIApplicationMain
33 dyld start