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

Fix specs randomly hanging when running in CI with electron #2322

Closed
brian-mann opened this issue Aug 10, 2018 · 0 comments · Fixed by #2323
Closed

Fix specs randomly hanging when running in CI with electron #2322

brian-mann opened this issue Aug 10, 2018 · 0 comments · Fixed by #2323
Assignees
Milestone

Comments

@brian-mann
Copy link
Member

brian-mann commented Aug 10, 2018

We've been working to try to figure out why the Electron browser randomly hangs when attempting to launch specs for awhile now.

After adding many more debug lines, I believe I've tracked it down to the line causing this problem.

I believe it is related to attempting to set the electron menu when options.show = false due to running headlessly, possibly also related to XVFB.

This batch of logs shows that it is the last thing logged before it hangs...

cypress:server:windows �instantiated browser window �16ms�
�cypress:server:windows �attaching listeners (1) �0ms�
�cypress:server:windows �attaching listeners (2) �1ms�
�cypress:server:windows �attaching listeners (3) �0ms�
�cypress:server:windows �attaching listeners (4) �0ms�
�cypress:server:browsers:electron �launching window instance �0ms�
�cypress:server:browsers:electron �setting menu �0ms�

The solution may be as simple as just not setting the menu when in headless mode. We'll rerun this build a few times and if nothing logs then I'll know for sure.

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

Successfully merging a pull request may close this issue.

2 participants