-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Firefox Browser is Crashing frequently for both latest and previous version #397
Comments
I believe it is connected to this underlying geckodriver issue: |
I think we may be encountering the same error. We run CI builds using a custom docker image which starts from StandaloneFirefox node. Our firefox tests builds fail randomly because firefox crashes and (in our case) karma disconnects from the browser. We are facing this issue since Firefox v51.0. |
As pointed out before it seems to be an issue with the geckodriver. I could solve it by using an older firefox image. |
@pierre-jenchen Do you know when releases are made? I read somewhere that FF 52 should possibly fix this issue. |
Last week according to https://wiki.mozilla.org/RapidRelease/Calendar . |
Yeah I know, but when will be new docker selenium release. |
I have no clue. Sorry. |
@pierre-jenchen @cvakiitho @oliyavan It seems that the issue is related to some missing dependencies for the version of Firefox lower than the 52 such as what @awilkins says in the issue #415 On my side I have fixed it for Firefox 52 - 51.0.1 using a custom image that can be found here I am working on a proper solution for issuing a PR for fixing this issue. On another hand, my machines are working properly as soon as you don't have to use basic authentication. If so it crashes quite often. I have tried to limit the amount of crash using a specific profile but it doesn't seem to be efficient. When trying on a real browser it works. Any clue? |
Finally got some time to test it out, it didn't help in our case. For me, it is probably execute script that crashes firefox, no idea why there are some chromium files in log:
|
@cvakiitho : it doesn't work with the 52.0 or 51.0.1? I still have some crash on my side but it looks like being thrown because of the error happening on my site. A solution might be to play with the profile for avoiding such a crash |
@JackTheRipper 52 I used your image. |
@cvakiitho could you provide a full stack trace with a URL for performing tests on my side? |
My tests are passing on both versions as soon as I am not using basic authentication |
@JackTheRipper |
@cvakiitho normally it should be fixed by upgrading the base image to the selenium webdriver v3.3+ |
@cvakiitho I have just tried out with the Geckodriver 0.15.0 and the webdriver v3.3.1. No crashes. (the trick without '/' at the end of the URL doesn't work anymore --') |
sounds like this is a geckodriver issue? |
@ddavison Following what we said yesterday and what I have experienced today I am going to perform the following tests:
I don't think that the issue is only related to the Gecko Driver. But before arguing, let's wait for the result of my tests. ETA: Sunday 26th of March |
@ddavison : please find the tests and their result with and without my PR: https://gist.github.com/jackTheRipper/af09b57f7308b6f0c9983ed19615405c Here is tested the version 51.0.1 (the main issue). The tests for the 52 aren't relevant since my |
@cvakiitho : we found the trick for the basic authentication. Trying to run the test against https://username:[email protected]/ fails. However if you request the same domain name by targeting your entry file (e.g.: https://username:[email protected]/index.html) it works. So yes this bug for the basic authentication is related to the Geckodriver such as what @ddavison said. But the issue with the Firefox version lower than 52 has nothing to see with the Geckodriver (see my gist). |
Any update on this? I'm experiencing this issue with the latest docker image and am not sure if there is a solution based on @JackTheRipper 's testing. |
Hi @brandomr my testings (available in the gist I shared earlier) are showing that with my PR it works :) Feel free to give it a try. Let me know if you have an issue (if you could provide the logs it would be lovely). |
@JackTheRipper great I'll give it a shot. Thanks! |
@JackTheRipper I built from your PR but still get crashes with |
@brandomr : I am using currently this node: https://hub.docker.com/r/travix/selenium-node-firefox/ I don't have any issues with my testing environment for now. |
Ok, I'll give that a shot. Thanks! |
@JackTheRipper I personally have the issue even on your image. I thought it has something to do with our network ( corp proxy, dns,...), but https://github.com/elgalu/docker-selenium image is working fine. |
Taking back my previous statement, I was just lucky with some tests. However, i built 54 beta firefox in this image : https://hub.docker.com/r/cvakiitho/docker-selenium/ |
I had this issue, and the fix was to do the same shared-memory mapping that this project's README recommends for Chrome. The README should be updated to recommend the same practice for Firefox! services:
firefox:
image: "selenium/node-firefox-debug:3.3"
environment:
HUB_PORT_4444_TCP_ADDR: selenium-hub
HUB_PORT_4444_TCP_PORT: 4444
HUB_ENV_no_proxy:
volumes:
- "/dev/shm:/dev/shm" |
As suggested later in geckodriver bug shm-size 2g is better, so I created PR: |
@cvakiitho I actually used your image (cvakiitho/docker-selenium) until now and it worked like a charm, no crashes. However this image disappeared today? I found cvakiitho/firefox instead, however it is broken:
|
@amirplanet Ouch, I deleted it today during a cleanup - because after the merge of a PR I made I just used normal selenium/node-firefox:3.4.0 . docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:3.4.0 or in docker-compose
|
@cvakiitho cool I will try that. |
@amirplanet cvakiitho/firefox:3.5.3 is actually see why I need to do a cleanup? :) , but I'll keep it if you want it :) cvakiitho/firefox:latest will be nightly channel after docker hub starts building my queue : |
@cvakiitho regarding what you wrote: 'docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:3.4.0, or in docker-compose' My problem is that I'm using a Kubernetes env, and still didn't find a proper way to specify shm_size in Kubernetes yaml files. Any idea? |
Please, if possible, also keep cvakiitho/firefox:3.5.3 since it's the only one that seems to be working for me. Thanks! |
Hi all, This issue should not be happening anymore with the latest releases, right? Does anyone still have the issue? @amirplanet, check here a workaround for the shm thing in k8s, you would need to mount the volume to achieve that. |
Hi all, We didn't get more feedback on this, so I'll close the issue. Seems that things are more stable in the recent releases. If someone still has this same issue with the latest release, please comment with enough info so we can reproduce it and find a way to solve it. Thanks! |
Meta -
Image(s): selenium/node-firefox
Docker Version: 1.12.6
OS: RHEL 7
Expected Behavior -
we are running selenium test scripts for our internal application testing, we start looking to feasibility of run nodes in the docker containers instead of VMs, we configured and we running the test cases in normal case everything working, we try to execute series it should give the result with a screenshrtst.
Actual Behavior -
Instead of that browser tab is crashing again and again, we tried with old version of firefox also but still,
browser tab getting crashed.
So we diced to check with Debug image, please find the attachment for screen shot.
Error logs of the node:
The text was updated successfully, but these errors were encountered: