How to stop crashes due to notification service extension termination

Incident Identifier: 3CCD77D8-3FC0-4EFB-A5C8-2EEFDD8D836B

CrashReporter Key: bce151bebb1e3147b7af1b5ab680ed69425898b9

Hardware Model: iPhone9,3

Process: RichNotificationWithButton [44236]

Path: /private/var/containers/Bundle/Application/7E2F7C90-335B-4961-A989-D2F94F371726/Purplle.app/PlugIns/RichNotificationWithButton.appex/RichNotificationWithButton

Identifier: com.manashlifestyle.purplle.RichNotificationExtensionButton

Version: 161 (2.1.37)

AppVariant: 1:iPhone9,3:12

Code Type: ARM-64 (Native)

Role: Unspecified

Parent Process: launchd [1]

Coalition: com.manashlifestyle.purplle.RichNotificationExtensionButton [3196]





Date/Time: 2018-11-28 14:08:13.1217 +0530

Launch Time: 2018-11-28 04:45:16.2179 +0530

OS Version: iPhone OS 12.1 (16B92)

Baseband Version: 3.01.06

Report Version: 104



Exception Type: EXC_CRASH (SIGKILL)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace ASSERTIOND, Code 0xdead10cc

Triggered by Thread: 0



Thread 0 name:

Thread 0 Crashed:

0 libsystem_kernel.dylib 0x00000001be4cfed0 mach_msg_trap + 8

1 libsystem_kernel.dylib 0x00000001be4cf3a8 mach_msg + 72 (mach_msg.c:103)

2 CoreFoundation 0x00000001be8d3bc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)

3 CoreFoundation 0x00000001be8cea60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)

4 CoreFoundation 0x00000001be8ce1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)

5 Foundation 0x00000001bf2c3404 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)

6 Foundation 0x00000001bf2fedf4 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)

7 libxpc.dylib 0x00000001be5a0070 _xpc_objc_main + 516 (main.m:173)

8 libxpc.dylib 0x00000001be5a2a30 xpc_main + 180 (init.c:1471)

9 Foundation 0x00000001bf300db0 -[NSXPCListener resume] + 180 (NSXPCListener.m:253)

10 PlugInKit 0x00000001c451f498 -[PKService run] + 132 (PKService.m:100)

11 PlugInKit 0x00000001c451f2c4 +[PKService main] + 192 (PKService.m:52)

12 PlugInKit 0x00000001c451f848 +[PKService _defaultRun:arguments:] + 20 (PKService.m:148)

13 Foundation 0x00000001bf4e86bc NSExtensionMain + 64 (NSExtensionMain.m:23)

14 libdyld.dylib 0x00000001be38ebb4 start + 4

No experience with app extensions personally. But from the documentation at https://developer.apple.com/library/archive/technotes/tn2151/_index.html


“The exception code

0xdead10cc
indicates that an application has been terminated by the OS because it held on to a file lock or sqlite database lock during suspension. If your application is performing operations on a locked file or sqlite database at suspension time, it must request additional background execution time to complete those operations and relinquish the lock before suspending.“

Can you explain me how should i handle this exception, am new in iOS development.

How to stop crashes due to notification service extension termination
 
 
Q