惠州市建设厅网站,邓州建网站,如何修改dns 快速使用境外网站,北京家装设计师排名一、问题场景
项目业务中某个前端页面中使用了多个echart 组件来显示历史数据#xff0c; 在反复切换到这个页面后#xff0c;会出现白屏问题。 二、问题分析 0x116000ab0 - GPUProcessProxy::didClose: 0x116000ab0 - GPUProcessProxy::gpuProcessExited: reasonCrash 0x11…一、问题场景
项目业务中某个前端页面中使用了多个echart 组件来显示历史数据 在反复切换到这个页面后会出现白屏问题。 二、问题分析 0x116000ab0 - GPUProcessProxy::didClose: 0x116000ab0 - GPUProcessProxy::gpuProcessExited: reasonCrash 0x1150180c0 - [PID3342] WebProcessProxy::gpuProcessExited: reasonCrash Error acquiring assertion: Error DomainRBSServiceErrorDomain Code1 ((target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.webcontent)) UserInfo{NSLocalizedFailureReason((target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesnt have entitlement com.apple.developer.web-browser-engine.webcontent))} 0x1150243c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion GPUProcess Background Assertion for process with PID3343, error: (null) Failed to terminate process: Error Domaincom.apple.extensionKit.errorDomain Code18 (null) UserInfo{NSUnderlyingError0x30128cb40 {Error DomainRBSRequestErrorDomain Code3 No such process found UserInfo{NSLocalizedFailureReasonNo such process found}}} Failed to terminate process: Error Domaincom.apple.extensionKit.errorDomain Code18 (null) UserInfo{NSUnderlyingError0x30128ec40 {Error DomainRBSRequestErrorDomain Code3 No such process found UserInfo{NSLocalizedFailureReasonNo such process found}}} 在切换页面的过程中看到如上日志感觉是跟图形渲染相关的进程已经出问题了
在出现白屏的时候是如下日志 0x116000ab0 - GPUProcessProxy::didClose: 0x116000ab0 - GPUProcessProxy::gpuProcessExited: reasonCrash 0x1150180c0 - [PID3342] WebProcessProxy::gpuProcessExited: reasonCrash 0x104d70408 - WebProcessPool::gpuProcessDidExit: GPU Process has crashed more than 2 times in the last 30 seconds, terminating all WebProcesses 0x104d70408 - WebProcessPool::terminateAllWebContentProcesses Error acquiring assertion: Error DomainRBSAssertionErrorDomain Code2 Specified target process does not exist UserInfo{NSLocalizedFailureReasonSpecified target process does not exist} 0x1150180c0 - [PID0] WebProcessProxy::didClose: (web process 0 crash) 0x1150180c0 - [PID0] WebProcessProxy::processDidTerminateOrFailedToLaunch: reasonCrash 0x1150243c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion GPUProcess Background Assertion for process with PID3361, error: (null) Error acquiring assertion: Error DomainRBSAssertionErrorDomain Code2 Specified target process does not exist UserInfo{NSLocalizedFailureReasonSpecified target process does not exist} 0x115024600 - ProcessAssertion::acquireSync Failed to acquire RBS assertion XPCConnectionTerminationWatchdog for process with PID0, error: (null) 0x104d6c018 - [pageProxyID10, webPageID11, PID0] WebPageProxy::processDidTerminate: (pid 0), reasonCrash 0x104d6c018 - [pageProxyID10, webPageID11, PID0] WebPageProxy::dispatchProcessDidTerminate: reasonCrash webViewWebContentProcessDidTerminate 从日志中可以看出webview 已经调用 webViewWebContentProcessDidTerminate 这个方法进程都终止了。 在网上搜索了各种白屏问题例如
深入理解WKWebView白屏_webviewwebcontentprocessdidterminate-CSDN博客 App WebView白屏检测及解决总结包括Android 和 iOS_ios webview加载白屏-CSDN博客
感觉最终的处理方式也只有reload 了 //进程被终止时调用 - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView{ [webView reload]; NSLog(webViewWebContentProcessDidTerminate); } 不知道是不是苹果Safari 和 Chrome 里面的机制有差别在电脑上运行同样的H5页面切换明显感觉到Safari 要慢一下感觉卡一些。