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

LH:ChromeLauncher:error taskkill stderr ERROR #14376

Closed
2 tasks done
pea-sys opened this issue Sep 9, 2022 · 3 comments
Closed
2 tasks done

LH:ChromeLauncher:error taskkill stderr ERROR #14376

pea-sys opened this issue Sep 9, 2022 · 3 comments
Assignees

Comments

@pea-sys
Copy link

pea-sys commented Sep 9, 2022

FAQ

URL

https://example.com

What happened?

    1. Launch two command prompts
    1. Quickly execute the following commands manually at two command prompts
lighthouse https://example.com
    1. The following log is output.
      1 or 0 files generated
LH:ChromeLauncher:error taskkill stderr ERROR: The process with PID 6980 (child process of PID 5224) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 11876 (child process of PID 5224) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 2952 (child process of PID 5224) could not be terminated.
Reason: There is no running instance of the task.
 +293ms

What did you expect?

No error when multiple runs are performed.

What have you tried?

  • Multiple executions at different URLs
    → Same error
  • Output json file
    → Same error
  • Output Json files to different output destinations
    → Same error
  • Multiple execution with longer time interval between command executions
    → Success

※This is occurring when the termination timing of multiple processes is close to each other

PromptA.txt
PromptB.txt

How were you running Lighthouse?

CLI

Lighthouse Version

9.6.7

Chrome Version

105.0.5195.102(Official Build) (64 bit)

Node Version

v16.15.1

OS

Windows10 64bit

Relevant log output

