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

RangeError: Maximum call stack size exceeded with Docker implementation #3086

Closed
ghanshyamspearline opened this issue Mar 3, 2022 · 2 comments · Fixed by #3123
Closed

RangeError: Maximum call stack size exceeded with Docker implementation #3086

ghanshyamspearline opened this issue Mar 3, 2022 · 2 comments · Fixed by #3123
Assignees

Comments

@ghanshyamspearline
Copy link

ghanshyamspearline commented Mar 3, 2022

RangeError: Maximum call stack size exceeded

I'm trying to get the Nightwatch script running inside docker. I've prepared a script in my dev machine and I'm able to run it. But it's not working in the docker setup.

It's a throwing error as described below.

Starting ChromeDriver 96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/4664@{#947}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

RangeError: Maximum call stack size exceeded
     compiledWrapper = compileFunction(
                       ^

 RangeError: Maximum call stack size exceeded

Sample test

sampleTest.js

describe('duckduckgo example', function() {
  it('Search Nightwatch.js and check results', function(browser) {
    browser
      .navigateTo('https://duckduckgo.com')
      .waitForElementVisible('#search_form_input_homepage')
      .sendKeys('#search_form_input_homepage', ['Nightwatch.js'])
      .click('#search_button_homepage')
      .assert.visible('.results--main')
      .assert.textContains('.results--main', 'Nightwatch.js');
  }); 
});

Run with command

$ nightwatch -t src/sampleTest.js config.json

Verbose output

debug.log

RangeError: Maximum call stack size exceeded
     compiledWrapper = compileFunction(
                       ^

 RangeError: Maximum call stack size exceeded

Configuration

nightwatch.json

{
    "src_folders": ["src"],

    "selenium": {
        "start_process": false
    },

    "webdriver": {
        "start_process": true,
        "server_path": "node_modules/chromedriver/lib/chromedriver/chromedriver",
        "port": 9515
    },

    "test_settings": {
      "default": {
        "test_workers": {
          "enabled": true,
          "workers": 5
        },
        "desiredCapabilities": {
          "browserName": "chrome",
          "chromeOptions" : {
          "args" : [
            "use-fake-device-for-media-stream",
            "enable-usermedia-screen-capturing",
            "allow-http-screen-capture",
            "allow-file-access-from-files",
            "use-fake-ui-for-media-stream",
            "disable-gpu"
            ]
          }
        }
      }
    },
    
    "chrome" : {
      "desiredCapabilities" : {
        "browserName" : "chrome",
        "chromeOptions" : {
          "args" : [
            "use-fake-device-for-media-stream", 
            "use-fake-ui-for-media-stream"
          ]
        }
      }
    }
}

Your Environment

Executable Version
nightwatch --version 1.7.3
npm --version 6.14.15
yarn --version 1.22.10
node --version v12.22.7
Browser driver Version
CHROME 96.0.0
OS Version
Debian bullseye - Docker Image
@beatfactor
Copy link
Member

Thanks for your report but we need a bit more info in order to look into this. Can you please try and fill in the bug report template?

@ghanshyamspearline
Copy link
Author

ghanshyamspearline commented Mar 4, 2022

Thanks for the response.

NOTE: I have also given try with the latest versions available of Nightwatch, npm, yarn and node as well.

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

Successfully merging a pull request may close this issue.

4 participants