title: SBOX_FATAL_MEMORY_EXCEEDED error shown when Chromedriver turned 1800-1900 pages using Selenium
body: <pre><code>driver_t = webdriver.Chrome()
  driver_t.implicitly_wait(5)
  driver_t.get(Company intranet)
  
  elem = driver_t.find_element_by_id("j_username")
  elem.clear()
  elem.send_keys(".....")
  elem = driver_t.find_element_by_id("j_password")
  elem.clear()
  elem.send_keys(".....")
  driver_t.find_element_by_id("frm-ok").click()
  driver_t.maximize_window()
  
  
  page_counter = 0  ***#10 items in 1 page, WHEN TURN PAGE ABOUT 189, ERROR HAPPEN***
  while True:
      els = driver.find_elements_by_xpath("//table[@id='flexme1']/tbody/tr")
      cnt = len(els)
      if not cnt:
          print(time.asctime(), "This page has no orders.")
          break
  
      page_counter = page_counter + 1
      print(time.asctime(), "Page Counter: ", page_counter)
  
      oi_l = craw.fetch_order_info(driver)
  
      for i in range(1, cnt + 1):
          last_id, od_l = craw.fetch_order_detail(driver, last_id, i)
  
      page_down = "//form[@name='frmList']/div[5]/div[2]/ul/li[9]/a"
      elem = driver.find_element_by_xpath(page_down)
      class_name = elem.get_attribute('class')
      if "disable" in class_name:
          print(time.asctime(), "Task finished.")
          break
  
      elem.click()
  </code></pre>
  
  <h1>When the outter loop run about 150-200 times, chrome crashed.</h1>
  
  <p>How resolve this problem?
  Somewhere said that chrome maintain a deep history list, is the answer?</p>