C:\Windows\system32>lighthouse https://example.com
  LH:ChromeLauncher Waiting for browser. +0ms
  LH:ChromeLauncher Waiting for browser... +5ms
  LH:ChromeLauncher Waiting for browser..... +550ms
  LH:ChromeLauncher Waiting for browser....... +637ms
  LH:ChromeLauncher Waiting for browser.......√ +48ms
  LH:config:warn IFrameElements gatherer requested, however no audit requires it. +2s
  LH:config:warn Inputs gatherer requested, however no audit requires it. +0ms
  LH:status Connecting to browser +170ms
  LH:status Resetting state with about:blank +98ms
  LH:status Navigating to about:blank +13ms
  LH:status Benchmarking machine +135ms
  LH:status Initializing… +1s
  LH:status Preparing target for navigation mode +30ms
  LH:status Running defaultPass pass CSSUsage, JsUsage, ViewportDimensions, ConsoleMessages, AnchorElements, ImageElements, LinkElements, MetaElements, ScriptElements, IFrameElements, Inputs, MainDocumentContent, GlobalListeners, Doctype, DOMStats, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, FontSize, EmbeddedContent, RobotsTxt, TapTargets, Accessibility, TraceElements, InspectorIssues, SourceMaps, FullPageScreenshot +54ms
  LH:status Resetting state with about:blank +2ms
  LH:status Navigating to about:blank +4ms
  LH:status Preparing target for navigation +36ms
  LH:status Cleaning origin data +54ms
  LH:status Cleaning browser cache +16ms
  LH:status Preparing network conditions +30ms
  LH:status Beginning devtoolsLog and trace +35ms
  LH:status Loading page & waiting for onload +100ms
  LH:status Navigating to https://example.com/ +0ms
  LH:status Gathering in-page: CSSUsage +3s
  LH:status Gathering in-page: JsUsage +1ms
  LH:status Gathering in-page: ViewportDimensions +3ms
  LH:status Gathering in-page: ConsoleMessages +2ms
  LH:status Gathering in-page: AnchorElements +1ms
  LH:status Gathering in-page: ImageElements +1ms
  LH:status Gathering in-page: LinkElements +23ms
  LH:status Gathering in-page: MetaElements +3ms
  LH:status Gathering in-page: ScriptElements +12ms
  LH:status Gathering in-page: IFrameElements +4ms
  LH:status Gathering in-page: Inputs +15ms
  LH:status Gathering in-page: MainDocumentContent +8ms
  LH:status Gathering in-page: GlobalListeners +8ms
  LH:status Gathering in-page: Doctype +13ms
  LH:status Gathering in-page: DOMStats +15ms
  LH:status Gathering in-page: OptimizedImages +3ms
  LH:status Gathering in-page: PasswordInputsWithPreventedPaste +13ms
  LH:status Gathering in-page: ResponseCompression +8ms
  LH:status Gathering in-page: TagsBlockingFirstPaint +10ms
  LH:status Gathering in-page: FontSize +2ms
  LH:status Gathering in-page: EmbeddedContent +2ms
  LH:status Gathering in-page: RobotsTxt +12ms
  LH:status Gathering in-page: TapTargets +7ms
  LH:status Gathering in-page: Accessibility +17ms
  LH:status Gathering in-page: TraceElements +8ms
  LH:status Gathering in-page: InspectorIssues +3ms
  LH:status Gathering in-page: SourceMaps +6ms
  LH:status Gathering in-page: FullPageScreenshot +7ms
  LH:status Gathering trace +2ms
  LH:status Gathering devtoolsLog & network records +272ms
  LH:status Gathering: CSSUsage +53ms
  LH:status Gathering: JsUsage +34ms
  LH:status Gathering: ViewportDimensions +26ms
  LH:status Gathering: ConsoleMessages +7ms
  LH:status Gathering: AnchorElements +10ms
  LH:status Gathering: ImageElements +40ms
  LH:status Gathering: LinkElements +20ms
  LH:status Gathering: MetaElements +11ms
  LH:status Gathering: ScriptElements +12ms
  LH:status Gathering: IFrameElements +10ms
  LH:status Gathering: Inputs +9ms
  LH:status Gathering: MainDocumentContent +12ms
  LH:status Gathering: GlobalListeners +5ms
  LH:status Gathering: Doctype +9ms
  LH:status Gathering: DOMStats +7ms
  LH:status Gathering: OptimizedImages +18ms
  LH:status Gathering: PasswordInputsWithPreventedPaste +4ms
  LH:status Gathering: ResponseCompression +7ms
  LH:status Gathering: TagsBlockingFirstPaint +4ms
  LH:status Gathering: FontSize +8ms
  LH:status Gathering: EmbeddedContent +16ms
  LH:status Gathering: RobotsTxt +8ms
  LH:status Gathering: TapTargets +181ms
  LH:status Gathering: Accessibility +39ms
  LH:status Gathering: TraceElements +214ms
  LH:status Gathering: InspectorIssues +38ms
  LH:status Gathering: SourceMaps +8ms
  LH:status Gathering: FullPageScreenshot +3ms
  LH:status Populate base artifacts +5s
  LH:status Get webapp manifest +2ms
  LH:status Get webapp installability errors +7ms
  LH:status Collect stacks +8ms
  LH:status Running offlinePass pass ServiceWorker +60ms
  LH:status Resetting state with about:blank +9ms
  LH:status Navigating to about:blank +2ms
  LH:status Preparing target for navigation +413ms
  LH:status Preparing network conditions +2ms
  LH:status Beginning devtoolsLog and trace +23ms
  LH:status Loading page & waiting for onload +0ms
  LH:status Navigating to https://example.com/ +3ms
  LH:status Gathering in-page: ServiceWorker +186ms
  LH:status Gathering devtoolsLog & network records +1ms
  LH:status Gathering: ServiceWorker +22ms
  LH:status Disconnecting from browser... +4ms
  LH:status Cleaning origin data +0ms
  LH:status Analyzing and running audits... +46ms
  LH:status Auditing: Uses HTTPS +14ms
  LH:status Auditing: Registers a service worker that controls page and `start_url` +25ms
  LH:status Auditing: Has a `<meta name="viewport">` tag with `width` or `initial-scale` +32ms
  LH:status Auditing: First Contentful Paint +17ms
  LH:status Auditing: Largest Contentful Paint +59ms
  LH:status Auditing: First Meaningful Paint +37ms
  LH:status Auditing: Speed Index +38ms
  LH:status Auditing: Screenshot Thumbnails +622ms
  LH:status Auditing: Final Screenshot +381ms
  LH:status Auditing: Total Blocking Time +20ms
  LH:status Auditing: Max Potential First Input Delay +23ms
  LH:status Auditing: Cumulative Layout Shift +29ms
  LH:status Auditing: No browser errors logged to the console +30ms
  LH:status Auditing: Initial server response time was short +19ms
  LH:status Auditing: Time to Interactive +18ms
  LH:status Auditing: User Timing marks and measures +15ms
  LH:status Auditing: Avoid chaining critical requests +19ms
  LH:status Auditing: Avoid multiple page redirects +23ms
  LH:status Auditing: Web app manifest and service worker meet the installability requirements +15ms
  LH:status Auditing: Provides a valid `apple-touch-icon` +23ms
  LH:status Auditing: Configured for a custom splash screen +17ms
  LH:status Auditing: Sets a theme color for the address bar. +18ms
  LH:status Auditing: Manifest has a maskable icon +11ms
  LH:status Auditing: Content is sized correctly for the viewport +14ms
  LH:status Auditing: Displays images with correct aspect ratio +12ms
  LH:status Auditing: Serves images with appropriate resolution +9ms
  LH:status Auditing: Fonts with `font-display: optional` are preloaded +10ms
  LH:status Auditing: Avoids deprecated APIs +14ms
  LH:status Auditing: Minimizes main-thread work +24ms
  LH:status Auditing: JavaScript execution time +41ms
  LH:status Auditing: Preload key requests +23ms
  LH:status Auditing: Preconnect to required origins +34ms
  LH:status Auditing: All text remains visible during webfont loads +23ms
  LH:status Auditing: Diagnostics +9ms
  LH:status Auditing: Network Requests +2ms
  LH:status Auditing: Network Round Trip Times +11ms
  LH:status Auditing: Server Backend Latencies +9ms
  LH:status Auditing: Tasks +11ms
  LH:status Auditing: Metrics +1ms
  LH:status Auditing: Performance budget +13ms
  LH:status Auditing: Timing budget +8ms
  LH:status Auditing: Keep request counts low and transfer sizes small +12ms
  LH:status Auditing: Minimize third-party usage +15ms
  LH:status Auditing: Lazy load third-party resources with facades +19ms
  LH:status Auditing: Largest Contentful Paint element +10ms
  LH:status Auditing: Largest Contentful Paint image was not lazily loaded +9ms
  LH:status Auditing: Avoid large layout shifts +11ms
  LH:status Auditing: Avoid long main-thread tasks +7ms
  LH:status Auditing: Avoids `unload` event listeners +13ms
  LH:status Auditing: Avoid non-composited animations +9ms
  LH:status Auditing: Image elements have explicit `width` and `height` +8ms
  LH:status Auditing: Page has valid source maps +14ms
  LH:status Auditing: Preload Largest Contentful Paint image +15ms
  LH:status Auditing: Ensure CSP is effective against XSS attacks +15ms
  LH:status Auditing: Full-page screenshot +10ms
  LH:status Auditing: Script Treemap Data +10ms
  LH:status Auditing: Site works cross-browser +5ms
  LH:status Auditing: Page transitions don't feel like they block on the network +15ms
  LH:status Auditing: Each page has a URL +13ms
  LH:status Auditing: `[accesskey]` values are unique +12ms
  LH:status Auditing: `[aria-*]` attributes match their roles +8ms
  LH:status Auditing: `button`, `link`, and `menuitem` elements have accessible names +28ms
  LH:status Auditing: `[aria-hidden="true"]` is not present on the document `<body>` +14ms
  LH:status Auditing: `[aria-hidden="true"]` elements do not contain focusable descendents +46ms
  LH:status Auditing: ARIA input fields have accessible names +18ms
  LH:status Auditing: ARIA `meter` elements have accessible names +13ms
  LH:status Auditing: ARIA `progressbar` elements have accessible names +20ms
  LH:status Auditing: `[role]`s have all required `[aria-*]` attributes +30ms
  LH:status Auditing: Elements with an ARIA `[role]` that require children to contain a specific `[role]` have all required children. +22ms
  LH:status Auditing: `[role]`s are contained by their required parent element +20ms
  LH:status Auditing: `[role]` values are valid +19ms
  LH:status Auditing: ARIA toggle fields have accessible names +28ms
  LH:status Auditing: ARIA `tooltip` elements have accessible names +20ms
  LH:status Auditing: ARIA `treeitem` elements have accessible names +20ms
  LH:status Auditing: `[aria-*]` attributes have valid values +21ms
  LH:status Auditing: `[aria-*]` attributes are valid and not misspelled +13ms
  LH:status Auditing: Buttons have an accessible name +17ms
  LH:status Auditing: The page contains a heading, skip link, or landmark region +18ms
  LH:status Auditing: Background and foreground colors have a sufficient contrast ratio +54ms
  LH:status Auditing: `<dl>`'s contain only properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements. +32ms
  LH:status Auditing: Definition list items are wrapped in `<dl>` elements +26ms
  LH:status Auditing: Document has a `<title>` element +25ms
  LH:status Auditing: `[id]` attributes on active, focusable elements are unique +44ms
  LH:status Auditing: ARIA IDs are unique +21ms
  LH:status Auditing: No form fields have multiple labels +24ms
  LH:status Auditing: `<frame>` or `<iframe>` elements have a title +24ms
  LH:status Auditing: Heading elements appear in a sequentially-descending order +18ms
  LH:status Auditing: `<html>` element has a `[lang]` attribute +39ms
  LH:status Auditing: `<html>` element has a valid value for its `[lang]` attribute +52ms
  LH:status Auditing: Image elements have `[alt]` attributes +24ms
  LH:status Auditing: `<input type="image">` elements have `[alt]` text +23ms
  LH:status Auditing: Form elements have associated labels +30ms
  LH:status Auditing: Links have a discernible name +29ms
  LH:status Auditing: Lists contain only `<li>` elements and script supporting elements (`<script>` and `<template>`). +34ms
  LH:status Auditing: List items (`<li>`) are contained within `<ul>` or `<ol>` parent elements +45ms
  LH:status Auditing: The document does not use `<meta http-equiv="refresh">` +33ms
  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. +38ms
  LH:status Auditing: `<object>` elements have alternate text +53ms
  LH:status Auditing: No element has a `[tabindex]` value greater than 0 +35ms
  LH:status Auditing: Cells in a `<table>` element that use the `[headers]` attribute refer to table cells within the same table. +44ms
  LH:status Auditing: `<th>` elements and elements with `[role="columnheader"/"rowheader"]` have data cells they describe. +64ms
  LH:status Auditing: `[lang]` attributes have a valid value +71ms
  LH:status Auditing: `<video>` elements contain a `<track>` element with `[kind="captions"]` +37ms
  LH:status Auditing: Custom controls have associated labels +40ms
  LH:status Auditing: Custom controls have ARIA roles +2ms
  LH:status Auditing: User focus is not accidentally trapped in a region +1ms
  LH:status Auditing: Interactive controls are keyboard focusable +1ms
  LH:status Auditing: Interactive elements indicate their purpose and state +1ms
  LH:status Auditing: The page has a logical tab order +2ms
  LH:status Auditing: The user's focus is directed to new content added to the page +1ms
  LH:status Auditing: Offscreen content is hidden from assistive technology +2ms
  LH:status Auditing: HTML5 landmark elements are used to improve navigation +3ms
  LH:status Auditing: Visual order on the page follows DOM order +3ms
  LH:status Auditing: Uses efficient cache policy on static assets +3ms
  LH:status Auditing: Avoids enormous network payloads +12ms
  LH:status Auditing: Defer offscreen images +9ms
  LH:status Auditing: Eliminate render-blocking resources +13ms
  LH:status Auditing: Minify CSS +11ms
  LH:status Auditing: Minify JavaScript +11ms
  LH:status Auditing: Reduce unused CSS +11ms
  LH:status Auditing: Reduce unused JavaScript +13ms
  LH:status Auditing: Serve images in next-gen formats +9ms
  LH:status Auditing: Efficiently encode images +12ms
  LH:status Auditing: Enable text compression +11ms
  LH:status Auditing: Properly size images +8ms
  LH:status Auditing: Use video formats for animated content +12ms
  LH:status Auditing: Remove duplicate modules in JavaScript bundles +18ms
  LH:status Auditing: Avoid serving legacy JavaScript to modern browsers +11ms
  LH:status Auditing: Page has the HTML doctype +20ms
  LH:status Auditing: Properly defines charset +17ms
  LH:status Auditing: Avoids an excessive DOM size +20ms
  LH:status Auditing: Avoids requesting the geolocation permission on page load +14ms
  LH:status Auditing: No issues in the `Issues` panel in Chrome Devtools +19ms
  LH:status Auditing: Avoids `document.write()` +17ms
  LH:status Auditing: Avoids front-end JavaScript libraries with known security vulnerabilities +7ms
  LH:status Auditing: Detected JavaScript libraries +16ms
  LH:status Auditing: Avoids requesting the notification permission on page load +10ms
  LH:status Auditing: Allows users to paste into password fields +11ms
  LH:status Auditing: Use HTTP/2 +8ms
  LH:status Auditing: Uses passive listeners to improve scrolling performance +14ms
  LH:status Auditing: Document has a meta description +15ms
  LH:status Auditing: Page has successful HTTP status code +52ms
  LH:status Auditing: Document uses legible font sizes +33ms
  LH:status Auditing: Links have descriptive text +21ms
  LH:status Auditing: Links are crawlable +8ms
  LH:status Auditing: Page isn’t blocked from indexing +11ms
  LH:status Auditing: robots.txt is valid +14ms
  LH:status Auditing: Tap targets are sized appropriately +27ms
  LH:status Auditing: Document has a valid `hreflang` +17ms
  LH:status Auditing: Document avoids plugins +8ms
  LH:status Auditing: Document has a valid `rel=canonical` +13ms
  LH:status Auditing: Structured data is valid +7ms
  LH:status Generating results... +9ms
  LH:Printer html output written to C:\Windows\system32\example.com_2022-09-09_20-05-20.report.html +228ms
  LH:CLI Protip: Run lighthouse with `--view` to immediately open the HTML report in your browser +6ms
  LH:ChromeLauncher Killing Chrome instance 14112 +3ms
  LH:ChromeLauncher:error taskkill stderr ERROR: The process with PID 6264 (child process of PID 14112) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 5408 (child process of PID 14112) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 5836 (child process of PID 14112) could not be terminated.
