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

Unable to determine tid for renderer process #14798

Closed
2 tasks done
mattzeunert opened this issue Feb 15, 2023 · 7 comments · Fixed by #14800
Closed
2 tasks done

Unable to determine tid for renderer process #14798

mattzeunert opened this issue Feb 15, 2023 · 7 comments · Fixed by #14800
Assignees

Comments

@mattzeunert
Copy link
Contributor

mattzeunert commented Feb 15, 2023

FAQ

URL

https://treo.sh/

What happened?

"FrameCommittedInBrowser" event had a processPseudoId instead of a processId

Screenshot 2023-02-15 at 09 43 01

So mainFramePids only contained undefined and Lighthouse returned an error: "Unable to determine tid for renderer process"

What did you expect?

Not to get an error

What have you tried?

Lighthouse returned an error

How were you running Lighthouse?

node

Lighthouse Version

10.0.1

Chrome Version

Version 112.0.5597.0 (Official Build) canary (x86_64 translated), but happens in others too

Node Version

No response

OS

No response

Relevant log output

No response

@adamraine
Copy link
Member

Thanks for investigating! I can't reproduce this issue myself but looking at the Chromium code for this, it's definitely possible for a FrameComittedInBrowser event to have a processPseudoId instead of a processId.

Maybe we should consider a processPseudoId to be another "main frame process id". @paulirish WDYT?

@paulirish
Copy link
Member

paulirish commented Feb 15, 2023

Ooof. When I did #14287 I ran the new stuff against every trace I have on my system. Just one of them failed and I started a branch to fix it.. and.. it's almost definitely this bug.

I'll get that up and in.

@mattzeunert if you still have that trace.. could you throw it on trace.cafe ? I'm not sure about the conditions for this repro, but they look.. atypical.

@mattzeunert
Copy link
Contributor Author

Here's the trace https://trace.cafe/t/Eh89oqZQDX

@slhck
Copy link

slhck commented Feb 22, 2023

I am getting the same issue running Lighthouse tests against https://facebook.com but not when running against https://google.com.

I can always repro this.

