lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Reproducible auditing error

Open ArchimedusIII opened this issue 7 years ago • 2 comments

#9059 ## Provide the steps to reproduce

  1. Run LH on http://ctf.infosecinstitute.com/img/leveltwo.jpeg

This page contains a corrupt image (by design), which apparently makes Lighthouse fail.

What is the current behavior?

"Channel: DevTools Initial URL: http://ctf.infosecinstitute.com/img/leveltwo.jpeg Chrome Version: 75.0.3770.80 Stack Trace: LHError: NO_FCP at eval (chrome-devtools://devtools/remote/serve_file/@9a9aa15057b6b2cc0909bdcf638c0b65ecd516f2/audits2_worker/audits2_worker_module.js:1219:206)"

#### What is the expected behavior?

Succesful (relatively simple) audit

ArchimedusIII avatar Jul 18 '19 10:07 ArchimedusIII

Howdy chief! Appreciate you filing this bug. :clap:

This page seems to take too long to paint content, and Lighthouse gives up on waiting. If you need to change this behavior, you can run Lighthouse from the command line with a custom config modifying maxWaitForFcp. Marking at as dupe of #7415. Thanks! :robot: Beep beep boop.

devtools-bot avatar Jul 18 '19 10:07 devtools-bot

This page contains a corrupt image (by design), which apparently makes Lighthouse fail.

Lighthouse isn't designed to audit images. The failure NO_FCP means that nothing was painted to screen, at least anything that Chrome considered rendering a web page.

The failure itself is fine (and can be more or less considered WAI), but we could definitely improve the error message. For non-html documents in particular, that would be covered by #9245. For NO_FCP errors in particular, #6154 is probably your best bet.

brendankenny avatar Jul 18 '19 19:07 brendankenny