Skip to content

Full Chrome Browser crash about 80% of the time on input.clear() + {enter} #30184

@dstj

Description

@dstj

Description

This is a weird weird one. I log it for posterity and maybe those who know more about Cypress will understand it. When running multiple test folders locally, the whole Chrome process crashes (the We detected that the Chrome Renderer process just crashed. crash) on the third test. Always on that third test.

If I comment out that third test, all 17 other tests pass.

image

image

Now the tricky parts:

  1. If I execute just the folder containing that test, all good. no crash!

  2. Here's the code where it crashes:

function clearTableSearch() {
	cy.get('.filter-search').find('input').as('searchBox')
	cy.get('@searchBox').clear();
	cy.get('@searchBox').type('{enter}');
}

Nothing fancy here, but if I add a cy.wait(500); just after the clear(), all good, no crash!

  1. Weirder still, if I click to expand / collapse the test "text logs" while the tests are running, then all test pass, no crash... !?!

I've reproduced this many many times while trying to understand what is causing the crashes. I doesn't crash 100% of the time, but like 80% so that running tests on an automated build process is impossible.

I'd like to help debug further, but I have no idea how to help

URL of Issue(s)

localhost

Browser

Cypress v13.14.1
Chrome 128
ChromeDriver 128.0.6613.119 (6e439cfca4deda5954b0c74cde9b521c03cb31ad-refs/branch-heads/6613@{#1464})

Tested with Electron v118 too.

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

Machine specs:
AMD Ryzen 7 5800X running around 35%
32 GB of RAM (around 71% in use while running the tests)

Tried with and without experimentalMemoryManagement=true numTestsKeptInMemory=0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions