-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Do not exit with 0 when running with NODE_OPTIONS #1676
Comments
The option itself is undocumented v8 flag
|
Some experiments
|
Electron v1.8.3, v2.0.0 crashes when |
Just a hunch - are you running the latest node 8.11.2? There were a great number of improvements in the crypto stack related to cache bloat issues. |
We are on node 8.2.1 - https://github.com/cypress-io/cypress/blob/develop/.node-version#L2 |
I think this is an interesting bug that surfaces a missing error handling - when we attempt to start the binary, but fail but CLI still thinks everything is great |
On High Sierra cypress segfaults for me if I have to Versions: Cypress 3.1.0 |
I also was able to start cypress again by unsetting the environment variable, Node: 8.11.3 Pasting the error code so others may find this via google search.
|
Same issue for me on node 8.13.0 and cypress 3.1.2 |
same on my side using the 2019-01-10T14:32:36.824Z cypress:cli verifying Cypress app
2019-01-10T14:32:36.824Z cypress:cli checking environment variables
2019-01-10T14:32:36.825Z cypress:cli checking if executable exists /root/.cache/Cypress/3.1.4/Cypress/Cypress
2019-01-10T14:32:36.827Z cypress:cli Binary is executable? : true
2019-01-10T14:32:36.827Z cypress:cli binaryDir is /root/.cache/Cypress/3.1.4/Cypress
2019-01-10T14:32:36.827Z cypress:cli Reading binary package.json from: /root/.cache/Cypress/3.1.4/Cypress/resources/app/package.json
2019-01-10T14:32:36.830Z cypress:cli Found binary version 3.1.4 installed in: /root/.cache/Cypress/3.1.4/Cypress
2019-01-10T14:32:36.831Z cypress:cli could not read binary_state.json file
2019-01-10T14:32:36.831Z cypress:cli {}
2019-01-10T14:32:36.831Z cypress:cli is Verified ? undefined
2019-01-10T14:32:36.831Z cypress:cli running binary verification check 3.1.4
It looks like this is your first time using Cypress: 3.1.4
[15:32:36] Verifying Cypress can run /root/.cache/Cypress/3.1.4/Cypress [started]
2019-01-10T14:32:36.836Z cypress:cli clearing out the verified version
2019-01-10T14:32:36.837Z cypress:cli running smoke test
2019-01-10T14:32:36.837Z cypress:cli using Cypress executable /root/.cache/Cypress/3.1.4/Cypress/Cypress
2019-01-10T14:32:36.837Z cypress:cli needs XVFB? true
2019-01-10T14:32:36.837Z cypress:cli Starting XVFB
2019-01-10T14:32:36.924Z cypress:cli smoke test command: /root/.cache/Cypress/3.1.4/Cypress/Cypress --smoke-test --ping=630
2019-01-10T14:32:37.067Z cypress:cli Smoke test failed: { Error: Command failed: /root/.cache/Cypress/3.1.4/Cypress/Cypress --smoke-test --ping=630
Xlib: extension "RANDR" missing on display ":99".
at makeError (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/execa/index.js:277:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
code: null,
stdout: '',
stderr: 'Xlib: extension "RANDR" missing on display ":99".\n',
failed: true,
signal: 'SIGSEGV',
cmd: '/root/.cache/Cypress/3.1.4/Cypress/Cypress --smoke-test --ping=630',
timedOut: false,
killed: false }
2019-01-10T14:32:37.152Z cypress:cli Stopping XVFB
[15:32:37] Verifying Cypress can run /root/.cache/Cypress/3.1.4/Cypress [failed]
Error: Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Xlib: extension "RANDR" missing on display ":99".
----------
Platform: linux (Debian - 8.11)
Cypress Version: 3.1.4
Error: Error: Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Xlib: extension "RANDR" missing on display ":99".
----------
Platform: linux (Debian - 8.11)
Cypress Version: 3.1.4
at CatchSubscriber.selector (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/@nrwl/builders/src/cypress/cypress.builder.js:66:19)
at CatchSubscriber.error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/operators/catchError.js:48:31)
at TakeSubscriber.Subscriber._error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:93:26)
at TakeSubscriber.Subscriber.error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:73:18)
at MergeMapSubscriber.OuterSubscriber.notifyError (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/OuterSubscriber.js:26:26)
at InnerSubscriber._error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/InnerSubscriber.js:31:21)
at InnerSubscriber.Subscriber.error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:73:18)
at MapSubscriber.Subscriber._error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:93:26)
at MapSubscriber.Subscriber.error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:73:18)
at TapSubscriber._error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/operators/tap.js:75:26)
at TapSubscriber.Subscriber.error (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/Subscriber.js:73:18)
at /builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/rxjs/internal/util/subscribeToPromise.js:10:43
at tryCatcher (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/builds/bgenbmdoe/HMI/app/client/hmi-client-workspace/node_modules/cypress/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5) |
Electron is set to be upgraded during our 4.0 release #2840 |
This looks to have been resolved in Electron 2.0.3 - we will be upgrading to Electron 2.0.18 #4001 as of the next release (3.3.0), so this is pending release. |
@jennifer-shehane this bug/problem is breaking most of our build pipelines currently and we do not want to release without the tests passing. We tried: Both did not work and cypress still fails to start. Can we do something else? Can you point me to another workaround until the next release is out? 🙏 |
@codeofsumit Unsetting the To see all environment variables currently setMacOS / Linuxprintenv WindowsSET To unset
|
Released in |
Happened to me in Windows 10 with 3.3.0. Solution was unsetting NODE_OPTIONS. Cypress: 3.3.0 |
Just got the same error on the latest Cypress version. I tried to unset Update: After a few attempts of re-installing, I was able to launch successfully it.
|
bug
When using
NODE_OPTIONS=--max_old_space_size=4096
Cypress run through CLI silently fails but the exit code is 0.The text was updated successfully, but these errors were encountered: