-
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
'Aw, Snap' Error in Test Runner consistently occurs every minute when a test is running during cypress open #1937
Comments
@Nate-Watts this does seem strange that the tests consistently fail after 60 seconds. Could you not reproduce the failure with just |
@bkucera It has been crashing and giving me an 'Aw, Snap' error, but two times I have gotten a failed test that says 'Cannot read property 'access' of undefined' which occurred in the beforeEach hook. It is only occurring on the third 'it' block. Here is my custom login command and below is the clear session storage command that is being used. What is happening in the login command is that we visit our login endpoint and a cookie is stored before giving it any credentials. The way we authenticate is by checking for this initial cookie as well as a token that is created once the 'POST' command is made with the username and password. This is why I have to request our login endpoint first, and then request it again with a post command. I am not sure whether any of this information helps, but another thing I would like to mention is that for the past week I have been receiving this socket time out error. Whenever this was received I would just run the test again and it would work as expected. I haven't been getting this error anymore, but it seems that maybe chrome is just crashing now in its place? Not sure how, just a thought. To add on to that, I just ran a test a noticed all these XHR requests are being aborted on each login command, but the first two 'it' blocks are not failing, only the last. |
I am having the exact same issue, says Aw, Snap after 60 seconds. I am on 3.0.1, which I recently upgraded. I am testing it on my local. Cannot reproduce if I were to just cy.wait(60000). |
These errors started happening shortly after we migrated to node v.10. We also very recently switched to yarn v.1.7 from npm. Hope you'll find these data points useful. Best of luck Cypress Team <3 |
Can any of you explain if you are getting this via That would be extremely helpful to know. As it stands there is not enough information here for us to be able to reproduce. An animated gif or video of the problem would be helpful to see. If this is JUST happening on Do any of you all use Has this always been happening? Did it recently start happening? |
Only with
I will see if I can post a gif
Yes I do have
I have run
Other developers in my team have occasionally ran in to this issue before (with Thanks for looking into this issue |
Then I'm very confident its due to the debugging features we enable with During a I would first say that you should really only be using There are some older ones too like these...
You can turn off the debugging features of Cypress by writing As for the Read my comment here for a workaround you can pop in today: #1951 (comment) When Can you also try running Electron 59 locally with In the past you were likely seeing these messages for a completely different reason - possibly because you may also have an application that puts significant pressure on the browser's memory. |
So I tried to run cypress open with Electron 59. After 60- 70 secs I see blank screen in Electron, also memory usage for cypress app around 2.7GB, and I see following error dump in cypress helper (in terminal), not sure if it will be helpful
|
Yup this seems like a memory issue caused by how we hold onto references for debuggability with Likely will be fixed by what I said in my previous comment. |
{ numTestsKeptInMemory: 0 } works for me. I have suffered from this issue for a long time. |
@MaznzWz: Mine too problem was solved using numTestsKeptInMemory: 0. But, it comes to be temporarily solution. The problem comes again even if numTestsKeptInMemory is set to 0. Facing the same Aw Snap!!. Anyone has some different solution to this? |
@brian-mann: I am facing this issue. I have used. "numTestskeptInMemory: 0" in my cypress.json file. Also, Its coming we are running only ONE testcase and still browser crashes. Can you please share the workaround for this ? |
@Prashant-Kan Please see this issue: #4164 |
Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen. |
I can confirm it still exists for cypress 9.5.0 and versions:
We have some complex app (large SPA based on react), that constantly fails within 60s after testing started on |
coredump_chromium_101_cypress.dmp.txt |
Issue still happening for us. Cypress crashes during execution with cypress open, with 'Aw,Snap' error when the lines of code are more( in our case 400-500) even with the below setting |
Yes, We also facing the same. when test runs for some time around 15 minutes. In the end we have to use the solution as "numTestsKeptInMemory" to 0 in cypress.json and then run that testcase. various bugs we have come across after the cypress version 8.7. Due to which we are not able to update the version and use. Cypress has become unstable after that (at least for our application ) |
This issue is still existing even today with cypress 12.3 version .. test was running for 15 mins and then suddenly it broke into aw snap |
Current behavior:
Cypress Test Runner displays the chrome 'Aw, Snap' error on any commands run after 60 seconds
Desired behavior:
To hopefully never see the 'Aw, Snap' error ever again.
Steps to reproduce:
Am able to reproduce in my own environment when simply running any tests that run commands after a test has been running for at least 60 seconds.
These are the custom Cypress commands that I am running in multiple tests. If I break up the single test file into multiple test files that run less than 60 seconds all of the tests pass. Longer than that and 'Aw, Snap' error is returned consistently every time.
Versions
Cypress 3.0.1
MacOs Sierra
Chrome 67
The text was updated successfully, but these errors were encountered: