Coder Social home page Coder Social logo

Cypress crashes on SIGINT about cypress HOT 4 OPEN

krishantaylor avatar krishantaylor commented on June 2, 2024
Cypress crashes on SIGINT

from cypress.

Comments (4)

jennifer-shehane avatar jennifer-shehane commented on June 2, 2024

Could you run Cypress in debug mode mode and print the entire set of logs here when you exit the process?

from cypress.

jmosley5 avatar jmosley5 commented on June 2, 2024

If it's okay to add, I'm experiencing the same, while only running Cypress. I'm used to opening and closing Cypress dashboard through the terminal

Example:
To Open: cy:open
And, then closing using the terminal:
CTRL + C

Now I get the same error described @krishantaylor.

from cypress.

krishantaylor avatar krishantaylor commented on June 2, 2024

It doesn't crash in debug mode.

This triggers the crash.

> yarn cypress open --e2e --browser chrome

# Ctrl+C
We detected that the Chrome browser process closed unexpectedly.

We have failed the current spec and aborted the run.

This doesn't trigger a crash.

> DEBUG=cypress:* yarn cypress open --e2e --browser chrome

# Ctrl+C
write EPIPE
Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:931:11)
    at Socket._write (node:net:943:8)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Socket.write (node:internal/streams/writable:337:10)
    at e.log (<embedded>:1:110372)
    at i (<embedded>:1:103195)
    at v._onTargetDestroyed (<embedded>:4291:102687)
    at _.<anonymous> (<embedded>:4291:100158)
    at _.emit (node:events:514:28)
    at _._handleMessage (<embedded>:2262:580235)
    at A.<anonymous> (<embedded>:2262:579669)
    at A.emit (node:events:514:28)
    at f.U (<embedded>:2262:564853)
    at f.emit (node:events:514:28)
    at f.dataMessage (<embedded>:2262:545228)
    at f.getData (<embedded>:2262:544410)
    at f.startLoop (<embedded>:2262:541117)
    at f._write (<embedded>:2262:540472)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at f.write (node:internal/streams/writable:337:10)
    at Socket.W (<embedded>:2262:565539)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

from cypress.

MikeMcC399 avatar MikeMcC399 commented on June 2, 2024
  • I've logged a similar issue #29232 where the error message

We detected that the electron tab running Cypress tests closed unexpectedly.

We have failed the current spec and aborted the run.

is logged when then Cypress Runner window is closed using the menu selection (File > Close Window)

Until the last Cypress 12.x version, no error was output and starting from Cypress 13.0.0 the error message is output when closing the window. In this case there is no Ctrl-C being used.

Since the repro steps are different and this issue says it was still working in Cypress 13.6.6 I have kept the issues separate.

from cypress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.