Chrome crashes during run
See original GitHub issueI’m attempting to investigate CLS values in Lighthouse v6 Beta CLI, and the runner will fairly consistently hang and/or crash ~90% of the time on Etsy.com.
Provide the steps to reproduce
- Run LH on https://www.etsy.com --only-categories=performance
What is the current behavior?
I’m seeing two variations of similar behavior that seem to be related to the same underlying issue:
- The runner will open a new Chrome instance, the audit runs, the runner starts the process to detach from the browser window, but the window stays open and the runner hangs after the following lines are output:
method => browser:verbose Audits.getEncodedResponse {"requestId":"9493.4","encoding":"jpeg","quality":0.92,"sizeOnly":true} +0ms
method <= browser OK:verbose Audits.getEncodedResponse {"originalSize":233050,"encodedSize":248806} +25ms
method => browser:verbose Audits.getEncodedResponse {"requestId":"9493.4","encoding":"webp","quality":0.85,"sizeOnly":true} +1ms
<= event:verbose Target.detachedFromTarget {"sessionId":"18E03AAD97E889344ECF19B721CC17CC","targetId":"2CADCD0FEF2F0AA2AD41781C524ED691"} +87ms
<= event:verbose Target.detachedFromTarget {"sessionId":"0A4CF7568E21F504C30CE089DD3B9B31","targetId":"745B52982ABD67AAF5889ECC014BA8BD"} +0ms
<= event:verbose Inspector.detached {"reason":"target_closed"} +1ms
- Similar to above, but the browser window will close, and the runner will output the following error:
<= event:verbose Inspector.detached {"reason":"target_closed"} +1ms
method => browser:verbose Runtime.evaluate {"expression":"(function wrapInNativePromise() {\n const __nativePromise = window.__nativePromise || Promise;\n const URL = window +60s
status Disconnecting from browser... +1ms
method => browser:verbose Storage.clearDataForOrigin {"origin":"https://www.etsy.com","storageTypes":"appcache,file_systems,indexeddb,local_storage,shader_cache,websql,service_workers,cac +0ms
GatherRunner disconnect:error not opened +1ms
statusEnd:verbose Disconnecting from browser... +0ms
ChromeLauncher Killing Chrome instance 7763 +0ms
Runtime error encountered: not opened
Error: not opened
at WebSocket.send (/Users/ksylormiller/.config/yarn/global/node_modules/ws/lib/WebSocket.js:344:18)
at CriConnection.sendRawMessage (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/connections/cri.js:167:14)
at CriConnection.sendCommand (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/connections/connection.js:66:10)
at Driver._innerSendCommand (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/driver.js:383:29)
at /Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/driver.js:345:35
at new Promise (<anonymous>)
ô®›m%ver.sendCommandToSession (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/driver.js:336:12)
ô®›m#ver.sendCommand (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/driver.js:363:17)
at Driver._evaluateInContext (/Users/ksylormiller/.config/yarn/global/node_modules/lighthouse/lighthouse-core/gather/driver.js:470:33)
Ä
Here’s a gist of the full verbose output https://gist.github.com/ksylor/882cd9d6f6f62a729c58e39fca15beeb
What is the expected behavior?
The runner completes and outputs the audit results consistently.
Environment Information
- Affected Channels: CLI
- Lighthouse version: 6.0.0-beta.0
- Chrome version: Google Chrome | 81.0.4044.138 (Official Build) (64-bit)
- Node.js version: v12.16.3
- Operating System: MacOS Mojave 10.14.6 (18G4032)
Related issues
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:19 (2 by maintainers)
Top Results From Across the Web
Why Does Google Chrome Keep Crashing, Freezing, or Not ...
When Chrome starts crashing or freezing, you should first try completely restarting it. To do so, click the three-dot Menu button at the...
Read more >9 Ways to Get Chrome to Stop Crashing - Nira
9 Ways to Get Chrome to Stop Crashing · 1. Update your endpoint security (or do this in the meantime) · 2. Close...
Read more >How to Fix Crashes for Google Chrome in Windows
1. Quit Chrome Normally
Quitting and restarting Chrome can quickly and easily fix many problems it may have:
Select the menu in the top-right corner.
Select...
Read more >Google Chrome Crashing? Here's How To Fix It
How to Fix Google Chrome Crashing? · Close all Tabs, Background Processes, and Startup Apps · Delete Chrome App Data · Uninstall Chrome...
Read more >4 Solutions to Fix Chrome Keeps Crashing Windows 10
You may have noticed that Google Chrome will become slow when there are too many tabs opening in the browser. So, Google Chrome...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tried out Chrome 91.0.4442.4 and so far it looks like Chrome is no longer crashing 🎉
For any situation where all you’re using is the
.lhr
or.report
output, we’d recommend you use a child process for any long-lived use cases.