WKWebView causes our application to go unresponsive

Our iOS Application goes unResponsive, when loading embedded WebComponent in WKWebView , that renders on its internal HTML5 Canvas.

The issues manifests in the following 2 scenarios, in iOS 15 and its subsequent releases ( such as 15.1, 15.4, and also in the latest 15.4.1 ). This issue was not seen in iOS Releases prior to 15 ( such as iOS 14.4 )

  1. The App goes non-responsive, when we load at least 2 WKWebView, which call rendering on its HTML5 Canvas.
  2. The App is slow and goes non-responsive, when the orientation changes whilst the WKWebView is in the process of being rendered.

When the App goes in this state, we see the following message in the debug console.

`2022-04-25 16:43:29.304355+0530 LMAX ALL[32857:7260449] [Process] 0x1522f0600 - [PID=32865] WebProcessProxy::requestTermination: reason=7
2022-04-25 16:43:29.305302+0530 LMAX ALL[32857:7260449] [Process] 0x1522f0600 - [PID=32865] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=7
2022-04-25 16:43:29.310933+0530 LMAX ALL[32857:7260449] [Process] 0x7fcf4b05b220 - [pageProxyID=5, webPageID=6, PID=32865] WebPageProxy::processDidTerminate: (pid 32865), reason 7
2022-04-25 16:43:29.324730+0530 LMAX ALL[32857:7260449] [Loading] 0x7fcf4b05b220 - [pageProxyID=5, webPageID=6, PID=32865] WebPageProxy::dispatchProcessDidTerminate: reason=7
2022-04-25 16:43:29.345071+0530 LMAX ALL[32857:7263902] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-04-25 16:43:29.345378+0530 LMAX ALL[32857:7263902] [ProcessSuspension] 0x1522fed20 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=32865, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-04-25 16:43:29.375449+0530 LMAX ALL[32857:7263902] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-04-25 16:43:29.375583+0530 LMAX ALL[32857:7263902] [ProcessSuspension] 0x1522fede0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=32865, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist} `

I'm running into this same problem on iOS 15.4.1. It seems my WKWebView is crashing and becoming unresponsive. Did you find a fix?

WKWebView causes our application to go unresponsive
 
 
Q