Lighthouse: Invalid score for speed-index: NaN

Created on 23 Jul 2020  路  19Comments  路  Source: GoogleChrome/lighthouse

Provide the steps to reproduce

  1. Run LH on https://kabardinovd.com

What is the current behavior?

Performance Audit Error:

Speed Index Error!
Invalid score for speed-index: NaN

What is the expected behavior?

Performance audit should show a numeric score

Environment Information

  • Affected Channels: DevTools (At least)
  • Lighthouse version: 6.0.0
  • Chrome version: 84.0.4147.89 (Official Build) (64-bit) (cohort: Stable)
  • Node.js version: v12.18.2
  • Operating System: Windows 10 Pro
P1

Most helpful comment

@anandgupta193 yes but you won't see it in Chrome for quite some time. Probably in the CLI and PSI in ~3 weeks

All 19 comments

Thanks for filing @dKab ! I can't reproduce reliably this though :/

Only 1 of 10 runs gave me this, was this what you observed?

image

I am getting this too locally and online: https://romantic-mahavira-1e7c3a.netlify.app

Screen Shot 2020-07-24 at 12 12 45 PM

@patrickhulce
懈蟹芯斜褉邪卸械薪懈械

I'm facing the same issue as well. Same with another product from our company. Both of them are NextJs apps hosted on vercel, if it helps. It used to work fine on the same domain a few days ago, nothing significant has changed since then in terms of new code.
Screenshot 2020-07-24 at 11 51 59 PM

Hm, I'm not sure what's going on I can't reproduce this on any of the provided URLs in stable, canary, windows, or mac :/

Definitely concerning that so many of you seem to have run into this though. Anything in particular you can share about your setup or repro steps that might be unique or relevant?

Anything in particular you can share about your setup or repro steps that might be unique or relevant?

Same issue here.

When it happens?
It only happens when I run audit with no extensions enabled.

Where and How I've tested?
Tested here for both mobile and desktop, on Chrome (see screenshot here) and Edge (see screenshot here), Win 10. Under Incognito, Guest, or an Account (logged to Google acc. or not). So I'm assuming it's not a profile or acc. related problem.

Context
Auditing my work in progress portfolio in a "clean" environment to ensure there isn't any negative impact to the performance, I disabled all my extensions, and surprise! speed-index: NaN happens 馃槄

Let me know if I can help you with any further information.

Thanks @leodeslf ! That's a good extra tip about the extensions but I still couldn't reproduce it :/ Does it happen every time you run?

Also would someone experiencing this be willing to share the trace file that resulted?

You can get the trace by...

  1. Clicking "View Trace" in the Performance section after the run completes.
    image

  2. Clicking the download trace button "Save profile..." in the performance panel
    image

  3. Uploading that JSON file here to github :)

Yes, at the moment it happens every time in that conditions.

Here is my trace file.

Thanks @leodeslf! Speed index itself worked on that trace without any problems, and I'm not sure what else I can do at this point :/

Anyone else on Lighthouse able to reproduce this behavior?

Chrome Version 84.0.4147.89 (Official Build) (64-bit)
Lighthouse 6.0.0

I'm seeing the same issue but only when running as 'Device: Desktop' running as 'Device: Mobile' works correctly.

Desktop
Lighthouse Device Desktop

Mobile
Lighthouse Device Mobile

May be a separate issue but the tooltip for both mobile and desktop reads "Apply mobile emulation during auditing"

Lighthouse Tooltip

Finally able to repro thanks to #11173 so we've got a fix in play now 馃帀

Finally able to repro thanks to #11173 so we've got a fix in play now 馃帀

Welcome @patrickhulce

I've got the same issue with a Next.js app, seems like it works when auditing with mobile.

@patrickhulce - Is the issue fixed?

@anandgupta193 yes but you won't see it in Chrome for quite some time. Probably in the CLI and PSI in ~3 weeks

I am still seeing the issue with Version 85.0.4183.83 (Official Build) (64-bit) on Ubuntu 18.04

@patrickhulce - Is this issue fixed and shipped to latest chrome lighthouse?

Yes it should be fixed in Chrome Canary and is part of Chrome 86 (becomes stable in October).

Meanwhile, a workaround,

  1. click the See calculator. link
    image

  2. in the opening page, try moving the Nah Speed index slider a little bit. You will see the number being populated correctly
    image

Was this page helpful?
0 / 5 - 0 ratings