Subject: Crash on iOS when using SupportProvidersSDK 9.0.0
Body:
Hello Zendesk Support,
I’m a developer integrating the Zendesk SDKs into our iOS application, and we’ve encountered a crash that we’d like your assistance with.
📱 Environment:
- SDK versions:
-
ZendeskSupportProvidersSDK~> 9.0.0 -
ZendeskSupportSDK~> 9.0.0 -
ZendeskChatSDK~> 5.0.5
-
- Device: iPhone 14 Plus
- iOS version: 18.3.2
- App version: 2024.10.0 (572)
- Jailbroken: No
💥 Crash details:
The crash occurs on the main thread and seems to be related to ZDKAPIDispatcher or the internal memory handling within ZendeskCoreSDK.
Crashed: com.apple.main-thread
0 ZendeskCoreSDK 0x1d688 __swift_memcpy48_8 + 4592
1 SupportProvidersSDK 0x26218 block_destroy_helper + 12452
2 SupportProvidersSDK 0x257e8 block_destroy_helper + 9844
3 SupportProvidersSDK 0x142f0 -[ZDKAPIDispatcher executeRequestNoBlock:onSuccess:onError:] + 208
4 SupportProvidersSDK 0x14540 -[ZDKAPIDispatcher executeRequest:onSuccess:onError:] + 100
5 SupportProvidersSDK 0xe5cc __74-[ZDKRequestProvider getAnonymousRequestsWithTokens:byStatus:withCallack:]_block_invoke_2 + 360
6 SupportProvidersSDK 0x24f68 block_destroy_helper + 7668
7 ZendeskCoreSDK 0x4c50c __swift_destroy_boxed_opaque_existential_1Tm + 8916
8 ZendeskCoreSDK 0x4cc2c __swift_destroy_boxed_opaque_existential_1Tm + 10740
9 ZendeskCoreSDK 0x159c8 __swift_memcpy3_1 + 3244
10 ZendeskCoreSDK 0x47044 objectdestroy.2Tm + 4712
11 ZendeskCoreSDK 0x159f0 __swift_memcpy3_1 + 3284
12 libdispatch.dylib 0x2248 _dispatch_call_block_and_release + 32
13 libdispatch.dylib 0x3fa8 _dispatch_client_callout + 20
14 libdispatch.dylib 0x12a34 _dispatch_main_queue_drain + 984
15 libdispatch.dylib 0x1264c _dispatch_main_queue_callback_4CF + 44
16 CoreFoundation 0x79bcc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
17 CoreFoundation 0x761c0 __CFRunLoopRun + 1996
18 CoreFoundation 0xc8284 CFRunLoopRunSpecific + 588
19 GraphicsServices 0x14c0 GSEventRunModal + 164
20 UIKitCore 0x3ee674 -[UIApplication _run] + 816
21 UIKitCore 0x14e88 UIApplicationMain + 340
22 Rocken-int 0xef4184 main + 16 (AppDelegate.swift:16)
23 ??? 0x1af591de8 (Missing)
We are unsure what might be triggering this crash internally, as we’re using the SDK as documented. Could you help us investigate this issue?
Please let us know if you need any more information (such as logs or sample project) — we’d be happy to provide it.
Thanks in advance for your help!
Best regards,
Stanislav