question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parallel execution error on version 1.2.1 - "Maximum call stack size exceeded"

See original GitHub issue

What are you trying to achieve?

Run multiple tests in parallel

What do you get instead?

RangeError: Maximum call stack size exceeded at normalizeStringWin32 (path.js:33:30) at Object.resolve (path.js:338:20) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:68:14) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:77:24) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) at sync (C:.…\npm\node_modules\codeceptjs\node_m odules\mkdirp\index.js:78:17) path.js:33 function normalizeStringWin32(path, allowAboveRoot) {

Seems related to #1068

Details

  • CodeceptJS version: 1.2.1
  • NodeJS Version: 8.9.4
  • Operating System: Windows 7
  • WebDriverIO Version: 4.12.0
  • Configuration file:
{
  "output": "./output",
  "helpers": {
    "WebDriverIO": {
      "url": "url",
      "browser": "chrome",
      "host": "localhost",
      "port": "4444",
      "coloredLogs": true,
      "restart": false,
      "windowSize": "maximize",
      "keepCookies": true,
      "smartWait": 5000
    }
  },
  "multiple": {
    "blah": {
      "chunks": 2,
      "grep": "@blah"
    }
  },
  "include": {
    ...
  },
  "mocha": {},
  "bootstrap": false,
  "teardown": null,
  "hooks": [],
  "tests": "./tests/**/*/*_test.js",
  "timeout": 10000,
  "name": "codecept"
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rickschubertcommented, Oct 17, 2018

Just a quick thing because I have read that other people had the same issue: I added a chrome extension to my WDIO test by adding it base64 encoded to capabilities.chromeOptions.extensions. Due to that, I saw the following error on each exit though: Maximum call stack size exceeded, even when the feature didn’t have any errors. The solution was to remove the extension again from the capabilities before spawning, like so:

    before: (capabilities) => {
        // We have to remove the base64 encoded chrome browser extensions as
        // the object WDIO carries along otherwise takes up too much memory
        delete capabilities.chromeOptions.extensions
}
0reactions
jsparks19commented, Jun 29, 2018

This is working for me now after upgrading to 1.3.0. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parallel execution error on version 1.2.1 - "Maximum call stack ...
What I found was that this code seems to be being called repeatedly until call stack size max is reached. Because of the...
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size. This can...
Read more >
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
Changelog - Cypress Documentation
Fixed a regression in 6.5.0 that could cause Cypress to crash with a RangeError: Maximum call stack size exceeded at _deconstructPacket error.
Read more >
maximum call stack size exceeded typescript - You.com
The RangeError: Maximum call stack size exceeded occurs when a function is being called so many times that the invocations exceed the call...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found