title: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
body: <p>I'm using InstaPy which use Python and Selenium. I start the script per Cron and from time to time it crashes. So it'r really irregular, sometimes it runs well through. I'v posted on GitHub Repo as well already but didn't get an answer there, so i'm asking here now if someone has an idea why.</p>
  <p>It's a digital ocean ubuntu server and i'm using it on headless mode. The driver version are visible on the log. here are error messages:</p>
  <pre><code>ERROR [2018-12-10 09:53:54] [user]  Error occurred while deleting cookies from web browser!
  b'Message: invalid session id\n  (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 4.15.0-42-generic x86_64)\n'
  Traceback (most recent call last):
    File &quot;/root/InstaPy/instapy/util.py&quot;, line 1410, in smart_run
      yield
    File &quot;./my_config.py&quot;, line 43, in &lt;module&gt;
      session.follow_user_followers(['xxxx','xxxx','xxxx','xxxx'], amount=100, randomize=True, interact=True)
    File &quot;/root/InstaPy/instapy/instapy.py&quot;, line 2907, in follow_user_followers
      self.logfolder)
    File &quot;/root/InstaPy/instapy/unfollow_util.py&quot;, line 883, in get_given_user_followers
      channel, jumps, logger, logfolder)
    File &quot;/root/InstaPy/instapy/unfollow_util.py&quot;, line 722, in get_users_through_dialog
      person_list = dialog_username_extractor(buttons)
    File &quot;/root/InstaPy/instapy/unfollow_util.py&quot;, line 747, in dialog_username_extractor
      person_list.append(person.find_element_by_xpath(&quot;../../../*&quot;)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webelement.py&quot;, line 351, in find_element_by_xpath
      return self.find_element(by=By.XPATH, value=xpath)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webelement.py&quot;, line 659, in find_element
      {&quot;using&quot;: by, &quot;value&quot;: value})['value']
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webelement.py&quot;, line 633, in _execute
      return self._parent.execute(command, params)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
  from unknown error: cannot determine loading status
  from tab crashed
    (Session info: headless chrome=70.0.3538.110)
    (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 4.15.0-42-generic x86_64)
  
  During handling of the above exception, another exception occurred:
  
      Traceback (most recent call last):
    File &quot;/root/InstaPy/instapy/instapy.py&quot;, line 3845, in end
      self.browser.delete_all_cookies()
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py&quot;, line 878, in delete_all_cookies
      self.execute(Command.DELETE_ALL_COOKIES)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: chrome not reachable
    (Session info: headless chrome=71.0.3578.80)
    (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 4.15.0-42-generic x86_64)
  </code></pre>
  <p>Any idea what the reason could be and how to solve it?</p>
  <p>Thanks for the inputs. And the guys from <a href="http://treestones.ch/" rel="noreferrer">http://treestones.ch/</a> helped me out.</p>