Recent searches
No recent searches
iOS ChatProvidersSDK crashes
Posted Oct 25, 2021
Hello.
We see iOS ChatProvidersSDK crashes in our app.
Stack traces:
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: SwiftWebSocket
0 libswiftCore.dylib 0x2cf7ec swift_isUniquelyReferenced_nonNull_native + 10
1 ChatProvidersSDK 0x16258 specialized Dictionary._Variant.setValue(_:forKey:) + 4064 (<compiler-generated>:4064)
2 ChatProvidersSDK 0xcb914 specialized DataNode.addModelObserver<A, B>(_:type:_:) + 22028 (<compiler-generated>:22028)
3 ChatProvidersSDK 0x725d8 ChatConnection.obtainConnection() + 24236 (<compiler-generated>:24236)
4 ChatProvidersSDK 0x737a0 ChatConnection.connect() + 28788 (<compiler-generated>:28788)
5 ChatProvidersSDK 0xd188c specialized ChatRetryConnectionBehaviour.tryReconnect(in:completion:) + 163 (ChatRetryConnectionBehaviour.swift:163)
6 ChatProvidersSDK 0x72f40 closure #2 in ChatConnection.observeChatSocketConnection() + 26644 (<compiler-generated>:26644)
7 ChatProvidersSDK 0x227dc ChatSocketConnection.onStatusChange(status:) + 2312 (<compiler-generated>:2312)
8 ChatProvidersSDK 0x247ac partial apply for closure #2 in ChatSocketConnection.bindEvents() + 428 (<compiler-generated>:428)
9 ChatProvidersSDK 0x5d838 WebSocket.closeWebSocket() + 4472 (<compiler-generated>:4472)
10 ChatProvidersSDK 0x22ee4 ChatSocketConnection.disconnect() + 197 (ChatSocketConnection.swift:197)
11 ChatProvidersSDK 0x72990 ChatConnection.disconnect(reason:) + 25188 (<compiler-generated>:25188)
12 ChatProvidersSDK 0x730cc closure #3 in ChatConnection.observeChatSocketConnection() + 27040 (<compiler-generated>:27040)
13 ChatProvidersSDK 0x2286c closure #3 in ChatSocketConnection.bindEvents() + 2456 (<compiler-generated>:2456)
14 ChatProvidersSDK 0x5dab8 WebSocket.errorEvent(_:) + 5112 (<compiler-generated>:5112)
15 ChatProvidersSDK 0x5e01c partial apply for closure #3 in WebSocket.bindEvents() + 6492 (<compiler-generated>:6492)
16 ChatProvidersSDK 0xabcfc InnerWebSocket.step() + 11592 (<compiler-generated>:11592)
17 ChatProvidersSDK 0xb4020 closure #1 in Manager.init() + 1623 (SwiftWebSocket.swift:1623)
18 ChatProvidersSDK 0x4d05c thunk for @escaping @callee_guaranteed () -> () + 8836 (<compiler-generated>:8836)
19 libdispatch.dylib 0x5fa38 _dispatch_call_block_and_release + 24
20 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
21 libdispatch.dylib 0x9324 _dispatch_lane_serial_drain$VARIANT$mp + 592
22 libdispatch.dylib 0x9e40 _dispatch_lane_invoke$VARIANT$mp + 428
23 libdispatch.dylib 0x124ac _dispatch_workloop_worker_thread + 596
24 libsystem_pthread.dylib 0xc114 _pthread_wqthread + 304
25 libsystem_pthread.dylib 0xecd4 start_wqthread + 4
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: SwiftWebSocket
0 ChatProvidersSDK 0xd4734 specialized __RawDictionaryStorage.find<A>(_:) + 58412 (<compiler-generated>:58412)
1 ChatProvidersSDK 0x201e8 specialized Dictionary.removeValue(forKey:) + 44912
2 ChatProvidersSDK 0x1fbcc specialized closure #2 in Observable.addObserver<A>(_:identifier:eagerObserver:onRemove:_:) + 103 (Observer.swift:103)
3 ChatProvidersSDK 0x72b1c ChatConnection.unobserveConnection() + 125 (Observer.swift:125)
4 ChatProvidersSDK 0x729b4 ChatConnection.disconnect(reason:) + 104 (ChatConnection.swift:104)
5 ChatProvidersSDK 0x72f00 closure #2 in ChatConnection.observeChatSocketConnection() + 280 (ChatConnection.swift:280)
6 ChatProvidersSDK 0x227dc ChatSocketConnection.onStatusChange(status:) + 2312 (<compiler-generated>:2312)
7 ChatProvidersSDK 0x247ac partial apply for closure #2 in ChatSocketConnection.bindEvents() + 428 (<compiler-generated>:428)
8 ChatProvidersSDK 0x5d838 WebSocket.closeWebSocket() + 4472 (<compiler-generated>:4472)
9 ChatProvidersSDK 0x22ee4 ChatSocketConnection.disconnect() + 197 (ChatSocketConnection.swift:197)
10 ChatProvidersSDK 0x72990 ChatConnection.disconnect(reason:) + 25188 (<compiler-generated>:25188)
11 ChatProvidersSDK 0x730cc closure #3 in ChatConnection.observeChatSocketConnection() + 27040 (<compiler-generated>:27040)
12 ChatProvidersSDK 0x2286c closure #3 in ChatSocketConnection.bindEvents() + 2456 (<compiler-generated>:2456)
13 ChatProvidersSDK 0x5dab8 WebSocket.errorEvent(_:) + 5112 (<compiler-generated>:5112)
14 ChatProvidersSDK 0x5e01c partial apply for closure #3 in WebSocket.bindEvents() + 6492 (<compiler-generated>:6492)
15 ChatProvidersSDK 0xabcfc InnerWebSocket.step() + 11592 (<compiler-generated>:11592)
16 ChatProvidersSDK 0xb4020 closure #1 in Manager.init() + 1623 (SwiftWebSocket.swift:1623)
17 ChatProvidersSDK 0x4d05c thunk for @escaping @callee_guaranteed () -> () + 8836 (<compiler-generated>:8836)
18 libdispatch.dylib 0x5fa38 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
20 libdispatch.dylib 0x9324 _dispatch_lane_serial_drain$VARIANT$mp + 592
21 libdispatch.dylib 0x9e40 _dispatch_lane_invoke$VARIANT$mp + 428
22 libdispatch.dylib 0x124ac _dispatch_workloop_worker_thread + 596
23 libsystem_pthread.dylib 0xc114 _pthread_wqthread + 304
24 libsystem_pthread.dylib 0xecd4 start_wqthread + 4
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: com.apple.root.default-qos.overcommit
0 libswiftCore.dylib 0x2cf7ec swift_isUniquelyReferenced_nonNull_native + 10
1 ChatProvidersSDK 0x16400 specialized Dictionary._Variant.setValue(_:forKey:) + 4488
2 ChatProvidersSDK 0x1dc1c specialized Observable.addObserver<A>(_:identifier:eagerObserver:onRemove:_:) + 35236 (<compiler-generated>:35236)
3 ChatProvidersSDK 0xcb734 specialized DataNode.addModelObserver<A, B>(_:type:_:) + 140 (DataNode.swift:140)
4 ChatProvidersSDK 0x725d8 ChatConnection.obtainConnection() + 24236 (<compiler-generated>:24236)
5 ChatProvidersSDK 0x737a0 ChatConnection.connect() + 28788 (<compiler-generated>:28788)
6 ChatProvidersSDK 0xd1578 closure #1 in ChatRetryConnectionBehaviour.startTimer(completion:) + 163 (ChatRetryConnectionBehaviour.swift:163)
7 ChatProvidersSDK 0x4d208 closure #1 in DispatchTimer.execute(_:) + 9264 (<compiler-generated>:9264)
8 ChatProvidersSDK 0x4d05c thunk for @escaping @callee_guaranteed () -> () + 8836 (<compiler-generated>:8836)
9 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
10 libdispatch.dylib 0x501c _dispatch_continuation_pop$VARIANT$mp + 412
11 libdispatch.dylib 0x14fa8 _dispatch_source_invoke$VARIANT$mp + 1308
12 libdispatch.dylib 0x11030 _dispatch_root_queue_drain + 372
13 libdispatch.dylib 0x118d4 _dispatch_worker_thread2 + 128
14 libsystem_pthread.dylib 0xc1b4 _pthread_wqthread + 464
15 libsystem_pthread.dylib 0xecd4 start_wqthread + 4
EXC_BREAKPOINT 0x00000001a88b9fd0
Crashed: com.apple.root.default-qos.overcommit
0 libdispatch.dylib 0x2fd0 _os_object_retain + 64
1 ChatProvidersSDK 0xd114c closure #1 in ChatRetryConnectionBehaviour.startTimer(completion:) + 46 (DispatchTimer.swift:46)
2 ChatProvidersSDK 0x4d208 closure #1 in DispatchTimer.execute(_:) + 9264 (<compiler-generated>:9264)
3 ChatProvidersSDK 0x4d05c thunk for @escaping @callee_guaranteed () -> () + 8836 (<compiler-generated>:8836)
4 libdispatch.dylib 0x481c _dispatch_client_callout + 20
5 libdispatch.dylib 0x7cf4 _dispatch_continuation_pop + 448
6 libdispatch.dylib 0x1a4b8 _dispatch_source_invoke + 1284
7 libdispatch.dylib 0x15fe0 _dispatch_root_queue_drain + 388
8 libdispatch.dylib 0x167d8 _dispatch_worker_thread2 + 112
9 libsystem_pthread.dylib 0x3768 _pthread_wqthread + 216
10 libsystem_pthread.dylib 0xa74c start_wqthread + 8
Any ideas how to fix this?
We are using ZendeskChatSDK v2.11.0
0
4
4 comments
Greg Katechis
Hi Iurii Mozharovskyi! A few questions for you so that we can help narrow down this issue:
0
Iurii Mozharovskyi
Greg Katechis this is runtime error and we can't reproduce it. Stack traces are taken from Firebase Crashlytics.
App has message counter logic that has code similar to this
https://developer.zendesk.com/documentation/classic-web-widget-sdks/chat-sdk-v2/ios/adding-a-chat-message-counter-to-your-ios-app-using-the-chat-sdk/#chat-connection-and-state-observers
0
Greg Katechis
Thanks for the response! Without additional details as to what is causing this or when it's happening, it's really difficult for us to provide any insight here. Could you try and gather that information from your users and then update here?
0
Iurii Mozharovskyi
Greg Green well now it seems that it crashes randomly. I will try to gather more details.
Please notify if any updates/insights.
0