fix: Update Chrome renderer crash to be more terse and up to date (#26597)

This commit is contained in:
Jennifer Shehane
2023-05-01 15:14:11 -04:00
committed by GitHub
parent f46acffc9c
commit 4c45e2eb34
4 changed files with 26 additions and 57 deletions

View File

@@ -6,6 +6,7 @@ _Released 05/09/2023 (PENDING)_
**Bugfixes:**
- Fixed an issue in Electron where devtools gets out of sync with the DOM occasionally. Addresses [#15932](https://github.com/cypress-io/cypress/issues/15932).
- Updated the Chromium renderer process crash message to be more terse. Addressed in [#26597](https://github.com/cypress-io/cypress/pull/26597).
## 12.11.0

View File

@@ -36,22 +36,14 @@
</head>
<body><pre><span style="color:#e05561">We detected that the Chromium Renderer process just crashed.<span style="color:#e6e6e6">
<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">This is the equivalent to seeing the &#39;sad face&#39; when Chrome dies.<span style="color:#e6e6e6">
<span style="color:#e05561">This can happen for a number of different reasons.<span style="color:#e6e6e6">
<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">This can happen for a number of different reasons:<span style="color:#e6e6e6">
<span style="color:#e05561">If you&#39;re running lots of tests on a memory intense application.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try increasing the CPU/memory on the machine you&#39;re running on.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try enabling <span style="color:#e5e510">experimentalMemoryManagement<span style="color:#e05561"> in your config file.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try lowering <span style="color:#e5e510">numTestsKeptInMemory<span style="color:#e05561"> in your config file during &#39;cypress open&#39;.<span style="color:#e6e6e6">
<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">- You wrote an endless loop and you must fix your own code<span style="color:#e6e6e6">
<span style="color:#e05561">- You are running Docker (there is an easy fix for this: see link below)<span style="color:#e6e6e6">
<span style="color:#e05561">- You are running lots of tests on a memory intense application.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try enabling <span style="color:#e5e510">experimentalMemoryManagement<span style="color:#e05561"> in your config file.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try lowering <span style="color:#e5e510">numTestsKeptInMemory<span style="color:#e05561"> in your config file.<span style="color:#e6e6e6">
<span style="color:#e05561">- You are running in a memory starved VM environment.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try enabling <span style="color:#e5e510">experimentalMemoryManagement<span style="color:#e05561"> in your config file.<span style="color:#e6e6e6">
<span style="color:#e05561"> - Try lowering <span style="color:#e5e510">numTestsKeptInMemory<span style="color:#e05561"> in your config file.<span style="color:#e6e6e6">
<span style="color:#e05561">- There are problems with your GPU / GPU drivers<span style="color:#e6e6e6">
<span style="color:#e05561">- There are browser bugs in Chromium<span style="color:#e6e6e6">
<span style="color:#e05561">You can learn more here:<span style="color:#e6e6e6">
<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">You can learn more including how to fix Docker here:<span style="color:#e6e6e6">
<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">https://on.cypress.io/renderer-process-crashed<span style="color:#e6e6e6"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
<span style="color:#e05561">https://on.cypress.io/renderer-process-crashed<span style="color:#e6e6e6"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
</pre></body></html>

View File

@@ -620,22 +620,14 @@ export const AllCypressErrors = {
return errTemplate`\
We detected that the Chromium Renderer process just crashed.
This is the equivalent to seeing the 'sad face' when Chrome dies.
This can happen for a number of different reasons.
This can happen for a number of different reasons:
If you're running lots of tests on a memory intense application.
- Try increasing the CPU/memory on the machine you're running on.
- Try enabling ${fmt.highlight('experimentalMemoryManagement')} in your config file.
- Try lowering ${fmt.highlight('numTestsKeptInMemory')} in your config file during 'cypress open'.
- You wrote an endless loop and you must fix your own code
- You are running Docker (there is an easy fix for this: see link below)
- You are running lots of tests on a memory intense application.
- Try enabling ${fmt.highlight('experimentalMemoryManagement')} in your config file.
- Try lowering ${fmt.highlight('numTestsKeptInMemory')} in your config file.
- You are running in a memory starved VM environment.
- Try enabling ${fmt.highlight('experimentalMemoryManagement')} in your config file.
- Try lowering ${fmt.highlight('numTestsKeptInMemory')} in your config file.
- There are problems with your GPU / GPU drivers
- There are browser bugs in Chromium
You can learn more including how to fix Docker here:
You can learn more here:
https://on.cypress.io/renderer-process-crashed`
},

View File

@@ -20,22 +20,14 @@ exports['Browser Crash Handling / when the tab crashes in chrome / fails'] = `
We detected that the Chromium Renderer process just crashed.
This is the equivalent to seeing the 'sad face' when Chrome dies.
This can happen for a number of different reasons.
This can happen for a number of different reasons:
If you're running lots of tests on a memory intense application.
- Try increasing the CPU/memory on the machine you're running on.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file during 'cypress open'.
- You wrote an endless loop and you must fix your own code
- You are running Docker (there is an easy fix for this: see link below)
- You are running lots of tests on a memory intense application.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file.
- You are running in a memory starved VM environment.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file.
- There are problems with your GPU / GPU drivers
- There are browser bugs in Chromium
You can learn more including how to fix Docker here:
You can learn more here:
https://on.cypress.io/renderer-process-crashed
@@ -117,22 +109,14 @@ exports['Browser Crash Handling / when the tab crashes in electron / fails'] = `
We detected that the Chromium Renderer process just crashed.
This is the equivalent to seeing the 'sad face' when Chrome dies.
This can happen for a number of different reasons.
This can happen for a number of different reasons:
If you're running lots of tests on a memory intense application.
- Try increasing the CPU/memory on the machine you're running on.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file during 'cypress open'.
- You wrote an endless loop and you must fix your own code
- You are running Docker (there is an easy fix for this: see link below)
- You are running lots of tests on a memory intense application.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file.
- You are running in a memory starved VM environment.
- Try enabling experimentalMemoryManagement in your config file.
- Try lowering numTestsKeptInMemory in your config file.
- There are problems with your GPU / GPU drivers
- There are browser bugs in Chromium
You can learn more including how to fix Docker here:
You can learn more here:
https://on.cypress.io/renderer-process-crashed