You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
UnknownError: session deleted because of page crash from tab crashed #20
Same here. I have been trying many docker images built for running selenium+protractor +xvfb (includes one of @elgalu ;) ). Look like this is dues to docker. Everything ok on real machine or vagrant+virtualbox.
Reacted by _spaceb, David J. M. Karlsen and danielangelov91
Yes, Firefox works ok fortunately.
I guess Chrome guys would be able to fix the problem if someone gets together a sample project that reproduces the problem and host it somewhere.
Is there issue already opened for Chrome browser in docker. Should I submit a new one for Chromium?
We are running into similar issue with our application same as with http://www.google.com/adwords
We use own docker configuration similar to selenium/node-chrome-debug
Steps to reproduce manually on public selenium image:
docker run -d -p 4444:4444 --name selenium-hub selenium/hub
docker run -it -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug
start vnc viewver on default docker IP 127.0.0.1:5900
or for boot2docker IP at 192.168.69.103:5900
(default password is 'secret')
Right mouse click. Open Applications\Terminal Emulators\XTerm
run following commands
FYI, I have found that recent version(s) of Chrome seem to crash in Docker containers, on certain pages, due to too small /dev/shm. May or may not be relevant to this issue.
Reacted by ldeck, roscamaxim, Konstantin Naumov, John Girata, Leonardo Majowka, zoufeng, mizumen, ggqshr, Debasish padhy, Serhat M. Dundar and 27 more
Reacted by Eemeli Palotie, Ramya Elango, dgtlmoon, Lynn Romich, URA, Subin Varghese, Kamalakannan, rs6g10, Xun Gong, ruby~ and 55 more
Reacted by Marc Schreiber, Salim Muthalib, Michal Hernas, James Hush, Huan Li, Stanisław Wasiutyński, Everton Eckert Schneider, Lynn Romich, URA, Elhay Avihezer and 62 more
Reacted by daming-lu, gluk, Geza Kerecsenyi, Nathan Broadbent, Morgan Connolly and Durval Carvalho
Reacted by daming-lu, Geza Kerecsenyi, Morgan Connolly and Durval Carvalho
Reacted by Paul Bruce, Koen Kanters, Jay, yamyamyuo, David Rubio Vidal, petrakovich-g-n, jinlin0, Konstantin Naumov, StellarNear, Shahriyar Guliyev and 17 more
Reacted by daming-lu, DojoFullStack, Geza Kerecsenyi, Morgan Connolly, Rafael Barriuso and Durval Carvalho
Is there a way to do this in Kubernetes on GCP?
spec:
volumes:
- name: shm-vol
hostPath:
path: /dev/shm
containers:
volumeMounts:
- name: shm-vol
mountPath: /dev/shm
Hi. I'm still having this issue on some of the pods spawned by the zalenium. Where should I set this "/dev/shm:/dev/shm" in my yaml when deploying zalenium to K8S?
None of the solutions given on the internet worked for me. Including increasing /dev/shm.
The problem in my case was a memory leak in the application that wasn't discovered by real human or browser but was mainly caused by Mink driver.
I had in my HTML a following piece of code
<inputtype="text" name="content" value="{{ a long HTML template string here }}" />
When this view was tested, Mink tried to execute a step I follow "Close", which was searching the DOM to find Close button. But because the long HTML template was there, I assume Mink could not handle HTML in HTML and it caused memory leak which in result crashed the chrome driver with the error.
To resolve this, I had to change the way I store the HTML template (via ajax, not form) and no more crashing.
I encountered this issue when I calling the executeScript method to try to get an object from the web page and I'm not using selenium in docker. I found a workaround for this, that is calling JSON.stringify() in the web page before returning the object. Something like below.
constdataStr=awaitbrowser.driver.executeScript('return JSON.stringify(obj)');// Parse the JSON string.constdata=JSON.parse(dataStr);
Activity
elgalu commentedon Jun 1, 2015
Note: playing with certain Chrome options like --no-sandbox didn't help
elgalu commentedon Jun 16, 2015
https://code.google.com/p/chromedriver/issues/detail?id=1097
bitliner commentedon Jun 28, 2015
Same here, using
selenium/standalone-chrome:2.46.0khoaln commentedon Jun 30, 2015
Same here. I have been trying many docker images built for running selenium+protractor +xvfb (includes one of @elgalu ;) ). Look like this is dues to docker. Everything ok on real machine or vagrant+virtualbox.
bitliner commentedon Jun 30, 2015
I had to switch to firefox, and it does not happen anymore.
elgalu commentedon Jun 30, 2015
Yes, Firefox works ok fortunately.
I guess Chrome guys would be able to fix the problem if someone gets together a sample project that reproduces the problem and host it somewhere.
smacgaha commentedon Jul 1, 2015
When I run my suite without test cases that download files, I don't see this error. Has anyone else tried this?
kkochubey1 commentedon Aug 12, 2015
Chrome 42 - 44 crashes when manually open http://www.google.com/adwords
Is there issue already opened for Chrome browser in docker. Should I submit a new one for Chromium?
We are running into similar issue with our application same as with http://www.google.com/adwords
We use own docker configuration similar to selenium/node-chrome-debug
Steps to reproduce manually on public selenium image:
docker run -d -p 4444:4444 --name selenium-hub selenium/hub
docker run -it -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug
start vnc viewver on default docker IP 127.0.0.1:5900
or for boot2docker IP at 192.168.69.103:5900
(default password is 'secret')
Right mouse click. Open Applications\Terminal Emulators\XTerm
run following commands
In google chrome window type
http://www.google.com/adwords
It loads page and then shows: Aw, Snap!
It is reproducible in all Chrome browsers starting 42 (till latest 44)
Currently on Chrome/44.0.2403.155
It is not reproducible on the our old docker-selenium image with older Chrome/41.0.2272.89
Please refer correct duplicate or let me know where I can submit this issue?
I can provide additional details, logs if needed?
kkochubey1 commentedon Aug 12, 2015
Submitted https://code.google.com/p/chromium/issues/detail?id=519952
elgalu commentedon Aug 13, 2015
Best chance for this to be fixed here:
https://code.google.com/p/chromium/issues/detail?id=519952
issuj commentedon Aug 20, 2015
FYI, I have found that recent version(s) of Chrome seem to crash in Docker containers, on certain pages, due to too small /dev/shm. May or may not be relevant to this issue.
elgalu commentedon Aug 20, 2015
OMG @issuj you figured this out, I just tried below code and Chrome no longer crashes:
Simpy mount
-v /dev/shm:/dev/shmOr, longer, create a big shm
docker run --privilegedHowever it would be nice to avoid privileged mode.
Any ideas @stonemaster @rongearley @jvermillard ?
Other refs:
moby/moby#3505 (comment)
moby/moby#4981 (comment)
moby/moby#2606 (comment)
afiestas commentedon Aug 22, 2015
We were having the same issue, fixed by remounting /dev/shm with bigger size.
44 remaining items
Disable images in frontend test
rebendajirijr commentedon Jul 19, 2018
I also experience this issue when running tests in gitlab CI:

