EXC_CORPSE_NOTIFY crash on STWebpageController loadView

Hi All,

Working on one browsing application for iOS. While browsing and closing tabs, application gets crash on few of client devices. In console log we can see following details:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Fatal error occured Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 87053 named com.apple.ScreenTime.ScreenTimeWebExtension.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo=

In crash file, following can be seen.

Incident Identifier: 68DF3B97-3DD2-4E55-B350-B424CEF955F8
Hardware Model:      iPhone11,6
Process:             Browser [86470]
Path:                /private/var/containers/Bundle/Application/B1B7A7F8-3CEC-4952-97D1-D2A5C1203684/Browser.app/Browser
Identifier:          jp.co.rakuten.mobile.browser
Version:             1.4.3.0 (1.0.0)
AppStoreTools:       12E506
AppVariant:          1:iPhone11,6:14
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           jp.co.rakuten.mobile.browser [642]


Date/Time:           2021-09-23 20:38:41.1239 +0900
Launch Time:         2021-09-23 20:35:53.2268 +0900
OS Version:          iPhone OS 14.7.1 (18G82)
Release Type:        User
Baseband Version:    3.04.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x194bfe708 __exceptionPreprocess + 220 (NSException.m:199)
1   libobjc.A.dylib               	0x1a97087a8 objc_exception_throw + 60 (objc-exception.mm:565)
2   CoreFoundation                	0x194b003b8 +[NSException raise:format:arguments:] + 100 (NSException.m:146)
3   Foundation                    	0x195ed64c4 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 132 (NSException.m:231)
4   ScreenTime                    	0x1c960c544 __31-[STWebpageController loadView]_block_invoke + 612 (STWebpageController.m:104)
5   UIKitCore                     	0x196feb160 __146-[NSExtension(UIViewControllerAdditions) _instantiateViewControllerWithInputItems:asAccessory:traitCollection:listenerEndpoint:connectionHandler:]_block_invoke_3 + 284 (NSExtension_UIKitAdditions.m:94)
6   libdispatch.dylib             	0x1947e9a84 _dispatch_call_block_and_release + 32 (init.c:1466)
7   libdispatch.dylib             	0x1947eb81c _dispatch_client_callout + 20 (object.m:559)
8   libdispatch.dylib             	0x1947f9c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557)
9   CoreFoundation                	0x194b78340 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1790)
10  CoreFoundation                	0x194b72218 __CFRunLoopRun + 2524 (CFRunLoop.c:3118)
11  CoreFoundation                	0x194b71308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
12  GraphicsServices              	0x1ac1f4734 GSEventRunModal + 164 (GSEvent.c:2259)
13  UIKitCore                     	0x1975ef75c -[UIApplication _run] + 1072 (UIApplication.m:3269)
14  UIKitCore                     	0x1975f4fcc UIApplicationMain + 168 (UIApplication.m:4740)
15  Browser                       	0x102eb4768 (anonymous namespace)::RunUIApplicationMain(int, char**) + 144 (chrome_exe_main.mm:65)
16  Browser                       	0x102eb4768 main + 744 (chrome_exe_main.mm:98)
17  libdyld.dylib                 	0x19482dcf8 start + 4

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001c2de9334 __pthread_kill + 8
1   libsystem_pthread.dylib       	0x00000001e086da9c pthread_kill + 272 (pthread.c:1582)
2   libsystem_c.dylib             	0x000000019dfc5b84 abort + 124 (abort.c:118)
3   libc++abi.dylib               	0x00000001a97e9bb8 abort_message + 132 (abort_message.cpp:78)
4   libc++abi.dylib               	0x00000001a97daec8 demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67)
5   libobjc.A.dylib               	0x00000001a96e705c _objc_terminate() + 144 (objc-exception.mm:701)
6   libc++abi.dylib               	0x00000001a97e8fa0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7   libc++abi.dylib               	0x00000001a97e8f2c std::terminate() + 48 (cxa_handlers.cpp:88)
8   libdispatch.dylib             	0x00000001947eb830 _dispatch_client_callout + 40 (object.m:562)
9   libdispatch.dylib             	0x00000001947f9c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557)
10  CoreFoundation                	0x0000000194b78340 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1790)
11  CoreFoundation                	0x0000000194b72218 __CFRunLoopRun + 2524 (CFRunLoop.c:3118)
12  CoreFoundation                	0x0000000194b71308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
13  GraphicsServices              	0x00000001ac1f4734 GSEventRunModal + 164 (GSEvent.c:2259)
14  UIKitCore                     	0x00000001975ef75c -[UIApplication _run] + 1072 (UIApplication.m:3269)
15  UIKitCore                     	0x00000001975f4fcc UIApplicationMain + 168 (UIApplication.m:4740)
16  Browser                       	0x0000000102eb4768 (anonymous namespace)::RunUIApplicationMain(int, char**) + 144 (chrome_exe_main.mm:65)
17  Browser                       	0x0000000102eb4768 main + 744 (chrome_exe_main.mm:98)
18  libdyld.dylib                 	0x000000019482dcf8 start + 4

Since it is not happening in run time debugger attached mode, so not able to find actual reason behind this crash, any help would be appreciated.

EXC_CORPSE_NOTIFY crash on STWebpageController loadView
 
 
Q