Skip to content
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

NO_TTI_CPU_IDLE_PERIOD if the page has a slow FCP but is idle immediately after it (devtools/provided throttling only) #10503

Closed
mattzeunert opened this issue Mar 25, 2020 · 1 comment · Fixed by #10505
Assignees

Comments

@mattzeunert
Copy link
Contributor

mattzeunert commented Mar 25, 2020

Provide the steps to reproduce

I most consistently get the error in DevTools:

  1. Got to https://persistent-friendly-authority.glitch.me/?delayFcpMs=1700
  2. Open DevTools
  3. In Lighthouse settings untick "Simulated throttling"
  4. Click "generate report"

I get it with the CLI as well, but only about 1 in 4 times or so. Since the issue seems to happen for certain timings you might have to play with the delayFcpMs query param. (I also used a locally hosted server with an FCP delay of 2000ms.)

  1. Go to https://persistent-friendly-authority.glitch.me/?delayFcpMs=1700 to wake up the Glitch page
  2. Run node lighthouse-cli/index.js --view --throttlingMethod provided https://persistent-friendly-authority.glitch.me/\?delayFcpMs\=1700

What is the current behavior?

Lighthouse reports no performance score and shows a NO_TTI_CPU_IDLE_PERIOD error.

Screenshot 2020-03-25 at 10 11 42

If a 400ms loop is added after setting the body HTML the error no longer occurs.

What is the expected behavior?

There shouldn't be an error.

Environment Information

  • Affected Channels: All
  • Lighthouse version: 5.7.1 (Canary DevTools), master 1457b4c
  • Chrome version: 83.0.4094.0 + others
  • Node.js version: v10.15.3
  • Operating System: macOS Catalina 10.15.3
@patrickhulce
Copy link
Collaborator

Ahhhh thanks very much @mattzeunert I think this might explain #10410 as well. We wait 5250 ms after load, CPU quiet, and network quiet, but if FCP was after all of those then we'll bump into this error.

You might already be aware but increasing cpuQuietThresholdMs/pauseAfterLoadMs/networkQuietThresholdMs in the defaultPass config should fix this in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants