Skip to content

Commit 113585d

Browse files
authored
Code intergrity diagnostics (#3729)
1 parent e7cbc9b commit 113585d

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

diagnostics/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ This folder contains directions for gathering various detailed diagnostics/logs
55
- [ETW Trace](etw.md): Event Tracing for Windows (ETW) traces include detailed events on system state and the activities WV2 was doing before and when an issue occurs.
66
- [Installer Logs](install.md): Installer logs include information about any errors that WV2's installer/updater hit when trying to install or update the WV2 runtime.
77
- [GPU Info](gpu.md): GPU logs include details on the user's GPU and any potential graphics or rendering issues.
8-
- [Network Logs](network.md): Network logs include the network requests, responses, and details on any errors when loading files.
8+
- [Network Logs](network.md): Network logs include the network requests, responses, and details on any errors when loading files.
9+
- [Code Integrity](code_integrity.md): how to root cause STATUS_INVALID_IMAGE_HASH errors.

diagnostics/code_integrity.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Code Integrity in WebView2
2+
3+
## Why it is important
4+
Code integrity is a feature of Windows that verifies the authenticity and integrity of the code that runs on your system. It helps protect your system from malware, tampering, and unauthorized changes. Code integrity checks the digital signatures of the files that are loaded into memory, and prevents any file that does not have a valid signature from running in webview2.
5+
6+
## Symptoms
7+
Child process failed with kind COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED
8+
and exit code -1073740760 or STATUS_INVALID_IMAGE_HASH.
9+
10+
Users may see error page in the WebView2:
11+
12+
![Compatibility problem](compatibility_problem.png)
13+
14+
## Identify the dll
15+
16+
**Compatibility problem** web page may show the culprit file otherwise use Event Viewer.
17+
18+
Open Event Viewer by typing eventvwr in the search box on the taskbar and selecting the app.
19+
20+
- In the left pane, expand Windows Logs and click on System.
21+
- In the right pane, click on Filter Current Log.
22+
- In the Filter tab, under Event sources, select Microsoft-Windows-CodeIntegrity and click on OK.
23+
- You will see a list of events related to code integrity – search for the ones with msedgewebview2.exe process.
24+
- The file name and path of the file that caused the code integrity violation are shown in the message.
25+
26+
27+
28+
41.2 KB
Loading

0 commit comments

Comments
 (0)