Docker crashes when renderer process eats up too much memory cypress?

1.8k Views Asked by At

Build Error! Build Error: We did not receive any logs from your build for a while so it was stopped

We detected that the Chromium Renderer process just crashed. This is the equivalent to seeing the 'sad face' when Chrome dies. This can happen for a number of different reasons:

  • You wrote an endless loop and you must fix your own code
  • There is a memory leak in Cypress (unlikely but possible)
  • You are running Docker (there is an easy fix for this: see link below)
  • You are running lots of tests on a memory intense application
  • You are running in a memory starved VM environment
  • There are problems with your GPU / GPU drivers
  • There are browser bugs in Chromium You can learn more including how to fix Docker here: https://on.cypress.io/renderer-process-crashed
1

There are 1 best solutions below

1
Bogdan Cimpoesu On

I just had this problem when running on a docker image in gitlab pipelines. Apparently the default electron browser crashes starting with 6.4.0. Adding "--browser chrome" fixed it for me.

cypress run --browser chrome