Reason: There is no running instance of the task.
 +272ms
@brendankenny
Copy link
Member

Merging into GoogleChrome/chrome-launcher#266. I know it's been several months, but feel free to add any additional details there.

@connorjclark
Copy link
Collaborator

@pea-sys could you share what version of chrome-launcher is in your lockfile?

@pea-sys
Copy link
Author

pea-sys commented Jan 27, 2023

@connorjclark
The confirmation method may not be correct.

C:\Users\user>lighthouse --version
9.6.7

C:\Users\user>npm view [email protected] dependencies
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
{
  '@sentry/node': '^6.17.4',
  'axe-core': '4.4.1',
  'chrome-launcher': '^0.15.0',
  configstore: '^5.0.1',
  csp_evaluator: '1.1.1',
  cssstyle: '1.2.1',
  enquirer: '^2.3.6',
  'http-link-header': '^0.8.0',
  'intl-messageformat': '^4.4.0',
  'jpeg-js': '^0.4.3',
  'js-library-detector': '^6.5.0',
  'lighthouse-logger': '^1.3.0',
  'lighthouse-stack-packs': '1.8.2',
  lodash: '^4.17.21',
  'lookup-closest-locale': '6.2.0',
  'metaviewport-parser': '0.2.0',
  open: '^8.4.0',
  'parse-cache-control': '1.0.1',
  'ps-list': '^8.0.0',
  'puppeteer-core': '^13.7.0',
  'robots-parser': '^3.0.0',
  semver: '^5.3.0',
  'speedline-core': '^1.4.3',
  'third-party-web': '^0.17.1',
  ws: '^7.0.0',
  yargs: '^17.3.1',
  'yargs-parser': '^21.0.0'
}

In my environment, it still occurs once every two times if I follow the reported procedure.

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

No branches or pull requests

5 participants