pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
59 stars 2 forks source link

SIGTERM `__CFRunLoopServiceMachPort` #151

Closed msrutek-paylocity closed 2 weeks ago

msrutek-paylocity commented 4 months ago

Platform + Version

iOS 17.5.1 iPhone 15 Pro Max

SDK Version

3.2.2

Framework

Native, SwiftUI

Describe the bug

Hello, since Firebase added support for catching SIGTERM, we started getting thousands of reports of "SIGTERM __CFRunLoopServiceMachPort".

After examining hundreds of SIGTERM occurrences, many indications point to Pendo. We would like to confirm or deny this theory.

We have code inside

func applicationDidEnterBackground(_ application: UIApplication)

that calls the following Pendo method

- (void)track:(NSString *_Nonnull)event properties:(NSDictionary *_Nullable)properties;

Is there anything long-running that might cause the system to perform SIGTERM?

Thanks!

To Reproduce

Yet unknown.

Expected behavior

No SIGTERM.

Stack Trace

Crashed: com.apple.main-thread
0  libsystem_kernel.dylib         0x1178 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf10 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe28 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xc68 mach_msg + 24
4  CoreFoundation                 0x35b1c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33a14 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33478 CFRunLoopRunSpecific + 608
7  GraphicsServices               0x34f8 GSEventRunModal + 164
8  UIKitCore                      0x22c62c -[UIApplication _run] + 888
9  UIKitCore                      0x22bc68 UIApplicationMain + 340
10 REDACTED                       0x584c main + 9 (AppDelegate.swift:9)
11 ???                            0x1cadeedcc (Missing)   
MaximShnirman commented 4 months ago

hi @msrutek-paylocity can you please share the full crash log?

orendayan commented 4 months ago

Hi @msrutek-paylocity , can you please share the full crash log?

msrutek-paylocity commented 4 months ago

Hello @MaximShnirman and @orendayan , the full crash log can be found below:

