Closed Ghamza-Jd closed 1 year ago
@Ghamza-Jd I noticed that your app is using swiftui. Currently we have 2 different artifacts one for swiftui (which is still beta, supports both UIKit and swift ui) and one for native (supports only UIKit). Which one do u use? I mean can u provide the build number of the SDK (2.22.1)
Hi @MikePendo, taking over from @Ghamza-Jd here. We installed Pendo with SPM and I can't quite see where the build number is there, below is what is in our Package.resolved
{
"identity" : "pendo-mobile-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pendo-io/pendo-mobile-sdk",
"state" : {
"revision" : "262467824a096c18871f572fb5b7235177359b71",
"version" : "2.22.1"
}
},
After you mentioned above having two branches, I checked out the docs and have now added via SPM as described here. Are these up to date docs?
@Ghamza-Jd
I also noticed that the crash happens when u send a track event. How do you call it i.e what event and properties do you put there:
open func track(_ event: String, properties: [AnyHashable : Any]?)
As I am really not sure how do you get to that crash
It varies for each event we send but as a rule we always send properties as a [String: String] dictionary.
Update I just found the build version, as logged to xcode console
Before changing to swiftui branch - 2.22.1.7452
swiftui branch - 2.22.1.7480
@benjamin-es-hall @Ghamza-Jd is your app available on App Store? with the flow you have the crash so we could reproduce it on our side? this is the app: proximie Is it ok if you could create an account for us if we provide you with email?
@benjamin-es-hall @Ghamza-Jd Any progress on the above question
Hey @MikePendo The new issue is less frequent than the previous one; we raised the first issue because Apple reviewers encountered it, so they rejected the build. The app is more stable than before.
I will close both issues. Thanks for the support!
Platform + Version iOS 16
SDK Version 2.22.1
Framework Native
Describe the bug When tracking the first event, the app crashes.
Logs
Apple crash logs
``` Incident Identifier: 63866D18-F1E4-45E5-A01C-40F1752366B5 Hardware Model: iPad7,1 Process: Proximie [1402] Path: /private/var/containers/Bundle/Application/AE3EEF39-7F8D-49FB-8AE5-DDF52AF75BCF/Proximie.app/Proximie Identifier: com.proximie.appdev Version: 23.08.07 (3256) AppStoreTools: 14E221 AppVariant: 1:iPad7,1:16 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.proximie.appdev [685] Date/Time: 2023-08-07 15:03:49.3708 +0300 Launch Time: 2023-08-07 15:03:42.0429 +0300 OS Version: iPhone OS 16.6 (20G75) Release Type: User Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: SIGNAL 6 Abort trap: 6 Terminating Process: Proximie [1402] Triggered by Thread: 1 Thread 0 name: Thread 0: 0 libsystem_kernel.dylib 0x00000001ea6a3ad0 __ulock_wait + 8 1 libsystem_platform.dylib 0x00000001f9ac1d08 0x1f9ac1000 + 3336 2 libsystem_malloc.dylib 0x00000001bdb33408 0x1bdb2f000 + 17416 3 libswiftCore.dylib 0x00000001aa614184 _swift_release_dealloc + 28 (HeapObject.cpp:714) 4 libswiftCore.dylib 0x00000001aa615060 bool swift::RefCountsCrashlytics
``` # Crashlytics - Stack trace # Application: com.proximie.appdev # Platform: apple # Version: 23.08.07 (3256) # Issue: 4d14776e9ee69d1d014dce13dbc936d7 # Session: fce71c4382254e909b68f1965d9aed98_DNE_0_v2 # Date: Mon Aug 07 2023 15:22:51 GMT+0300 (Eastern European Summer Time) com.apple.main-thread 0 libsystem_kernel.dylib 0x1030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x12b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x12db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1524 mach_msg + 20 4 CoreFoundation 0x741c8 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x75360 __CFRunLoopRun + 1208 6 CoreFoundation 0x79da0 CFRunLoopRunSpecific + 584 7 GraphicsServices 0x1998 GSEventRunModal + 160 8 UIKitCore 0x37180c -[UIApplication _run] + 868 9 UIKitCore 0x371484 UIApplicationMain + 312 10 Proximie 0x58afd4 main + 15 (AppDelegate.swift:15) 11 ??? 0x1cdbe8344 (Missing) com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x1030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x12b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x12db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1524 mach_msg + 20 4 CoreFoundation 0x741c8 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x75360 __CFRunLoopRun + 1208 6 CoreFoundation 0x79da0 CFRunLoopRunSpecific + 584 7 Foundation 0x3e138 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208 8 Foundation 0x3e034 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60 9 UIKitCore 0x493cd8 -[UIEventFetcher threadMain] + 404 10 Foundation 0x55c9c __NSThread__start__ + 704 11 libsystem_pthread.dylib 0x30ec _pthread_start + 116 12 libsystem_pthread.dylib 0x172c thread_start + 8 Crashed: pendo.api.initQueue 0 libsystem_kernel.dylib 0x7198 __pthread_kill + 8 1 libsystem_pthread.dylib 0xd5f8 pthread_kill + 208 2 libsystem_c.dylib 0x1c4b8 abort + 124 3 libsystem_malloc.dylib 0x1d0b8 malloc_vreport + 904 4 libsystem_malloc.dylib 0x1d330 malloc_zone_error + 100 5 libsystem_malloc.dylib 0x1cbf8 free_list_checksum_botch + 36 6 libsystem_malloc.dylib 0x4948 tiny_free_list_add_ptr + 752 7 libsystem_malloc.dylib 0x3a88 tiny_free_no_lock + 916 8 libsystem_malloc.dylib 0x4520 free_tiny + 416 9 CoreFoundation 0x791b8 __CFStringDeallocate + 192 10 CoreFoundation 0x77d14 _CFRelease + 324 11 CoreFoundation 0x7e624 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 252 12 CoreFoundation 0x7b1b0 _CFStringCreateWithFormatAndArgumentsAux2 + 40 13 Foundation 0x1924c +[NSString stringWithFormat:] + 64 14 Pendo 0x13a60c -[PNDAnalyticsMessageManager putSync:] + 820 15 Pendo 0x64a0c __44+[PNDTrackEventsUtils sendTrack:properties:]_block_invoke + 408 16 libdispatch.dylib 0x637a8 _dispatch_call_block_and_release + 24 17 libdispatch.dylib 0x64780 _dispatch_client_callout + 16 18 libdispatch.dylib 0xa298 _dispatch_lane_serial_drain$VARIANT$mp + 644 19 libdispatch.dylib 0xad70 _dispatch_lane_invoke$VARIANT$mp + 396 20 libdispatch.dylib 0x14dc8 _dispatch_workloop_worker_thread + 632 21 libsystem_pthread.dylib 0x1bd0 _pthread_wqthread + 284 22 libsystem_pthread.dylib 0x1720 start_wqthread + 8 com.auth0.credentialsmanager.serial 0 libsystem_kernel.dylib 0x1ad0 __ulock_wait + 8 1 libdispatch.dylib 0x4908 _dlock_wait + 52 2 libdispatch.dylib 0x4ca0 _dispatch_group_wait_slow + 52 3 Auth0 0x43d78 $s5Auth018CredentialsManagerV08retrieveB033_7B015C01D390F144D530C0BDC8D6AD2ELL9withScope6minTTL10parameters7headers8callbackySSSg_SiSDySSypGSDyS2SGys6ResultOyAA0B0CAA0bC5ErrorVGctFyycfU_ + 860 4 Auth0 0x4516c $sIeg_IeyB_TR + 48 5 libdispatch.dylib 0x637a8 _dispatch_call_block_and_release + 24 6 libdispatch.dylib 0x64780 _dispatch_client_callout + 16 7 libdispatch.dylib 0xa298 _dispatch_lane_serial_drain$VARIANT$mp + 644 8 libdispatch.dylib 0xad70 _dispatch_lane_invoke$VARIANT$mp + 396 9 libdispatch.dylib 0x14dc8 _dispatch_workloop_worker_thread + 632 10 libsystem_pthread.dylib 0x1bd0 _pthread_wqthread + 284 11 libsystem_pthread.dylib 0x1720 start_wqthread + 8 com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0x1030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x12b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x12db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1524 mach_msg + 20 4 FirebaseCrashlytics 0x27318 FIRCLSMachExceptionReadMessage + 80 5 FirebaseCrashlytics 0x27250 FIRCLSMachExceptionServer + 52 6 libsystem_pthread.dylib 0x30ec _pthread_start + 116 7 libsystem_pthread.dylib 0x172c thread_start + 8 pendo.analytics.syncQueue 0 libsystem_kernel.dylib 0x1ad0 __ulock_wait + 8 1 libdispatch.dylib 0x4908 _dlock_wait + 52 2 libdispatch.dylib 0x4ca0 _dispatch_group_wait_slow + 52 3 Pendo 0x13b850 -[PNDAnalyticsMessageManager sendAnalytics:] + 164 4 Pendo 0x13b680 -[PNDAnalyticsMessageManager handleBuffer:analytics:] + 864 5 Pendo 0xd481c -[PNDDiskBuffer prepareObjectsForProcessing] + 164 6 Pendo 0xd4394 -[PNDDiskBuffer appendObjectsProcessIfNeeded:] + 216 7 Pendo 0x13b5d8 -[PNDAnalyticsMessageManager handleBuffer:analytics:] + 696 8 Pendo 0xd481c -[PNDDiskBuffer prepareObjectsForProcessing] + 164 9 Pendo 0xd4394 -[PNDDiskBuffer appendObjectsProcessIfNeeded:] + 216 10 Pendo 0x13afcc -[PNDAnalyticsMessageManager flushQueueToIntermediate] + 172 11 Pendo 0x13a28c __34-[PNDAnalyticsMessageManager put:]_block_invoke + 1044 12 libdispatch.dylib 0x637a8 _dispatch_call_block_and_release + 24 13 libdispatch.dylib 0x64780 _dispatch_client_callout + 16 14 libdispatch.dylib 0xa298 _dispatch_lane_serial_drain$VARIANT$mp + 644 15 libdispatch.dylib 0xad70 _dispatch_lane_invoke$VARIANT$mp + 396 16 libdispatch.dylib 0x14dc8 _dispatch_workloop_worker_thread + 632 17 libsystem_pthread.dylib 0x1bd0 _pthread_wqthread + 284 18 libsystem_pthread.dylib 0x1720 start_wqthread + 8 com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x1030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x12b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x12db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1524 mach_msg + 20 4 CoreFoundation 0x741c8 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x75360 __CFRunLoopRun + 1208 6 CoreFoundation 0x79da0 CFRunLoopRunSpecific + 584 7 CFNetwork 0x228520 _CFURLStorageSessionDisableCache + 50860 8 Foundation 0x55c9c __NSThread__start__ + 704 9 libsystem_pthread.dylib 0x30ec _pthread_start + 116 10 libsystem_pthread.dylib 0x172c thread_start + 8 swiftybeaver-queue-851AB8E8-E7C4-44BA-8BF1-2DD9B01C3C37 0 libsystem_kernel.dylib 0xfac semaphore_wait_trap + 8 1 libdispatch.dylib 0x4508 _dispatch_sema4_wait$VARIANT$mp + 24 2 libdispatch.dylib 0x4b64 _dispatch_semaphore_wait_slow + 148 3 Foundation 0x86100 -[NSFileCoordinator(NSPrivate) _blockOnAccessClaim:withAccessArbiter:] + 316 4 Foundation 0x85420 -[NSFileCoordinator(NSPrivate) _coordinateWritingItemAtURL:options:error:byAccessor:] + 528 5 Foundation 0x851e8 -[NSFileCoordinator coordinateWritingItemAtURL:options:error:byAccessor:] + 84 6 SwiftyBeaver 0x41e3c $s12SwiftyBeaver15FileDestinationC5write33_EECB18DCA187D4E49EF48E136B488AE7LL4data2toSb10Foundation4DataV_AH3URLVtF + 760 7 SwiftyBeaver 0x41a94 $s12SwiftyBeaver15FileDestinationC06saveToC03strSbSS_tF + 708 8 SwiftyBeaver 0x40a08 $s12SwiftyBeaver15FileDestinationC012validateSaveC03strSbSS_tF + 2244 9 SwiftyBeaver 0x40110 $s12SwiftyBeaver15FileDestinationC4send_3msg6thread4file8function4line7contextSSSgA2AC5LevelO_S4SSiypSgtF + 380 10 SwiftyBeaver 0x5f98c $s12SwiftyBeaverAAC13dispatch_send5level7message6thread4file8function4line7contextyAB5LevelO_ypyXKS3SSiypSgtFZyycfU_ + 204 11 SwiftyBeaver 0x5fccc $s12SwiftyBeaverAAC13dispatch_send5level7message6thread4file8function4line7contextyAB5LevelO_ypyXKS3SSiypSgtFZyycfU_TA + 84 12 SwiftyBeaver 0x34524 $sIeg_IeyB_TR + 48 13 libdispatch.dylib 0x637a8 _dispatch_call_block_and_release + 24 14 libdispatch.dylib 0x64780 _dispatch_client_callout + 16 15 libdispatch.dylib 0xa298 _dispatch_lane_serial_drain$VARIANT$mp + 644 16 libdispatch.dylib 0xad70 _dispatch_lane_invoke$VARIANT$mp + 396 17 libdispatch.dylib 0x14dc8 _dispatch_workloop_worker_thread + 632 18 libsystem_pthread.dylib 0x1bd0 _pthread_wqthread + 284 19 libsystem_pthread.dylib 0x1720 start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x1718 start_wqthread + 270 com.apple.root.user-initiated-qos 0 libsystem_kernel.dylib 0x1030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x12b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x12db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1524 mach_msg + 20 4 libdispatch.dylib 0x1aec4 _dispatch_mach_send_and_wait_for_reply + 532 5 libdispatch.dylib 0x1b25c dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$mp + 56 6 libxpc.dylib 0xe0ec xpc_connection_send_message_with_reply_sync + 236 7 Security 0x71b0 securityd_message_with_reply_sync + 120 8 Security 0x10b48 securityd_send_sync_and_do + 80 9 Security 0x19a8 __SecItemCopyMatching_block_invoke_2 + 272 10 Security 0x47d0 __SecItemAuthDoQuery_block_invoke + 516 11 Security 0x34e4 SecItemAuthDoQuery + 1216 12 Security 0x44b4 __SecItemCopyMatching_block_invoke + 104 13 Security 0x9e74 SecOSStatusWith + 48 14 Security 0x43a4 SecItemCopyMatching + 364 15 SimpleKeychain 0x721c $sSo19SecItemCopyMatchingys5Int32VSo15CFDictionaryRefa_SpyyXlSgGSgtFTO + 36 16 SimpleKeychain 0x7f74 $s14SimpleKeychainAAV4data6forKey10Foundation4DataVSS_tKF + 188 17 Auth0 0x4a200 $s14SimpleKeychainAAV5Auth0E8getEntry6forKey10Foundation4DataVSgSS_tF + 56 18 Auth0 0x4a400 $s14SimpleKeychainAAV5Auth018CredentialsStorageA2cDP8getEntry6forKey10Foundation4DataVSgSS_tFTW + 60 19 Auth0 0x41cb0 $s5Auth018CredentialsManagerV08retrieveB033_7B015C01D390F144D530C0BDC8D6AD2ELLAA0B0CSgyF + 144 20 Auth0 0x43ee8 $s5Auth018CredentialsManagerV08retrieveB033_7B015C01D390F144D530C0BDC8D6AD2ELL9withScope6minTTL10parameters7headers8callbackySSSg_SiSDySSypGSDyS2SGys6ResultOyAA0B0CAA0bC5ErrorVGctFyycfU_yycfU_ + 340 21 Auth0 0x4516c $sIeg_IeyB_TR + 48 22 libdispatch.dylib 0x637a8 _dispatch_call_block_and_release + 24 23 libdispatch.dylib 0x64780 _dispatch_client_callout + 16 24 libdispatch.dylib 0x13bdc _dispatch_root_queue_drain + 640 25 libdispatch.dylib 0x142ac _dispatch_worker_thread2 + 172 26 libsystem_pthread.dylib 0x1b94 _pthread_wqthread + 224 27 libsystem_pthread.dylib 0x1720 start_wqthread + 8 credentials.queue.sync 0 libsystem_kernel.dylib 0xfac semaphore_wait_trap + 8 1 libdispatch.dylib 0x4508 _dispatch_sema4_wait$VARIANT$mp + 24 2 libdispatch.dylib 0x4b64 _dispatch_semaphore_wait_slow + 148 3 Proximie 0x5cc274 closure #1 in AuthService.accessToken.getter + 103 (AuthService.swift:103) 4 Proximie 0x5ccb14 partial apply for closure #1 in AuthService.accessToken.getter + 20 (