Búsquedas recientes
No hay búsquedas recientes
iOS SDK Causing Crashes
Publicado 26 oct 2023
We observe a crash from ChatProviderSDK occurring on 20% of our User's App Sessions on Prod.
The "connect()" method is the cause of the crash.
The crash impacts users across all iOS versions and iPhone models even if they don't use the Chat in app as connect() were called after SDK initialization.
//In App Delegate
Chat.initialize(accountKey: key, appId: bundleId)
Chat.instance?.connectionProvider.connect()
We removed it in a subsequent version and the Crash Free sessions rate went back up to 99%.
We require this method to verify the chat's availability status (Online/Offline).
ChatSupportService.shared.checkStatus { [weak self] status in
//Handle the status
}
A stacktrace reported from Crashlytics
Crashed: com.apple.main-thread
0 ChatProvidersSDK 0xd4e7c specialized __RawDictionaryStorage.find<A>(_:) + 27612 (<compiler-generated>:27612)
1 ChatProvidersSDK 0x1af34 specialized Dictionary.removeValue(forKey:) + 21696
2 ChatProvidersSDK 0x1a928 specialized closure #2 in Observable.addObserver<A>(_:identifier:eagerObserver:onRemove:_:) + 106 (Observer.swift:106)
3 ChatProvidersSDK 0x6f308 ChatConnection.obtainConnection() + 127 (Observer.swift:127)
4 ChatProvidersSDK 0x70aa8 ChatConnection.connect() + 350 (ChatConnection.swift:350)
5 ChatProvidersSDK 0x100ac8 specialized ChatRetryConnectionBehaviour.tryReconnect(in:completion:) + 163 (ChatRetryConnectionBehaviour.swift:163)
6 ChatProvidersSDK 0x7069c closure #1 in ChatConnection.observeConnectivity() + 318 (ChatConnection.swift:318)
7 ChatProvidersSDK 0xce258 thunk for @escaping @callee_guaranteed (@in_guaranteed Notification) -> () + 33952 (<compiler-generated>:33952)
8 CoreFoundation 0x3757c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
9 CoreFoundation 0xdb828 ___CFXRegistrationPost_block_invoke + 88
10 CoreFoundation 0xbe8b8 _CFXRegistrationPost + 440
11 CoreFoundation 0x4bafc _CFXNotificationPost + 700
12 ChatProvidersSDK 0x4cfbc closure #1 in ReachabilityMonitor.observeConnectivity() + 107 (ReachabilityMonitor.swift:107)
13 ChatProvidersSDK 0xce258 thunk for @escaping @callee_guaranteed (@in_guaranteed Notification) -> () + 33952 (<compiler-generated>:33952)
14 CoreFoundation 0x3757c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
15 CoreFoundation 0xdb828 ___CFXRegistrationPost_block_invoke + 88
16 CoreFoundation 0xbe8b8 _CFXRegistrationPost + 440
17 CoreFoundation 0x4bafc _CFXNotificationPost + 700
18 Foundation 0x5cd18 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
19 ChatProvidersSDK 0x2e970 closure #1 in Reachability.reachabilityChanged() + 522 (Reachability.swift:522)
20 ChatProvidersSDK 0x81170 thunk for @escaping @callee_guaranteed () -> () + 1284 (<compiler-generated>:1284)
21 libdispatch.dylib 0x2320 _dispatch_call_block_and_release + 32
22 libdispatch.dylib 0x3eac _dispatch_client_callout + 20
23 libdispatch.dylib 0x126a4 _dispatch_main_queue_drain + 928
24 libdispatch.dylib 0x122f4 _dispatch_main_queue_callback_4CF + 44
25 CoreFoundation 0x98c28 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
26 CoreFoundation 0x7a560 __CFRunLoopRun + 1992
27 CoreFoundation 0x7f3ec CFRunLoopRunSpecific + 612
28 GraphicsServices 0x135c GSEventRunModal + 164
29 UIKitCore 0x39cf58 -[UIApplication _run] + 888
30 UIKitCore 0x39cbbc UIApplicationMain + 340
31 libswiftUIKit.dylib 0x350b0 UIApplicationMain(_:_:_:_:) + 104
32 ************-PROD 0x6914 main (NavigationController.swift)
33 ??? 0x1ed474dec (Manquant)
Library versions according to Cocoapods
1
0
0 comentarios
Iniciar sesión para dejar un comentario.