lighthouse --output=json --output-path=$HOME/tmp/facebook.com.json --chrome-flags='--headless --disable-gpu --no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage --disable-notifications --autoplay-policy=no-user-gesture-required --enable-benchmarking --enable-net-benchmarking --disable-features=Translate --disable-background-networking --disable-client-side-phishing-detection --disable-sync --no-default-browser-check --no-first-run --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain' --no-enable-error-reporting https://facebook.com
  LH:ChromeLauncher Waiting for browser. +0ms
  LH:ChromeLauncher Waiting for browser... +0ms
  LH:ChromeLauncher Waiting for browser..... +506ms
  LH:ChromeLauncher Waiting for browser.....✓ +4ms
  LH:status Connecting to browser +306ms
  LH:status Navigating to about:blank +9ms
  LH:status Benchmarking machine +18ms
  LH:status Preparing target for navigation mode +1s
  LH:status Navigating to about:blank +7ms
  LH:status Preparing target for navigation +8ms
  LH:status Cleaning origin data +10ms
  LH:status Cleaning browser cache +2ms
  LH:status Preparing network conditions +4ms
  LH:status Navigating to https://facebook.com/ +34ms
  LH:artifacts:getArtifact DevtoolsLog +5s
  LH:artifacts:getArtifact Trace +0ms
  LH:artifacts:getArtifact DevtoolsLog +2ms
  LH:artifacts:getArtifact Trace +0ms
  LH:artifacts:getArtifact Accessibility +0ms
  LH:artifacts:getArtifact AnchorElements +174ms
  LH:artifacts:getArtifact ConsoleMessages +56ms
  LH:artifacts:getArtifact CSSUsage +0ms
  LH:artifacts:getArtifact Doctype +171ms
  LH:artifacts:getArtifact DOMStats +1ms
  LH:artifacts:getArtifact EmbeddedContent +5ms
  LH:artifacts:getArtifact FontSize +2ms
  LH:artifacts:getArtifact Inputs +31ms
  LH:artifacts:getArtifact GlobalListeners +5ms
  LH:artifacts:getArtifact ImageElements +3ms
  LH:artifacts:getArtifact InstallabilityErrors +37ms
  LH:status Get webapp installability errors +0ms
  LH:artifacts:getArtifact InspectorIssues +0ms
  LH:artifacts:getArtifact JsUsage +0ms
  LH:artifacts:getArtifact LinkElements +1ms
  LH:artifacts:getArtifact MainDocumentContent +6ms
  LH:artifacts:getArtifact MetaElements +4ms
  LH:artifacts:getArtifact NetworkUserAgent +3ms
  LH:artifacts:getArtifact OptimizedImages +1ms
  LH:artifacts:getArtifact ResponseCompression +19ms
  LH:artifacts:getArtifact RobotsTxt +0ms
  LH:artifacts:getArtifact ServiceWorker +170ms
  LH:artifacts:getArtifact Scripts +4ms
  LH:artifacts:getArtifact SourceMaps +0ms
  LH:artifacts:getArtifact Stacks +0ms
  LH:status Collect stacks +0ms
  LH:artifacts:getArtifact TagsBlockingFirstPaint +14ms
  LH:artifacts:getArtifact TapTargets +2ms
  LH:artifacts:getArtifact TraceElements +27ms
  LH:artifacts:getArtifact ViewportDimensions +10ms
  LH:artifacts:getArtifact WebAppManifest +1ms
  LH:status Get webapp manifest +1ms
  LH:artifacts:getArtifact devtoolsLogs +2ms
  LH:artifacts:getArtifact traces +0ms
  LH:artifacts:getArtifact FullPageScreenshot +0ms
  LH:artifacts:getArtifact BFCacheFailures +5s
  LH:status Analyzing and running audits... +420ms
  LH:status Auditing: Uses HTTPS +1ms
  LH:status Auditing: Registers a service worker that controls page and `start_url` +1ms
  LH:status Auditing: Has a `<meta name="viewport">` tag with `width` or `initial-scale` +0ms
  LH:status Auditing: First Contentful Paint +1ms
  LH:first-contentful-paint:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Largest Contentful Paint +0ms
  LH:largest-contentful-paint:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: First Meaningful Paint +0ms
  LH:first-meaningful-paint:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Speed Index +0ms
  LH:speed-index:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Screenshot Thumbnails +0ms
  LH:screenshot-thumbnails:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Final Screenshot +0ms
  LH:final-screenshot:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Total Blocking Time +0ms
  LH:total-blocking-time:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Max Potential First Input Delay +0ms
  LH:max-potential-fid:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Cumulative Layout Shift +0ms
  LH:cumulative-layout-shift:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: No browser errors logged to the console +0ms
  LH:status Auditing: Initial server response time was short +1ms
  LH:status Auditing: Time to Interactive +2ms
  LH:interactive:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: User Timing marks and measures +0ms
  LH:user-timings:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Avoid chaining critical requests +0ms
  LH:critical-request-chains:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Avoid multiple page redirects +0ms
  LH:redirects:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Web app manifest and service worker meet the installability requirements +0ms
  LH:status Auditing: Configured for a custom splash screen +1ms
  LH:status Auditing: Sets a theme color for the address bar. +1ms
  LH:status Auditing: Manifest has a maskable icon +0ms
  LH:status Auditing: Content is sized correctly for the viewport +1ms
  LH:status Auditing: Displays images with correct aspect ratio +0ms
  LH:status Auditing: Serves images with appropriate resolution +0ms
  LH:status Auditing: Fonts with `font-display: optional` are preloaded +1ms
  LH:status Auditing: Avoids deprecated APIs +0ms
  LH:status Auditing: Minimizes main-thread work +0ms
  LH:mainthread-work-breakdown:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: JavaScript execution time +0ms
  LH:bootup-time:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Preload key requests +0ms
  LH:status Auditing: Preconnect to required origins +0ms
  LH:uses-rel-preconnect:warn Caught exception: Unable to determine tid for renderer process +2ms
  LH:status Auditing: All text remains visible during webfont loads +0ms
  LH:status Auditing: Diagnostics +0ms
  LH:diagnostics:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Network Requests +0ms
  LH:status Auditing: Network Round Trip Times +1ms
  LH:status Auditing: Server Backend Latencies +1ms
  LH:status Auditing: Tasks +0ms
  LH:main-thread-tasks:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Metrics +0ms
  LH:metrics:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Performance budget +0ms
  LH:status Auditing: Timing budget +7ms
  LH:timing-budget:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Keep request counts low and transfer sizes small +0ms
  LH:status Auditing: Minimize third-party usage +2ms
  LH:third-party-summary:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Lazy load third-party resources with facades +0ms
  LH:third-party-facades:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Largest Contentful Paint element +1ms
  LH:Runner:warn TraceElements gatherer, required by audit largest-contentful-paint-element, encountered an error: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Largest Contentful Paint image was not lazily loaded +0ms
  LH:Runner:warn TraceElements gatherer, required by audit lcp-lazy-loaded, encountered an error: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Avoid large layout shifts +0ms
  LH:Runner:warn TraceElements gatherer, required by audit layout-shift-elements, encountered an error: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Avoid long main-thread tasks +0ms
  LH:long-tasks:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Avoids `unload` event listeners +1ms
  LH:status Auditing: Avoid non-composited animations +0ms
  LH:Runner:warn TraceElements gatherer, required by audit non-composited-animations, encountered an error: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Image elements have explicit `width` and `height` +0ms
  LH:status Auditing: Page has valid source maps +1ms
  LH:status Auditing: Preload Largest Contentful Paint image +0ms
  LH:Runner:warn TraceElements gatherer, required by audit prioritize-lcp-image, encountered an error: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Ensure CSP is effective against XSS attacks +0ms
  LH:status Auditing: Script Treemap Data +5ms
  LH:status Auditing: Site works cross-browser +29ms
  LH:status Auditing: Page transitions don't feel like they block on the network +1ms
  LH:status Auditing: Each page has a URL +0ms
  LH:status Auditing: `[accesskey]` values are unique +0ms
  LH:status Auditing: `[aria-*]` attributes match their roles +1ms
  LH:status Auditing: `button`, `link`, and `menuitem` elements have accessible names +1ms
  LH:status Auditing: `[aria-hidden="true"]` is not present on the document `<body>` +0ms
  LH:status Auditing: `[aria-hidden="true"]` elements do not contain focusable descendents +0ms
  LH:status Auditing: ARIA input fields have accessible names +1ms
  LH:status Auditing: ARIA `meter` elements have accessible names +0ms
  LH:status Auditing: ARIA `progressbar` elements have accessible names +0ms
  LH:status Auditing: `[role]`s have all required `[aria-*]` attributes +0ms
  LH:status Auditing: Elements with an ARIA `[role]` that require children to contain a specific `[role]` have all required children. +1ms
  LH:status Auditing: `[role]`s are contained by their required parent element +0ms
  LH:status Auditing: `[role]` values are valid +0ms
  LH:status Auditing: ARIA toggle fields have accessible names +0ms
  LH:status Auditing: ARIA `tooltip` elements have accessible names +0ms
  LH:status Auditing: ARIA `treeitem` elements have accessible names +1ms
  LH:status Auditing: `[aria-*]` attributes have valid values +0ms
  LH:status Auditing: `[aria-*]` attributes are valid and not misspelled +0ms
  LH:status Auditing: Buttons have an accessible name +0ms
  LH:status Auditing: The page contains a heading, skip link, or landmark region +0ms
  LH:status Auditing: Background and foreground colors have a sufficient contrast ratio +0ms
  LH:status Auditing: `<dl>`'s contain only properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements. +1ms
  LH:status Auditing: Definition list items are wrapped in `<dl>` elements +0ms
  LH:status Auditing: Document has a `<title>` element +0ms
  LH:status Auditing: `[id]` attributes on active, focusable elements are unique +0ms
  LH:status Auditing: ARIA IDs are unique +0ms
  LH:status Auditing: No form fields have multiple labels +0ms
  LH:status Auditing: `<frame>` or `<iframe>` elements have a title +1ms
  LH:status Auditing: Heading elements appear in a sequentially-descending order +0ms
  LH:status Auditing: `<html>` element has a `[lang]` attribute +0ms
  LH:status Auditing: `<html>` element has a valid value for its `[lang]` attribute +0ms
  LH:status Auditing: Image elements have `[alt]` attributes +0ms
  LH:status Auditing: `<input type="image">` elements have `[alt]` text +0ms
  LH:status Auditing: Form elements have associated labels +1ms
  LH:status Auditing: Links have a discernible name +0ms
  LH:status Auditing: Lists contain only `<li>` elements and script supporting elements (`<script>` and `<template>`). +0ms
  LH:status Auditing: List items (`<li>`) are contained within `<ul>`, `<ol>` or `<menu>` parent elements +0ms
  LH:status Auditing: The document does not use `<meta http-equiv="refresh">` +1ms
  LH:status Auditing: `[user-scalable="no"]` is not used in the `<meta name="viewport">` element and the `[maximum-scale]` attribute is not less than 5. +0ms
  LH:status Auditing: `<object>` elements have alternate text +9ms
  LH:status Auditing: No element has a `[tabindex]` value greater than 0 +0ms
  LH:status Auditing: Cells in a `<table>` element that use the `[headers]` attribute refer to table cells within the same table. +0ms
  LH:status Auditing: `<th>` elements and elements with `[role="columnheader"/"rowheader"]` have data cells they describe. +1ms
  LH:status Auditing: `[lang]` attributes have a valid value +0ms
  LH:status Auditing: `<video>` elements contain a `<track>` element with `[kind="captions"]` +0ms
  LH:status Auditing: Custom controls have associated labels +0ms
  LH:status Auditing: Custom controls have ARIA roles +0ms
  LH:status Auditing: User focus is not accidentally trapped in a region +0ms
  LH:status Auditing: Interactive controls are keyboard focusable +0ms
  LH:status Auditing: Interactive elements indicate their purpose and state +0ms
  LH:status Auditing: The page has a logical tab order +0ms
  LH:status Auditing: The user's focus is directed to new content added to the page +0ms
  LH:status Auditing: Offscreen content is hidden from assistive technology +0ms
  LH:status Auditing: HTML5 landmark elements are used to improve navigation +0ms
  LH:status Auditing: Visual order on the page follows DOM order +0ms
  LH:status Auditing: Uses efficient cache policy on static assets +0ms
  LH:status Auditing: Avoids enormous network payloads +2ms
  LH:status Auditing: Defer offscreen images +4ms
  LH:offscreen-images:warn Caught exception: Unable to determine tid for renderer process +2ms
  LH:status Auditing: Eliminate render-blocking resources +0ms
  LH:render-blocking-resources:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Minify CSS +0ms
  LH:unminified-css:warn Caught exception: Unable to determine tid for renderer process +22ms
  LH:status Auditing: Minify JavaScript +0ms
  LH:unminified-javascript:warn Caught exception: Unable to determine tid for renderer process +45ms
  LH:status Auditing: Reduce unused CSS +0ms
  LH:unused-css-rules:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Reduce unused JavaScript +0ms
  LH:unused-javascript:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Serve images in next-gen formats +0ms
  LH:modern-image-formats:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Efficiently encode images +0ms
  LH:uses-optimized-images:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Enable text compression +0ms
  LH:uses-text-compression:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Properly size images +0ms
  LH:uses-responsive-images:warn Caught exception: Unable to determine tid for renderer process +2ms
  LH:status Auditing: Use video formats for animated content +0ms
  LH:efficient-animated-content:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Remove duplicate modules in JavaScript bundles +0ms
  LH:duplicated-javascript:warn Caught exception: Unable to determine tid for renderer process +1ms
  LH:status Auditing: Avoid serving legacy JavaScript to modern browsers +0ms
  LH:legacy-javascript:warn Caught exception: Unable to determine tid for renderer process +27ms
  LH:status Auditing: Page has the HTML doctype +0ms
  LH:status Auditing: Properly defines charset +0ms
  LH:status Auditing: Avoids an excessive DOM size +0ms
  LH:status Auditing: Avoids requesting the geolocation permission on page load +1ms
  LH:status Auditing: No issues in the `Issues` panel in Chrome Devtools +0ms
  LH:status Auditing: Avoids `document.write()` +0ms
  LH:status Auditing: Detected JavaScript libraries +0ms
  LH:status Auditing: Avoids requesting the notification permission on page load +0ms
  LH:status Auditing: Allows users to paste into input fields +1ms
  LH:status Auditing: Use HTTP/2 +0ms
  LH:uses-http2:warn Caught exception: Unable to determine tid for renderer process +0ms
  LH:status Auditing: Uses passive listeners to improve scrolling performance +0ms
  LH:status Auditing: Document has a meta description +0ms
  LH:status Auditing: Page has successful HTTP status code +1ms
  LH:status Auditing: Document uses legible font sizes +0ms
  LH:status Auditing: Links have descriptive text +0ms
  LH:status Auditing: Links are crawlable +1ms
  LH:status Auditing: Page isn’t blocked from indexing +2ms
  LH:status Auditing: robots.txt is valid +2ms
  LH:status Auditing: Tap targets are sized appropriately +1ms
  LH:status Auditing: Document has a valid `hreflang` +1ms
  LH:status Auditing: Document avoids plugins +0ms
  LH:status Auditing: Document has a valid `rel=canonical` +0ms
  LH:status Auditing: Structured data is valid +1ms
  LH:status Auditing: Page didn't prevent back/forward cache restoration +0ms
  LH:status Generating results... +1ms
  LH:Printer json output written to /home/surfmeter/tmp/facebook.com.json +17ms
  LH:ChromeLauncher Killing Chrome instance 1580 +0ms

Audits show this error:

    "first-meaningful-paint": {
      "id": "first-meaningful-paint",
      "title": "First Meaningful Paint",
      "description": "First Meaningful Paint measures when the primary content of a page is visible. [Learn more about the First Meaningful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/first-meaningful-paint/).",
      "score": null,
      "scoreDisplayMode": "error",
      "errorMessage": "Unable to determine tid for renderer process"
    },

Lighthouse 10.0.0 and Chromium 110.0.5481.77 built on Debian 11.6, running on Debian 11.5 (within Docker).

How could I supply more info for you folks to troubleshoot?

@slhck
Copy link

slhck commented Feb 22, 2023

Ah, I see there's a PR with a fix already.

@paulirish
Copy link
Member

Thanks Matt and @slhck for the repros! Super helpful!

We got this one sorted and its going out in v10.0.2

@slhck
Copy link

slhck commented Mar 1, 2023

Awesome, thanks for the fix!

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.

5 participants