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.

cypress crash during long test run with error thrown by plugin / IPC channel closed

See original GitHub issue

Current behavior:

After updating to 3.0.1 (from 3.0.0), after running a fairly large test run of 50 specs (compiled with the ts plugin), I’ve started to encounter these errors about 2/3 of the way through the suite. Every test afterwards fails immediately with the below stack trace:

Error: The following error was thrown by a plugin. We've stopped running your tests because a plugin crashed.

Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
    at ChildProcess.target.send (internal/child_process.js:584:16)
    at Object.send (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:34:27)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:74:28
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:77:16
    at Promise.cancellationExecute [as _execute] (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/debuggability.js:321:9)
    at Promise._resolveFromExecutor (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:481:18)
    at new Promise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:77:14)
    at Object.wrapParentPromise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:61:14)
    at Object.before:browser:launch (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:67:27)
    at Object.execute (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:109:38)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/browsers/electron.js:137:28
    at tryCatcher (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/browsers/electron.js:133:32
    at tryCatcher (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:691:18)
    at Async._drainQueue (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:781:20)
    at tryOnImmediate (timers.js:743:5)
    at processImmediate [as _immediateCallback] (timers.js:714:5)

    at Object.get (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/errors.js:129:13)
    at Object.wrapper [as get] (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/lodash/lodash.js:4968:19)
    at ChildProcess.handleError (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:92:24)
    at emitOne (events.js:115:13)
    at ChildProcess.emit (events.js:210:7)
    at ChildProcess.target.send (internal/child_process.js:588:12)
    at Object.send (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:34:27)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:74:28
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:77:16
    at Promise.cancellationExecute [as _execute] (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/debuggability.js:321:9)
    at Promise._resolveFromExecutor (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:481:18)
    at new Promise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:77:14)
    at Object.wrapParentPromise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/util.js:61:14)
    at Object.before:browser:launch (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:67:27)
    at Object.execute (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/plugins/index.js:109:38)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/browsers/electron.js:137:28
    at tryCatcher (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29)
    at /root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/lib/browsers/electron.js:133:32
    at tryCatcher (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:691:18)
    at Async._drainQueue (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/root/.cache/Cypress/3.0.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:781:20)
    at tryOnImmediate (timers.js:743:5)
    at processImmediate [as _immediateCallback] (timers.js:714:5)

Desired behavior:

Steps to reproduce:

I’m not sure if it’s specific to my suite – I’ve tried on a repo of simple tests (in the 50 or some odd range), but I think it has more to do with the size or complexity of the tests. I’ll have to do some work to get an example of the crash.

Versions

Cypress 3.0.1 CircleCI 2.0 Config cypress/browsers:chrome65-ff57 using the cypress run --browser chrome option

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mjhenkescommented, Jan 4, 2022

@SophieDePaula with this change #19553 we will be doing a better job of surfacing errors that occur in plugin code.

0reactions
SophieDePaulacommented, Jan 3, 2022

@jennifer-shehane can we reopen this thread? See my comment above

Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress-io/cypress - Gitter
We've stopped running your tests because a plugin crashed. Error [ERR_IPC_CHANNEL_CLOSED] [ERR_IPC_CHANNEL_CLOSED]: Channel closed at ...
Read more >
Changelog
When a chromium based browser tab or process crashes, Cypress will no longer hang indefinitely but will fail the current test and move...
Read more >
Cypress - test crashes if cy.task errors out/crashes and not ...
I am able to catch the exception but cypress crashes there. Any idea how to handle plugin crash scenario and move on to...
Read more >
Fixing Cypress errors part 1: chromium out of memory crashes
Error: Out of memory, chromium renderer crashed · Solution 1: Use --ipc=host Docker flag · Solution 2: Use --disable-dev-shm-usage Cypress flag.
Read more >
oDP - River Thames Conditions
Apple tv icon not showing, Ghost realtor nathan for you? ... Arsenal scorers, Hard drive test bootable, Low t center dallas texas, Statistique...
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