apdarshan commentedon Aug 20, 2018
Saved my life! Just
shm_size: 2Gin my docker-compose file did the trick. 💯- Gitignore fix
CampsiteHelper commentedon Dec 27, 2018
Should this not be resolved within the base container definition?
ivasilko commentedon Jun 25, 2019
baflQA commentedon Jul 8, 2019
Hi. I'm still having this issue on some of the pods spawned by the zalenium. Where should I set this "/dev/shm:/dev/shm" in my yaml when deploying zalenium to K8S?
diemol commentedon Jul 9, 2019
@baflQA, this should work https://stackoverflow.com/questions/46085748/define-size-for-dev-shm-on-container-engine/46434614#46434614
Not sure if k8s has a different way to do it these days.
grzegorztomasiak commentedon Aug 14, 2019
Just to add my few cents about this issue.
None of the solutions given on the internet worked for me. Including increasing /dev/shm.
The problem in my case was a memory leak in the application that wasn't discovered by real human or browser but was mainly caused by Mink driver.
I had in my HTML a following piece of code
When this view was tested, Mink tried to execute a step I follow "Close", which was searching the DOM to find Close button. But because the long HTML template was there, I assume Mink could not handle HTML in HTML and it caused memory leak which in result crashed the chrome driver with the error.
To resolve this, I had to change the way I store the HTML template (via ajax, not form) and no more crashing.
viniciusd commentedon Sep 13, 2019
Using this stackoverflow solution on Kubernetes, worked like a charm
yuezk commentedon Jan 13, 2020
I encountered this issue when I calling the
executeScriptmethod to try to get an object from the web page and I'm not using selenium in docker. I found a workaround for this, that is callingJSON.stringify()in the web page before returning the object. Something like below.Add `--disable-dev-shm-usage`
saramorsi commentedon Jan 14, 2021
How do I run these commands? and what is $id in this case?
[UPDATE]