full crash log >>> ``` # Platform: apple # Date: Tue Jul 16 2024 05:18:17 GMT+0200 (Central European Summer Time) Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 GraphicsServices 0x11a8 GSEventRunModal + 164 8 UIKitCore 0x40a90c -[UIApplication _run] + 888 9 UIKitCore 0x4be9d0 UIApplicationMain + 340 10 REDACTED 0x986c main + 9 (AppDelegate.swift:9) 11 ??? 0x1b49c1e4c (Missing) com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 Foundation 0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 8 Foundation 0xc7c9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 9 UIKitCore 0x41e640 -[UIEventFetcher threadMain] + 420 10 Foundation 0xde718 __NSThread__start__ + 732 11 libsystem_pthread.dylib 0x606c _pthread_start + 136 12 libsystem_pthread.dylib 0x10d8 thread_start + 8 broadcast-ax-notify 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 AXRuntime 0x6570 _AXMIGBroadcastNotification + 464 5 AXRuntime 0x6290 __AXPushNotificationToSystemForBroadcast_block_invoke_2 + 216 6 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 8 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748 9 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380 10 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 11 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 12 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 13 libsystem_pthread.dylib 0x10cc start_wqthread + 8 com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 REDACTED 0x84188 FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194) 5 libsystem_pthread.dylib 0x606c _pthread_start + 136 6 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x9474 select$DARWIN_EXTSN + 8 1 libsystem_kernel.dylib 0x9474 __select + 8 2 CoreFoundation 0xbeb7c __CFSocketManager + 640 3 libsystem_pthread.dylib 0x606c _pthread_start + 136 4 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 CFNetwork 0xfdc90 _CFHostIsDomainTopLevel + 108176 8 Foundation 0xde718 __NSThread__start__ + 732 9 libsystem_pthread.dylib 0x606c _pthread_start + 136 10 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.CoreMotion.MotionThread 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 CoreFoundation 0xc0f04 CFRunLoopRun + 64 8 CoreMotion 0x10210 (Missing UUID e4a6f107b302327ca121c9bebacca8f4) 9 libsystem_pthread.dylib 0x606c _pthread_start + 136 10 libsystem_pthread.dylib 0x10d8 thread_start + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8398635202 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8398635202 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8398635202 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8398635202 JavaScriptCore libpas scavenger 0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228 2 JavaScriptCore 0x155b0a4 scavenger_thread_main + 1512 3 libsystem_pthread.dylib 0x606c _pthread_start + 136 4 libsystem_pthread.dylib 0x10d8 thread_start + 8 BSXPCCnx:com.apple.frontboard.systemappservices (BSCnx:client:com.apple.frontboard.workspace-service) 0 libobjc.A.dylib 0x52c0 getMethodNoSuper_nolock(objc_class*, objc_selector*) + 252 1 libobjc.A.dylib 0x4f98 lookUpImpOrForward + 448 2 libobjc.A.dylib 0x34c4 _objc_msgSend_uncached + 68 3 BaseBoard 0x4efc BSSettingsEncodeSettingObject + 76 4 BaseBoard 0x4e94 __38-[BSSettings encodeWithXPCDictionary:]_block_invoke_4 + 24 5 BaseBoard 0x42d4 BSSettingsEncodeAppendSettingArrayEntry + 120 6 BaseBoard 0x4220 __38-[BSSettings encodeWithXPCDictionary:]_block_invoke_2 + 68 7 BaseBoard 0x2570 BSIntegerMapEnumerateKeysWithBlock + 160 8 BaseBoard 0x2490 -[BSSettings _enumerateSettingsInMap:withBlock:] + 152 9 BaseBoard 0x5774 __38-[BSSettings encodeWithXPCDictionary:]_block_invoke + 212 10 BaseBoard 0x5658 -[BSSettings encodeWithXPCDictionary:] + 208 11 BaseBoard 0x5314 BSSerializeBSXPCEncodableObjectToXPCDictionary + 60 12 BaseBoard 0xed28 ___BSXPCEncodeObjectForKey_block_invoke_3 + 20 13 BaseBoard 0xe9b8 _BSXPCEncodeDictionaryWithKey + 316 14 BaseBoard 0xdf5c _BSXPCEncodeObjectForKey + 1212 15 BaseBoard 0x18eac -[BSSettingsDiff encodeWithBSXPCCoder:] + 48 16 BaseBoard 0x527c ___BSXPCEncodeObjectForKey_block_invoke_2 + 40 17 BaseBoard 0xe9b8 _BSXPCEncodeDictionaryWithKey + 316 18 BaseBoard 0xded8 _BSXPCEncodeObjectForKey + 1080 19 FrontBoardServices 0x81c4 -[FBSSettingsDiff encodeWithXPCDictionary:] + 80 20 BaseBoard 0x5314 BSSerializeBSXPCEncodableObjectToXPCDictionary + 60 21 BaseBoard 0x22004 BSCreateSerializedBSXPCEncodableObject + 68 22 BaseBoard 0x21f54 BSSerializeBSXPCEncodableObjectToXPCDictionaryWithKey + 68 23 FrontBoardServices 0x1adb8 -[FBSSceneParameters encodeWithXPCDictionary:] + 144 24 BaseBoard 0x5314 BSSerializeBSXPCEncodableObjectToXPCDictionary + 60 25 BaseBoard 0xed28 ___BSXPCEncodeObjectForKey_block_invoke_3 + 20 26 BaseBoard 0xe9b8 _BSXPCEncodeDictionaryWithKey + 316 27 BaseBoard 0xdf5c _BSXPCEncodeObjectForKey + 1212 28 FrontBoardServices 0x40188 -[FBSWorkspaceSceneRemnant encodeWithBSXPCCoder:] + 72 29 BaseBoard 0x527c ___BSXPCEncodeObjectForKey_block_invoke_2 + 40 30 BaseBoard 0xe9b8 _BSXPCEncodeDictionaryWithKey + 316 31 BaseBoard 0xded8 _BSXPCEncodeObjectForKey + 1080 32 BaseBoard 0xdce4 _BSXPCEncodeObjectForKey + 580 33 BoardServices 0x7fc4 +[BSXPCServiceConnectionProxy encodeArguments:inArgs:toMessage:forConnection:] + 496 34 BoardServices 0x33e0 __80+[BSXPCServiceConnectionProxy createImplementationOfProtocol:forClass:withName:]_block_invoke + 468 35 FrontBoardServices 0x1ed84 -[FBSWorkspaceScenesClient _queue_sendHandshake] + 648 36 FrontBoardServices 0x4c220 __74-[FBSWorkspaceScenesClient initWithEndpoint:queue:calloutQueue:workspace:]_block_invoke.38 + 956 37 BoardServices 0x2afb8 __31-[BSServiceConnection activate]_block_invoke.183 + 100 38 BoardServices 0x2cd3c __72-[BSXPCServiceConnectionEventHandler connectionInterruptedFromXPCError:]_block_invoke + 192 39 BoardServices 0xc718 BSXPCServiceConnectionExecuteCallOut + 240 40 BoardServices 0x2cb28 -[BSXPCServiceConnectionEventHandler connectionInterruptedFromXPCError:] + 188 41 BoardServices 0x1b204 -[BSXPCServiceConnection _connection_consumeLock_handleError:notYetLocked:] + 956 42 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 43 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 44 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748 45 libdispatch.dylib 0xbf64 _dispatch_lane_invoke + 432 46 libdispatch.dylib 0xb284 _dispatch_lane_serial_drain + 368 47 libdispatch.dylib 0xbf64 _dispatch_lane_invoke + 432 48 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 49 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 50 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 51 libsystem_pthread.dylib 0x10cc start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8398635202 com.apple.SwiftUI.AsyncRenderer 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 Foundation 0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 8 Foundation 0xc7d20 -[NSRunLoop(NSRunLoop) run] + 64 9 SwiftUI 0x42bf18 OUTLINED_FUNCTION_283 + 643420 10 SwiftUI 0x42bc10 OUTLINED_FUNCTION_283 + 642644 11 Foundation 0xde718 __NSThread__start__ + 732 12 libsystem_pthread.dylib 0x606c _pthread_start + 136 13 libsystem_pthread.dylib 0x10d8 thread_start + 8 ```
orendayan commented 4 months ago

Hi @msrutek-paylocity , From the crash log, I don't see Pendo involved. Why do you think it's related to Pendo?

msrutek-paylocity commented 4 months ago

I'm sorry, that was probably unrelated, however this crash log mentions Pendo.

full crash log >>> ``` # Date: Wed Jul 17 2024 08:19:24 GMT+0200 (Central European Summer Time) Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 GraphicsServices 0x11a8 GSEventRunModal + 164 8 UIKitCore 0x40a90c -[UIApplication _run] + 888 9 UIKitCore 0x4be9d0 UIApplicationMain + 340 10 REDACTED 0x986c main + 9 (AppDelegate.swift:9) 11 ??? 0x1cad71e4c (Missing) com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 Foundation 0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 8 Foundation 0xc7c9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 9 UIKitCore 0x41e640 -[UIEventFetcher threadMain] + 420 10 Foundation 0xde718 __NSThread__start__ + 732 11 libsystem_pthread.dylib 0x606c _pthread_start + 136 12 libsystem_pthread.dylib 0x10d8 thread_start + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 REDACTED 0x84188 FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194) 5 libsystem_pthread.dylib 0x606c _pthread_start + 136 6 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x9474 select$DARWIN_EXTSN + 8 1 libsystem_kernel.dylib 0x9474 __select + 8 2 CoreFoundation 0xbeb7c __CFSocketManager + 640 3 libsystem_pthread.dylib 0x606c _pthread_start + 136 4 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x53600 __CFRunLoopRun + 1208 6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 7 CFNetwork 0xfdc90 _CFHostIsDomainTopLevel + 108176 8 Foundation 0xde718 __NSThread__start__ + 732 9 libsystem_pthread.dylib 0x606c _pthread_start + 136 10 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.root.user-initiated-qos 0 libsystem_kernel.dylib 0x7d0c __ulock_wait + 8 1 libdispatch.dylib 0x47c4 _dlock_wait + 56 2 libdispatch.dylib 0x4b90 _dispatch_group_wait_slow + 56 3 Pendo 0x113604 -[PNDAnalyticsMessageManager sendAnalytics:] + 152 4 Pendo 0x113414 -[PNDAnalyticsMessageManager handleBuffer:analytics:] + 736 5 Pendo 0xbb4cc -[PNDDiskBuffer prepareObjectsForProcessing] + 116 6 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 8 libdispatch.dylib 0x15a6c _dispatch_root_queue_drain + 864 9 libdispatch.dylib 0x1609c _dispatch_worker_thread2 + 156 10 libsystem_pthread.dylib 0x48f8 _pthread_wqthread + 228 11 libsystem_pthread.dylib 0x10cc start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 com.apple.runningboardservices.connection.outgoing 0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436 3 libsystem_kernel.dylib 0x4d60 mach_msg + 24 4 libdispatch.dylib 0x1eb18 _dispatch_mach_send_and_wait_for_reply + 544 5 libdispatch.dylib 0x1eeb8 dispatch_mach_send_with_result_and_wait_for_reply + 60 6 libxpc.dylib 0x10ac8 xpc_connection_send_message_with_reply_sync + 264 7 RunningBoardServices 0xe154 -[RBSXPCMessage sendToConnection:error:] + 328 8 RunningBoardServices 0xe714 -[RBSXPCMessage invokeOnConnection:withReturnCollectionClass:entryClass:error:] + 92 9 RunningBoardServices 0x127dc -[RBSXPCMessage invokeOnConnection:withReturnClass:error:] + 32 10 RunningBoardServices 0x21998 __27-[RBSConnection _handshake]_block_invoke + 336 11 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 12 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 13 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748 14 libdispatch.dylib 0xbf64 _dispatch_lane_invoke + 432 15 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 16 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 17 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 18 libsystem_pthread.dylib 0x10cc start_wqthread + 8 com.pendo.PNDWriteReadQueue 0 libsystem_kernel.dylib 0x7d0c __ulock_wait + 8 1 libdispatch.dylib 0x47c4 _dlock_wait + 56 2 libdispatch.dylib 0x4b90 _dispatch_group_wait_slow + 56 3 Pendo 0x65bf8 -[PendoAPI initAgainstServerWithSession:] + 180 4 Pendo 0x1cdb4 -[PNDPrivateAppDelegate enterForegroundNotification] + 704 5 Pendo 0x1bde4 __57-[PNDPrivateAppDelegate observeAppLifeCycleNotifications]_block_invoke_2 + 28 6 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 8 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748 9 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380 10 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 11 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 12 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 13 libsystem_pthread.dylib 0x10cc start_wqthread + 8 JavaScriptCore libpas scavenger 0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228 2 JavaScriptCore 0x155b0a4 scavenger_thread_main + 1512 3 libsystem_pthread.dylib 0x606c _pthread_start + 136 4 libsystem_pthread.dylib 0x10d8 thread_start + 8 com.apple.root.default-qos.overcommit 0 WebKit 0xd0dbc + 20 1 libxpc.dylib 0x11cbc _xpc_connection_call_event_handler + 144 2 libxpc.dylib 0xe2cc do_mach_notify_port_destroyed + 272 3 libxpc.dylib 0x36cf8 _Xmach_notify_port_destroyed + 84 4 libxpc.dylib 0x36eb0 notify_server + 96 5 libxpc.dylib 0x1244c _xpc_connection_pass2mig + 172 6 libxpc.dylib 0x13778 _xpc_connection_mach_event + 1004 7 libdispatch.dylib 0x3e94 _dispatch_client_callout4 + 20 8 libdispatch.dylib 0x20000 _dispatch_mach_msg_invoke + 468 9 libdispatch.dylib 0xb284 _dispatch_lane_serial_drain + 368 10 libdispatch.dylib 0x20d50 _dispatch_mach_invoke + 444 11 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 12 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 13 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 14 libsystem_pthread.dylib 0x10cc start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 pendo.analytics.retryQueue 0 libsystem_kernel.dylib 0x7d0c __ulock_wait + 8 1 libdispatch.dylib 0x47c4 _dlock_wait + 56 2 libdispatch.dylib 0x4b90 _dispatch_group_wait_slow + 56 3 Pendo 0x113604 -[PNDAnalyticsMessageManager sendAnalytics:] + 152 4 Pendo 0x113414 -[PNDAnalyticsMessageManager handleBuffer:analytics:] + 736 5 Pendo 0xbb4cc -[PNDDiskBuffer prepareObjectsForProcessing] + 116 6 Pendo 0x113b40 __44-[PNDAnalyticsMessageManager sendAnalytics:]_block_invoke_2 + 36 7 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 8 libdispatch.dylib 0x72d8 _dispatch_continuation_pop + 600 9 libdispatch.dylib 0x1b1c8 _dispatch_source_latch_and_call + 420 10 libdispatch.dylib 0x19d8c _dispatch_source_invoke + 832 11 libdispatch.dylib 0xb284 _dispatch_lane_serial_drain + 368 12 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380 13 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288 14 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404 15 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288 16 libsystem_pthread.dylib 0x10cc start_wqthread + 8 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 Thread 0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8512389314 ```

The question remains the same - Is there anything long-running that might cause the system to perform SIGTERM?

cc @orendayan @MaximShnirman

Thanks!

TehilaTaub commented 3 months ago

Hi @msrutek-paylocity Do you know in which scenario this is happening? You mentioned you are calling trackEvent (Pendo API) when app is entering background but in the stack trace we can see that app has entered foreground. Are you calling trackEvent Pendo API in case of entering foreground also?

TehilaTaub commented 2 weeks ago

Hi @msrutek-paylocity! We've made significant memory management improvements in version 3.4.3 that should help with crashes like this. Please upgrade to 3.4.3 and if you notice similar issues, please open a new ticket with the crash logs. Closing this one.