forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GPU process is terminated during debugging
https://bugs.webkit.org/show_bug.cgi?id=277731 rdar://133372529 Reviewed by Mike Wyrzykowski. GPU process would not be debuggable due to WCP timing out a send or wait to GPUP. This would cause following distinct problems - WCP would ask UI to terminate GPUP - Even if GPUP was not terminated, the WCP would already be in undefined state due to timing out a send or a wait. Add a setting ChildProcessDebuggabilityEnabled which should be set when the developer is intending to stop the GPU process in debugger. The added implementation will set stream IPC connection timeout to infinity. Later commits will modify other, less frequent normal IPC sendSync and wait timeouts. Run with: lldb -w -n GPU.Development -o c run-webkit-tests --internal-feature=ChildProcessDebuggabilityEnabled --no-timeout test.html run-minibrowser Set "Internal -> Child Process Debuggability" and restart * Source/WTF/Scripts/GeneratePreferences.rb: * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: (WebKit::RemoteGraphicsContextGLProxy::create): * Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp: (WebKit::RemoteRenderingBackendProxy::ensureGPUProcessConnection): * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp: (WebKit::RemoteGPUProxy::create): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): * Source/WebKit/WebProcess/WebProcess.cpp: (WebKit::WebProcess::gpuProcessTimeoutDuration const): (WebKit::WebProcess::setGPUProcessDebuggabilityEnabled): * Source/WebKit/WebProcess/WebProcess.h: Canonical link: https://commits.webkit.org/282280@main
- Loading branch information
1 parent
0e9bbd9
commit f6f4d72
Showing
8 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters