blink icon indicating copy to clipboard operation
blink copied to clipboard

On macOS, WKWebView frequent refreshes end up on blank screen

Open carloscabanero opened this issue 3 years ago • 1 comments

Describe the bug

When running Blink under macOS, the terminal will start to automatically refresh. After a few refreshes (and according to the debug information, there is a limit), we will end up on a blank view.

The expected behavior would be not to crash. And in the worst case scenario, to just keep restarting with no limit.

2022-07-11 16:18:14.464334-0400 Blink[58990:8335838] [Process] 0x11a000640 - [PID=59033] WebProcessProxy::didClose: (web process 0 crash)
2022-07-11 16:18:14.464459-0400 Blink[58990:8335838] [Process] 0x11a000640 - [PID=59033] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
2022-07-11 16:18:14.464591-0400 Blink[58990:8335838] [ProcessSuspension] 0x117004c00 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process because PID 0 is invalid
2022-07-11 16:18:14.464702-0400 Blink[58990:8353410] [ProcessSuspension] 0x117004c00 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=0, error: (null)
2022-07-11 16:18:14.464822-0400 Blink[58990:8335838] [Process] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59033] WebPageProxy::processDidTerminate: (pid 59033), reason 4
2022-07-11 16:18:14.470022-0400 Blink[58990:8335838] [Loading] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59033] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
2022-07-11 16:18:14.472134-0400 Blink[58990:8353410] [assertion] Error acquiring assertion: 
2022-07-11 16:18:14.472250-0400 Blink[58990:8353410] [ProcessSuspension] 0x117004c60 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=59033, 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-07-11 16:18:14.477405-0400 Blink[58990:8335838] [UIFocus] Failed to update focus with context . No additional info available.
2022-07-11 16:18:16.508658-0400 Blink[58990:8335838] [UIFocus] Failed to update focus with context . No additional info available.
2022-07-11 16:18:44.465154-0400 Blink[58990:8335838] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2022-07-11 16:19:14.778651-0400 Blink[58990:8335838] [Process] 0x11704c340 - NetworkProcessProxy::didClose (Network Process 0 crash)
2022-07-11 16:19:17.797456-0400 Blink[58990:8335838] [Process] 0x11a001750 - [PID=59119] WebProcessProxy::didClose: (web process 59119 crash)
2022-07-11 16:19:17.797594-0400 Blink[58990:8335838] [Process] 0x11a001750 - [PID=59119] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
2022-07-11 16:19:17.797904-0400 Blink[58990:8335838] [Process] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59119] WebPageProxy::processDidTerminate: (pid 59119), reason 4
2022-07-11 16:19:17.802889-0400 Blink[58990:8335838] [Loading] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59119] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
2022-07-11 16:19:17.804543-0400 Blink[58990:8353961] [assertion] Error acquiring assertion: 
2022-07-11 16:19:17.805012-0400 Blink[58990:8353961] [ProcessSuspension] 0x117004180 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=59119, 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-07-11 16:19:17.809501-0400 Blink[58990:8353961] [assertion] Error acquiring assertion: 
2022-07-11 16:19:17.809597-0400 Blink[58990:8353961] [ProcessSuspension] 0x117004b40 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=59119, 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-07-11 16:19:17.881652-0400 Blink[58990:8335838] [UIFocus] Failed to update focus with context . No additional info available.
2022-07-11 16:19:19.910547-0400 Blink[58990:8335838] [UIFocus] Failed to update focus with context . No additional info available.
2022-07-11 16:19:20.707092-0400 Blink[58990:8335838] [UIFocus] Failed to update focus with context . No additional info available.
2022-07-11 16:19:36.908306-0400 Blink[58990:8335838] [Process] 0x11a000e70 - [PID=59137] WebProcessProxy::didClose: (web process 59137 crash)
2022-07-11 16:19:36.908432-0400 Blink[58990:8335838] [Process] 0x11a000e70 - [PID=59137] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4
2022-07-11 16:19:36.908693-0400 Blink[58990:8335838] [Process] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59137] WebPageProxy::processDidTerminate: (pid 59137), reason 4
2022-07-11 16:19:36.911997-0400 Blink[58990:8335838] [Loading] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59137] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
2022-07-11 16:19:36.912070-0400 Blink[58990:8335838] [Process] 0x14a074a18 - [pageProxyID=6, webPageID=7, PID=59137] WebPageProxy::tryReloadAfterProcessTermination: process crashed and the client did not handle it, not reloading the page because we reached the maximum number of attempts
2022-07-11 16:19:36.913235-0400 Blink[58990:8354112] [assertion] Error acquiring assertion: 
2022-07-11 16:19:36.917310-0400 Blink[58990:8354112] [ProcessSuspension] 0x117004120 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=59137, 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-07-11 16:19:38.592216-0400 Blink[58990:8354112] [assertion] Error acquiring assertion: 
2022-07-11 16:19:38.592303-0400 Blink[58990:8354112] [ProcessSuspension] 0x117004240 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=59137, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-07-11 16:19:38.593710-0400 Blink[58990:8354112] [assertion] Error acquiring assertion: 
2022-07-11 16:19:38.593791-0400 Blink[58990:8354112] [ProcessSuspension] 0x117000180 - ProcessAssertion: Failed to acquire RBS assertion 'GPUProcess Background Assertion' for process with PID=59141, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-07-11 16:19:38.594215-0400 Blink[58990:8354112] [assertion] Error acquiring assertion: 
2022-07-11 16:19:38.594266-0400 Blink[58990:8354112] [ProcessSuspension] 0x117004300 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=59137, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-07-11 16:19:47.798750-0400 Blink[58990:8335838] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
√√√2022-07-11 16:20:06.909596-0400 Blink[58990:8335838] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

carloscabanero avatar Jul 11 '22 20:07 carloscabanero

I think blink 14 has similar behavior. I'm not sure if that's memory resource related. From my observation, these kinds of refreshes happen frequently when system's free memory is low

larme avatar Jul 12 '22 08:07 larme

#1247

carloscabanero avatar Oct 01 '23 21:10 carloscabanero