{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5296","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5296/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5296/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5296/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/5296","id":286530166,"number":5296,"title":"Regression in 3.8.1 and 3.9.0: Non-deterministic ConnectionResetError with chrome and chromedriver ","user":{"login":"konstin","id":6826232,"avatar_url":"https://avatars2.githubusercontent.com/u/6826232?v=4","gravatar_id":"","url":"https://api.github.com/users/konstin","html_url":"https://github.com/konstin","followers_url":"https://api.github.com/users/konstin/followers","following_url":"https://api.github.com/users/konstin/following{/other_user}","gists_url":"https://api.github.com/users/konstin/gists{/gist_id}","starred_url":"https://api.github.com/users/konstin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstin/subscriptions","organizations_url":"https://api.github.com/users/konstin/orgs","repos_url":"https://api.github.com/users/konstin/repos","events_url":"https://api.github.com/users/konstin/events{/privacy}","received_events_url":"https://api.github.com/users/konstin/received_events","type":"User","site_admin":false},"labels":[{"id":182503854,"url":"https://api.github.com/repos/SeleniumHQ/selenium/labels/C-py","name":"C-py","color":"fbca04","default":false},{"id":316341013,"url":"https://api.github.com/repos/SeleniumHQ/selenium/labels/D-chrome","name":"D-chrome","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-06T23:51:14Z","updated_at":"2018-03-25T18:47:51Z","closed_at":null,"author_association":"NONE","body":"## Meta\r\nOS:  Ubuntu Trusty on travis ci\r\nSelenium Version: 3.8.1\r\nBrowser: Chromedriver 2.34.0 with Chrome\r\n\r\n## Expected Behavior\r\n\r\nI can do the patch-level update from 3.8.0 to 3.8.1 without exeriencing any differences.\r\n\r\n## Actual Behavior\r\n\r\nWith 3.8.0 everything works fine, while 3.8.1 non-deterministically fails with `ConnectionResetError: [Errno 104] Connection reset by peer` when trying to instantiate chrome.\r\n\r\n## Steps to reproduce\r\nThe problem occurs in my django tests, only on travis ci and even on travis ci not reliably, so I unfortunately I can't provide a minimized example. The following is the reduced test boilerplate where the failure occurs.\r\n\r\n```python\r\nfrom django.contrib.staticfiles.testing import StaticLiveServerTestCase\r\n\r\nclass ChromeDriverTestCase(StaticLiveServerTestCase):\r\n    browser = None\r\n\r\n    @classmethod\r\n    def setUpClass(cls):\r\n        cls.browser = Browser('chrome', headless=True,\r\n                              executable_path=\"node_modules/.bin/chromedriver\")\r\n        super(ChromeDriverTestCase, cls).setUpClass()\r\n```\r\n\r\nThe `chromedriver` npm package is locked to 2.34.0.\r\n\r\nThis yields the following traceback in case of an failure ([full travis ci log for reference](https://travis-ci.org/meine-stadt-transparent/meine-stadt-transparent/jobs/325906206)):\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/home/travis/build/meine-stadt-transparent/meine-stadt-transparent/mainapp/tests/live/chromedriver_test_case.py\", line 29, in setUpClass\r\n    options=options)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/splinter/browser.py\", line 63, in Browser\r\n    return driver(*args, **kwargs)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/splinter/driver/webdriver/chrome.py\", line 35, in __init__\r\n    self.driver = Chrome(chrome_options=options, **kwargs)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py\", line 75, in __init__\r\n    desired_capabilities=desired_capabilities)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 154, in __init__\r\n    self.start_session(desired_capabilities, browser_profile)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 243, in start_session\r\n    response = self.execute(Command.NEW_SESSION, parameters)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 310, in execute\r\n    response = self.command_executor.execute(driver_command, params)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py\", line 466, in execute\r\n    return self._request(command_info[0], url, body=data)\r\n  File \"/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py\", line 490, in _request\r\n    resp = self._conn.getresponse()\r\n  File \"/opt/python/3.6.3/lib/python3.6/http/client.py\", line 1331, in getresponse\r\n    response.begin()\r\n  File \"/opt/python/3.6.3/lib/python3.6/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/opt/python/3.6.3/lib/python3.6/http/client.py\", line 258, in _read_status\r\n    line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\r\n  File \"/opt/python/3.6.3/lib/python3.6/socket.py\", line 586, in readinto\r\n    return self._sock.recv_into(b)\r\nConnectionResetError: [Errno 104] Connection reset by peer\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/375993641","html_url":"https://github.com/SeleniumHQ/selenium/issues/5296#issuecomment-375993641","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5296","id":375993641,"user":{"login":"paterit","id":6311408,"avatar_url":"https://avatars0.githubusercontent.com/u/6311408?v=4","gravatar_id":"","url":"https://api.github.com/users/paterit","html_url":"https://github.com/paterit","followers_url":"https://api.github.com/users/paterit/followers","following_url":"https://api.github.com/users/paterit/following{/other_user}","gists_url":"https://api.github.com/users/paterit/gists{/gist_id}","starred_url":"https://api.github.com/users/paterit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paterit/subscriptions","organizations_url":"https://api.github.com/users/paterit/orgs","repos_url":"https://api.github.com/users/paterit/repos","events_url":"https://api.github.com/users/paterit/events{/privacy}","received_events_url":"https://api.github.com/users/paterit/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T18:47:51Z","updated_at":"2018-03-25T18:47:51Z","author_association":"NONE","body":"same problem for:\r\n\r\n- selenium 3.11.0 \r\n- chromium (64.0.3282.168-r0)\r\n- chromium-chromedriver (64.0.3282.168-r0)\r\n\r\nfor a code:\r\n\r\n```python\r\nfrom selenium import webdriver\r\n\r\nBEHAVE_DEBUG_ON_ERROR = False\r\n\r\n\r\ndef before_all(context):\r\n    options = webdriver.ChromeOptions()\r\n    options.add_argument('--headless')\r\n    options.add_argument('--no-sandbox')\r\n    context.browser = webdriver.Chrome(chrome_options=options)\r\n```\r\n\r\nhere are the logs:\r\n \r\n```logs\r\nException ConnectionResetError: [Errno 104] Connection reset by peer\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/behave\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/lib/python3.6/site-packages/behave/__main__.py\", line 109, in main\r\n    failed = runner.run()\r\n  File \"/usr/lib/python3.6/site-packages/behave/runner.py\", line 672, in run\r\n    return self.run_with_paths()\r\n  File \"/usr/lib/python3.6/site-packages/behave/runner.py\", line 693, in run_with_paths\r\n    return self.run_model()\r\n  File \"/usr/lib/python3.6/site-packages/behave/runner.py\", line 471, in run_model\r\n    self.run_hook('before_all', context)\r\n  File \"/usr/lib/python3.6/site-packages/behave/runner.py\", line 405, in run_hook\r\n    self.hooks[name](context, *args)\r\n  File \"features/environment.py\", line 10, in before_all\r\n    context.browser = webdriver.Chrome(chrome_options=options)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py\", line 75, in __init__\r\n    desired_capabilities=desired_capabilities)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 154, in __init__\r\n    self.start_session(desired_capabilities, browser_profile)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 243, in start_session\r\n    response = self.execute(Command.NEW_SESSION, parameters)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 310, in execute\r\n    response = self.command_executor.execute(driver_command, params)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py\", line 466, in execute\r\n    return self._request(command_info[0], url, body=data)\r\n  File \"/usr/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py\", line 490, in _request\r\n    resp = self._conn.getresponse()\r\n  File \"/usr/lib/python3.6/http/client.py\", line 1331, in getresponse\r\n    response.begin()\r\n  File \"/usr/lib/python3.6/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/usr/lib/python3.6/http/client.py\", line 258, in _read_status\r\n    line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\r\n  File \"/usr/lib/python3.6/socket.py\", line 586, in readinto\r\n    return self._sock.recv_into(b)\r\nConnectionResetError: [Errno 104] Connection reset by peer\r\n```"}}
{"actor":{"display_login":"paterit"}}