Skip to content
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

Crash running Cypress e2e using Electron v35.1.2: "Terminating renderer for bad IPC message, reason 114" #30572

Open
1 of 4 tasks
andyImatest opened this issue Apr 1, 2025 · 0 comments

Comments

@andyImatest
Copy link

andyImatest commented Apr 1, 2025

Current Behavior

Hi, while running
nx run my-project-ng-e2e:open-cypress

I get this output and the cypress app never loads (blank screen):
cypress open

DevTools listening on ws://127.0.0.1:57624/devtools/browser/690c1efb-00fc-4dba-99c2-63f4615a8da7
2025-04-01 11:16:11.515 Cypress[62333:487350] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
[62333:0401/111615.605334:ERROR:bad_message.cc(29)] Terminating renderer for bad IPC message, reason 114

I was able to fix this by bumping cypress to the latest (>=14.0.0), but then had issues when migrating to the latest nx since cypress 14 is not allowed through @nx/cypress

Could you bump allowed versions of cypress in the plugin to allow v14?

Expected Behavior

Cypress to open and let me execute tests.

GitHub Repo

No response

Steps to Reproduce

  1. Have a monorepo that uses latest nx 20.7.0 and Electron 35.1.2 with an Angular front end.
  2. Run nx run my-project-ng-e2e:open-cypress

Nx Report

NX   Report complete - copy this into the issue template

Node           : 23.1.0
OS             : darwin-x64
Native Target  : x86_64-macos
npm            : 10.9.0

nx                     : 20.7.0
@nx/js                 : 20.7.0
@nx/jest               : 20.7.0
@nx/eslint             : 20.7.0
@nx/workspace          : 20.7.0
@nx/angular            : 20.7.0
@nx/cypress            : 20.7.0
@nx/devkit             : 20.7.0
@nx/eslint-plugin      : 20.7.0
@nx/module-federation  : 20.7.0
@nx/rspack             : 20.7.0
@nx/web                : 20.7.0
@nx/webpack            : 20.7.0
typescript             : 5.5.4
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
angular-eslint     : 18.4.3
mdb-angular-ui-kit : 7.1.0
nx-electron        : 20.0.2
---------------------------------------
Cache Usage: 13.33 KB / 92.64 GB

Failure Logs

> nx run cascade-ng-e2e:open-cypress

> cypress open


DevTools listening on ws://127.0.0.1:57764/devtools/browser/357d1e77-4e4d-4af5-b765-d9ca03616ac5
2025-04-01 11:21:58.968 Cypress[64536:496058] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
[64536:0401/112202.785677:ERROR:bad_message.cc(29)] Terminating renderer for bad IPC message, reason 114

Package Manager Version

npm 10.9.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Note overriding in package.json to latest cypress works, but I prefer not to use overrides when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant