Skip to content

Error: Process didn't end after 20000ms #399

@cjhow

Description

@cjhow

Issue Description:
Hello, I am currently facing an issue when using the Chromium driver to run scripts. The ChromeDriver process does not shut down properly, which then causes the Appium process to terminate. Could you advise how this can be resolved?

This issue only happens when I start two Chrome browsers at the same time using the Chromium Driver (with a specified port). If I only launch one browser, the process closes correctly without problems.

In addition, if the script does not perform too many actions (e.g., clicks, inputs), the issue does not occur either.

Environment:

  • Appium Version: 3.0.2
  • Chromium Driver Version: 2.0.2
  • ChromeDriver Version: 141.0.7390.54

Capabilities:

{
    "newCommandTimeout": 0,
    "dontStopAppOnReset": true,
    "noReset": true,
    "fullReset": false,
    "automationName": "chromium",
    "platformName": "mac",
    "browserName": "chrome",
    "appium:chromedriverPort": 9222,
    "goog:chromeOptions": {
        "args": [
            "--disable-blink-features=AutomationControlled",
            "--no-sandbox",
            "--disable-dev-shm-usage"
        ]
    }
}

Error details:

/Users/usr/.appium/node_modules/appium-chromium-driver/node_modules/teen_process/lib/subprocess.js:279
reject(new Error(Process didn't end after ${timeout}ms (cmd: '${this.rep}')));
^
Error: Process didn't end after 20000ms (cmd: '/Users/usr/.appium/node_modules/appium-chromium-driver/node_modules/appium-chromedriver/chromedriver/mac/chromedriver-mac-arm64_v141.0.7390.54 --port=9222 --verbose')
at Timeout._onTimeout (/Users/usr/.appium/node_modules/appium-chromium-driver/node_modules/teen_process/lib/subprocess.js:279:16)
at listOnTimeout (node:internal/timers:608:17)
at processTimers (node:internal/timers:543:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions