-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running with headless Chrome crashes when provided with non-existent url. #7534
Comments
FWIW this seems linux specific as I cannot reproduce on Mac. Resident linux folks can take a look? :) If Chrome is crashing, then it's probably worth filing a crbug instead of just LH bug. |
I'm able to get the same thing on my Mac. We should be catching this, so I assume (based on that and the error) it's happening in an event and so outside our normal execution flow. |
It looks like this is a new issue in 4.2.0, unable to reproduce on 4.1.0. |
hmm, at first glance it appears to be from running this line with an already killed Chrome instance, which is supposed to not do this :) lighthouse/lighthouse-core/gather/driver.js Lines 821 to 822 in 9efe177
|
sorry, I take that back. That line happily runs and returns, it just happens to occur while other things are going wrong. Looks like it's an error off the We can just add an error handler in there and reject in that case (just have to handle interaction with the Not sure why this would have changed in 4.2, though. Something in |
bisected to #7356 |
Woah my bad, I was on branch split a long time ago 😆 We should definitely fix the unhelpful/misleading stack, but I'm not sure we actually want to change the end behavior. I was under the impression everyone else was on board with converting NO_FCP to a loud, fatal error. |
I see now. There's no FCP event fired, and since that's checked before page load errors and we want it to fail loudly, it's the resulting error instead of It does seem like Should |
Yeah for sure, I'm all on board for ensuring the most helpful message is sent to the user. Just wanted to make sure we're on the same page that the fix won't involve giving a report and exiting with I think it makes sense to check for other failures (security/dns/offline/etc) before choosing NO_FCP as the fatal error. |
👋 We experienced this error and have some details to share. We upgraded from Lighthouse This is a problem, because Lighthouse behaves differently based on if Chrome is in headless mode. To observe this behaviour, test with any of the following URLs: Lighthouse 4.1.0
Lighthouse since 4.2.0+
I noticed that Pagespeed Insights is still running LH 4.1.0. It's likely that if/when that gets updated to 4.2.0 or 4.3.0 that error rates will climb. 😱 Tested and verified using:
Let me know if there's any other info I can share 🕵️ |
a fix is up at #8340 if y'all want to check out the details of what happens in each environment now. |
Thanks @patrickhulce, we'll check it out and report back. 🥇 |
Provide the steps to reproduce
lighthouse https://not-a-url.com --chrome-flags=--headless
What is the current behavior?
No report is saved.
What is the expected behavior?
Runner:warn ... encountered an error: DNS_FAILURE
Report should save with following error:
Environment Information
Related issues
The text was updated successfully, but these errors were encountered: