ppodgorsek / docker-robot-framework

Robot Framework in Docker
https://cloud.docker.com/repository/docker/ppodgorsek/robot-framework
MIT License
342 stars 235 forks source link

Random "WebDriverException: Message: invalid argument: can't kill an exited process" #294

Open pciosek opened 4 years ago

pciosek commented 4 years ago

Hello,

I getting randomly container crash with message "WebDriverException: Message: invalid argument: can't kill an exited process"

Here geckodriver.log: 1597299011627 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileA6nM7O" Unable to init server: Could not connect: Connection refused Error: cannot open display: :99

I tried to look for solution in google but what i found its about bad geckodriver version so its not a problem here.

Maybe someone had similar problem? Would be grateful for some help.

mrteera commented 3 years ago

I also have the same problem

ppodgorsek commented 3 years ago

Could you provide more information such as the command-line you are using and a test example please?

pciosek commented 3 years ago

Hey,

I found solution to stabilize image.

It seems xvfb on alpine sometimes run robot and browser before X server is ready to accept connection. All problems has gone when i changed to build image on debian layer.

I found a tip on this issue here: https://gitlab.gnome.org/GNOME/gtk/-/issues/1116

It's pretty hard to recreate the problem. You have to run tons of containers to encounter the issue (yes we do).