Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Error: spawn Unknown system error -86 - In Protractor Test run #5486

@naveenBsabares

Description

@naveenBsabares

Hi there!

Thanks for submitting an issue to Protractor.

To help us help you better, please do the following before submitting an issue:

  1. Review the questions section of CONTRIBUTING.md.
  2. Make sure you are not asking a usage or debugging question. If you are, use StackOverflow, Google Group discussion list, or Gitter to get help.
  3. Provide a minimally reduced test case. This makes it much more likely that your bug will be fixed. Protractor has a test Angular application available at http://www.protractortest.org/testapp which you can use for the reproducible test case.
  4. Fill in the information that corresponds to your type of issue below.
  5. Delete this intro and any unrelated text 😄 (if you do not we'll assume you haven't read these instructions and automatically close the issue.)

Bug report

  • Node Version: v10.16.3

  • Protractor Version: 7.0.0

  • Angular Version: ``

  • Browser(s): chrome

  • Operating System and Version MAC OS CATALINA 10.15.6

  • Your protractor configuration file
    `exports.config = {
    params: {
    host: hostAddress,
    env: 'DEV',
    },

    directConnect: true,
    noGlobals: true,

    getPageTimeout: 60000,
    allScriptsTimeout: 9000000,

    jasmineNodeOpts: {
    showColors: true,
    isVerbose: true,
    defaultTimeoutInterval: 120000,
    },

    multiCapabilities: [capabilityBuilder.generateCapability(args.notHeadless ? undefined : 'headless')],

    Capability File -
    const FLAGS = {
    normal: ['--window-size=375,812', 'pixelRatio=3', '--mute-audio'],
    headless: ['--headless', '--disable-gpu', '--window-size=375,812', 'pixelRatio=3', '--mute-audio'],
    };

/**

  • @Class CapabilityBuilder
    /
    module.exports = class CapabilityBuilder {
    /
    *
    • Generate a capability

    • Protractor configuration reference: https://github.com/angular/protractor/blob/master/lib/config.ts

    • Chrome argument reference: https://peter.sh/experiments/chromium-command-line-switches/

    • @param params {Array}

    • @return {{browserName: string, shardTestFiles: *, maxInstances: *, chromeOptions: {mobileEmulation: {deviceName: string}, args: Array}}}
      */
      generateCapability(runner = 'normal') {
      if (!FLAGS[runner]) {
      throw new Error(Runner is not available: ${runner});
      }

      const params = FLAGS[runner];
      return {
      browserName: 'chrome',
      shardTestFiles: runConfig.shardTestFiles,
      maxInstances: runConfig.maxInstances,
      'goog:chromeOptions': {
      mobileEmulation: {
      deviceName: 'iPhone 8',
      },
      args: params,
      },
      };
      }

`

  • A relevant example test
  • Output from running the test
    `/Users/naveensabares/.nvm/versions/node/v10.16.3/bin/node /Users/naveensabares/ctp-mobile/node_modules/protractor/bin/protractor /Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/helpers/protractor-intellij/lib/protractor-intellij-config.js --intellijOriginalConfigFile=/Users/naveensabares/ctp-mobile/tests/protractor/config/protractor.acceptance.conf.js --disableChecks
    ****** SERVER ALREADY STARTED ******
    [15:06:29] I/launcher - Running 1 instances of WebDriver
    [15:06:29] I/direct - Using ChromeDriver directly...
    [15:06:29] E/launcher - spawn Unknown system error -86
    [15:06:29] E/launcher - Error: spawn Unknown system error -86
    at ChildProcess.spawn (internal/child_process.js:366:11)
    at Object.spawn (child_process.js:551:9)
    at exec (/Users/naveensabares/ctp-mobile/node_modules/selenium-webdriver/io/exec.js:116:27)
    at resolveCommandLineFlags.then.args (/Users/naveensabares/ctp-mobile/node_modules/selenium-webdriver/remote/index.js:219:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    From: Task: WebDriver.createSession()
    at Function.createSession (/Users/naveensabares/ctp-mobile/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/Users/naveensabares/ctp-mobile/node_modules/selenium-webdriver/chrome.js:761:15)
    at Direct.getNewDriver (/Users/naveensabares/ctp-mobile/node_modules/protractor/built/driverProviders/direct.js:77:33)
    at Runner.createBrowser (/Users/naveensabares/ctp-mobile/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/Users/naveensabares/ctp-mobile/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/Users/naveensabares/ctp-mobile/node_modules/protractor/node_modules/q/q.js:834:54)
    at /Users/naveensabares/ctp-mobile/node_modules/protractor/node_modules/q/q.js:863:30
    at Promise.promise.promiseDispatch (/Users/naveensabares/ctp-mobile/node_modules/protractor/node_modules/q/q.js:796:13)
    at /Users/naveensabares/ctp-mobile/node_modules/protractor/node_modules/q/q.js:556:49
    at runSingle (/Users/naveensabares/ctp-mobile/node_modules/protractor/node_modules/q/q.js:137:13)
    [15:06:29] E/launcher - Process exited with error code 199

Process finished with exit code 199
`

  • Steps to reproduce the bug
  • The URL you are running your tests against (if relevant)

Feature Request

  • Reasons for adopting new feature
  • Is this a breaking change? (How will this affect existing functionality)

The below driver versions were working fine until last December. However the test throws the above error

 webdriver-manager status
[15:29:21] I/status - selenium standalone version available: 3.141.59 [last]
[15:29:21] I/status - chromedriver version available: 87.0.4280.88 [last]
[15:29:21] I/status - geckodriver version available: v0.28.0 [last]
[15:29:21] I/status - android-sdk is not present
[15:29:21] I/status - appium is not present

Chrome browser version - Version 87.0.4280.141 (Official Build) (x86_64)

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