I've got some crash reports which aren't easy to understand.
All the crashes happened when the application is in the background with multiple notifications received even without clicking on the notifications.
Crashes are related to the autorelease pool but don’t know the exact root cause.
This is the stack:
OS Version: iPhone OS 14.1 (18A8395)
Release Type: User
Baseband Version: 2.01.05
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020
VM Region Info: 0x20 is not in any region. Bytes before following region: 4306190304
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START--
__TEXT 100ab4000-100bd8000 [ 1168K] r-x/r-x SM=COW ...rexendoMobile
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1010]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001bac3e160 objc_release + 16 (objc-runtime-new.h:1585)
1 libobjc.A.dylib 0x00000001bac3f81c AutoreleasePoolPage::releaseUntil(objc_object**) + 204 (NSObject.mm:944)
2 libobjc.A.dylib 0x00000001bac3f6e8 objc_autoreleasePoolPop + 212 (NSObject.mm:1211)
3 CoreFoundation 0x00000001a6b3eae4 _CFAutoreleasePoolPop + 32 (NSObject.m:798)
4 CoreFoundation 0x00000001a6aae480 __CFRunLoopPerCalloutARPEnd + 48 (CFRunLoop.c:762)
5 CoreFoundation 0x00000001a6aa93f8 __CFRunLoopRun + 2576 (CFRunLoop.c:3120)
6 CoreFoundation 0x00000001a6aa84bc CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
7 Foundation 0x00000001a7d29e30 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374)
8 CrexendoMobile 0x0000000100bca5e4 -[MobilePortBinding performSynchronousOperation:] + 268 (MobileService.m:17547)
9 CrexendoMobile 0x0000000100bcadf4 -[MobilePortBinding deviceExistsUsingParameters:] + 116 (MobileService.m:17638)
10 CrexendoMobile 0x0000000100d7175c -[MobileServiceHelper deviceExists:error:] + 596 (MobileServiceHelper.m:612)
11 CrexendoMobile 0x0000000100b43c34 -[CrexendoMobileAppDelegate applicationDidBecomeActiveBackgroundTasks:] + 1244 (CrexendoMobileAppDelegate.m:872)
12 Foundation 0x00000001a7e9424c __NSThreadPerformPerform + 188 (NSThread.m:807)
13 CoreFoundation 0x00000001a6aaf81c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1967)
14 CoreFoundation 0x00000001a6aaf718 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011)
15 CoreFoundation 0x00000001a6aaea94 __CFRunLoopDoSources0 + 376 (CFRunLoop.c:2056)
16 CoreFoundation 0x00000001a6aa8d20 __CFRunLoopRun + 824 (CFRunLoop.c:2925)
17 CoreFoundation 0x00000001a6aa84bc CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
18 GraphicsServices 0x00000001bd5ba820 GSEventRunModal + 164 (GSEvent.c:2259)
19 UIKitCore 0x00000001a9455164 -[UIApplication _run] + 1072 (UIApplication.m:3270)
20 UIKitCore 0x00000001a945a840 UIApplicationMain + 168 (UIApplication.m:4739)
21 CrexendoMobile 0x0000000100bdb60c main + 1209868 (main.m:21)
22 libdyld.dylib 0x00000001a676fe40 start + 4