-
-
Notifications
You must be signed in to change notification settings - Fork 332
UnknownError: session deleted because of page crash from tab crashed #20
Comments
Note: playing with certain Chrome options like --no-sandbox didn't help
|
Same here, using |
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. |
I had to switch to firefox, and it does not happen anymore. |
Yes, Firefox works ok fortunately. |
When I run my suite without test cases that download files, I don't see this error. Has anyone else tried this? |
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 Steps to reproduce manually on public selenium image: start vnc viewver on default docker IP 127.0.0.1:5900 Right mouse click. Open Applications\Terminal Emulators\XTerm
In google chrome window type It loads page and then shows: Aw, Snap! It is reproducible in all Chrome browsers starting 42 (till latest 44) 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? |
Best chance for this to be fixed here: |
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. |
OMG @issuj you figured this out, I just tried below code and Chrome no longer crashes: Simpy mount Or, longer, create a big shm
docker exec $id sudo umount /dev/shm
docker exec $id sudo mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=512M tmpfs /dev/shm However it would be nice to avoid privileged mode. Other refs: |
We were having the same issue, fixed by remounting /dev/shm with bigger size. |
Awesome! It works for us! |
Quoting @kkochubey1 solution: It also works if use |
From elgalu/docker-selenium#20 (comment) Should be fixed, after docker implement `-shm` argument in moby/moby#3505
Does anyone know how to connect /dev/shm using docker-compose. Couldn't find anything in the reference
^doesn't work on mac. |
@afthar It works like a charm on my mac machine.
|
@arkaitzgarro works for me as well. |
@afthar Works for me on a Mac with docker 1.9.1, like @arkaitzgarro mentioned. |
Is there a way to do this in Kubernetes on GCP? |
How big should it be (64M is the default it seems)? Going to try using |
Should this not be resolved within the base container definition? |
|
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? |
@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. |
Just to add my few cents about this issue. None of the solutions given on the internet worked for me. Including increasing /dev/shm. I had in my HTML a following piece of code <input type="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. |
Using this stackoverflow solution on Kubernetes, worked like a charm |
I encountered this issue when I calling the const dataStr = await browser.driver.executeScript('return JSON.stringify(obj)');
// Parse the JSON string.
const data = JSON.parse(dataStr); |
elgalu/docker-selenium#20 Makes it much more reliable.
How do I run these commands? and what is $id in this case? |
- add volume mount to chrome container @see elgalu/docker-selenium#20
Chrome crashes on docker-selenium instances (works ok with real machines) on certain high GPU intensive UI tests
{code}
UnknownError: unknown error: session deleted because of page crash
from tab crashed
(Session info: chrome=43.0.2357.81)
(Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Linux 3.13.0-32-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 53 milliseconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'zelenium', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-32-generic', java.version: '1.7.0_80'
Session ID: b12eb3c43351dad58746798c40078ef9
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.11yHIh}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=43.0.2357.81, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, takesScreenshot=true}]
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
==== async task ====
WebDriver.executeScript()
.....
{code}
Works ok in Firefox.
The text was updated successfully, but these errors were encountered: