Closed laoneo closed 1 year ago
It happen to me too, in Mac.
Hi @laoneo. Thank you for opening an issue. Would you help me in getting a simpler way to reproduce this issue, by maybe using a small npm project or using cypress-test-tiny and making it possible to run the docker image directly from the cmd somewhat like this:
docker run -it \
-e DISPLAY \
-v $PWD:/e2e \
-v ~/.Xauthority:/root/.Xauthority:rw \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-w /e2e \
--entrypoint cypress \
cypress/included:12.8.1 open --project .
is this an option to reproduce this without the larger joomla steps?
Cloned the tiny project, changed into the project and run the command provided by you. Same result, on desktop it works but not on the laptop. Is there nothing suspicious in the log I provided to narrow down the issue? Looks like some errors do happen, but I have no clue what they mean.
@laoneo would you be able to send those errors here? It sounds like we are going to have difficulty reproducing this issue.
It's in the pr description in the debug log, pasting here an excerp:
Gtk-Message: 16:36:02.624: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:36:02.624: Failed to load module "canberra-gtk-module"
cypress:server:appdata path: /root/.config/Cypress/cy/production +87ms
[361:0310/163602.679940:ERROR:angle_platform_impl.cc(43)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[361:0310/163602.680100:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[361:0310/163602.680175:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Not initialized.
[361:0310/163602.680218:ERROR:gl_display.cc(920)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[361:0310/163602.680272:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[361:0310/163602.681442:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[208:0310/163602.690874:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
cypress:server:util:process_profiler error running process profiler: Error: Expected DataContext to already have been set via setCtx. If this is a testing context, make sure you are calling "setCtx" in a before hook, otherwise check the application flow. at m (<embedded>:4924:89919) at Object.a (<embedded>:5154:291700) at <embedded>:5160:28990 at r (<embedded>:5160:29020) at a (<embedded>:5160:29385) at Ls (<embedded>:3169:5294) at Function.Ai [as map] (<embedded>:3169:40855) at m (<embedded>:3169:68047) at yi (<embedded>:3169:40055) at <embedded>:3169:25750 at Bs (<embedded>:3169:5476) at jt (<embedded>:3169:25716) at Jo.value (<embedded>:3169:69776) at jt (<embedded>:3169:25707) at zo.toJSON.zo.valueOf.zo.value (<embedded>:3169:70799) at a (<embedded>:5160:29462) at h (<embedded>:5160:29478) +0ms
cypress:server:cypress starting in mode interactive with options { _: [ '/root/.cache/Cypress/12.7.0/Cypress/Cypress' ], sandbox: false, project: '/e2e', cwd: '/usr/src/Projects/cms4', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.14.1', invokedFromCli: true, config: {}, projectRoot: '/e2e' } +95ms
cypress:server:cypress running Electron currently +1ms
[378:0310/163602.696343:ERROR:angle_platform_impl.cc(43)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[378:0310/163602.696431:ERROR:angle_platform_impl.cc(43)] Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:997 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[378:0310/163602.696464:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Not initialized.
[378:0310/163602.696486:ERROR:gl_display.cc(920)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[378:0310/163602.696518:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
Have you verified the X11 server is running as well as xvfb
to attach display?
Possibly related to https://github.com/electron/electron/issues/36524
Yes it is, otherwise the window would not open at all. But the cypress window does open, it is just empty as you can see in my screenshot.
@laoneo makes sense. Out of curiosity, does it work on cypress 10.9.0
?
When you mean to start docker with the 10.9.0 version, then nope, same result, the empty window.
Hmmm, I'm not too sure where to go with this issue. I gave it a try in an ubuntu 22 VM and gave it the aggressive xhost +
to see if XServer would accept my connection and it seems to work. I'm not sure what is going on here but it seems machine specific. Since I can't recreate it, I am going to have to close the issue, but if you have more details on how we can reproduce this issue we can investigate further.
That's why I posted the debug log that you can have a look. As I wrote as well that it works on my desktop pc I hoped you will get something from the log why cypress is crashing.
Hi @laoneo , Right now there doesn't seem to be enough information to reproduce the problem on our end. We'll have to close this issue until we can reproduce it. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.
Please open a new issue with a reproducible example and link to this issue. Here are some tips for providing a Short, Self Contained, Correct, Example and our own Troubleshooting Cypress guide.
The problem is that the window of cypress opens and then it stays blank. How else should I give you more information. Not sure what it has to do with the environment as the window opens, but it crashes on the cypress side. So, how can I provide more information?
Hello @laoneo , At this point we just don't have a way to dig deeper without spending more time than we have available. This is not being widely reported and seems to be specific to your laptop configuration. If you find a way to reliably reproduce this problem outside of your specific laptop please do comment back and we can reopen and investigate.
I understand that it is something specific to my setup. But how can get some debug information for the cypress window when it crashes? If no window would open, then I would understand your attitude, but the window opens form cypress, so actually cypress loads, but crashes. So is there a way to get a crash report of the cypress window?
I understand that it is something specific to my setup. But how can get some debug information for the cypress window when it crashes? If no window would open, then I would understand your attitude, but the window opens form cypress, so actually cypress loads, but crashes. So is there a way to get a crash report of the cypress window?
@laoneo You should be able to open the dev tools and check for information there.
Thanks for the info. Unfortunately the cypress window doesn't react to any key press I do. It is not the browser who crashes, the cypress window where I can choose the browser and shows me the changelog is not loading fully.
Just for the record, I have the same issue with debian bookworm and kde on wayland
Switching to X11 solved the issue as recommended in #20891.
Current behavior
When starting cypres within the docker container "cypress/included:12.7.0" and do cypress open, then the cypress window opens but I do only see a white screen.
This happens on my asus x515 laptop. When I run the same on my desktop pc it works fine. Here is a link to the docker compose file and here to the endpoint script which executes cypress open command within the container.
Desired behavior
Cypress window opens.
Test code to reproduce
Cypress Version
12.0.7
Node version
The one from the cypress dockerdocker container
Operating System
Ubuntu 22
Debug Logs
Other
As mentioned, it works on the desktop but not on the laptop.