nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

Getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - Javascript heap out of memory #1859

Closed rotaercz closed 5 years ago

rotaercz commented 6 years ago

node -v v8.11.2

nightwatch -v nightwatch v0.9.21

selenium-server-standalone-3.9.1.jar

also using Chrome Driver

Windows 7 machine

When running Nightwatch tests:

nightwatch --test tests/file.js

I'm basically grabbing a long list of url links from a json file and going through the urls one by one and scraping data. After a while I get an error that looks similar to the following:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - Javascript heap out of memory
    1: node_module_register
    2: v8::internal::FatalProcessOutOfMemory
    3: v8::internal::FatalProcessOutOfMemory
    4: v8::internal::Factory::NewRawTwoByteString
    5: v8::internal::AsmJsScanner::IsNumberStart
    6: 0000028B313843C1

I've tried closing and reopening the browser hoping that would work around the out of memory issue but it still occurs. So I'm not sure why this is happening and thought I should report it.

beatfactor commented 5 years ago

I'm afraid this is not very much information and I wouldn't know exactly where to start with debugging this. If you're convinced the problem is with nightwatch, please open another ticket and try to include more info, as per the contributing guidelines.