FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

chromedriver constantly freezes #1115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
I run my test in loop. Every time chrome and chromedriver freezes after few 
hours.

WebDriver raise standard exception: The HTTP request to the remote WebDriver 
server for URL 
http://localhost:62870/session/f91370bd4b64b58a7c0af8d7bd81d490/elements timed 
out after 60 seconds.
For chromedrive I manually set the timeout to 55 seconds. For me to avoid these 
meaningless errors.

However chromedriver in their log files lying. In the files are not written 
anything unusual. Chromedriver freezes quietly for several hours, but the log 
says Timed out receiving message from renderer: 54.452. This is a lie. 
Meanwhile chromedriver been frozen. This message will appear in the log with a 
few hours delay.

Other requirements to get pagesource or print screen in exception block in my 
program in chromedriver log files missing. All this requirements raised 60 
seconds timeout erros. Even all the log time stamps are correct. This suggests 
that chromedriver internal clock freezes to.

Chrome browser freezes completely. The only option is to kill him over Task 
manager.

I have to report this error, because I'm very bothered at work. I expected that 
he will fix it soon, but I still correcting wait.

I Use Windows 7 x64, Chromedriver 2.15, Chrome 39 - 43.
Error does not exhibit in the chrome 33, but chrome ignore my disable auto 
updates.

For example:

My log Exception:
System.Exception: Exception when find elements by id betSlipJSError --->
OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver 
server for URL 
http://localhost:57817/session/47670c5bbe6fc329977cf246cfccbb9c/elements timed 
out after 60 seconds. --->
System.Net.WebException: The operation has timed out

Chromedriver log:
[11823.960][INFO]: COMMAND FindElements {
   "locator": "id",
   "using": "id",
   "value": "betSlipJSError"
}
[11823.960][INFO]: Waiting for pending navigations...
[11823.960][INFO]: Done waiting for pending navigations
[11823.962][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=138925) {
   "contextId": 1546,
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[11823.999][DEBUG]: DEVTOOLS EVENT DOM.attributeModified {
   "name": "ng-src",
   "nodeId": 2285,
   "value": "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL"
}
[11823.999][DEBUG]: DEVTOOLS EVENT Page.frameScheduledNavigation {
   "delay": 0,
   "frameId": "4608.2479"
}
[11823.999][DEBUG]: DEVTOOLS EVENT DOM.attributeModified {
   "name": "src",
   "nodeId": 2285,
   "value": "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL"
}
[11824.001][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=138925) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": [ {
            "ELEMENT": "0.9596993117593229-1"
         } ]
      }
   },
   "wasThrown": false
}
[11824.001][INFO]: Waiting for pending navigations...
[11824.029][DEBUG]: DEVTOOLS EVENT Page.frameStartedLoading {
   "frameId": "4608.2479"
}
[11824.029][DEBUG]: DEVTOOLS EVENT Page.frameClearedScheduledNavigation {
   "frameId": "4608.2479"
}
[11824.163][DEBUG]: DEVTOOLS EVENT Runtime.executionContextDestroyed {
   "executionContextId": 1548
}
[11824.163][DEBUG]: DEVTOOLS EVENT Page.frameDetached {
   "frameId": "4608.2485"
}
[11824.163][DEBUG]: DEVTOOLS EVENT Runtime.executionContextDestroyed {
   "executionContextId": 1549
}
[11824.164][DEBUG]: DEVTOOLS EVENT Page.frameDetached {
   "frameId": "4608.2487"
}
[11824.164][DEBUG]: DEVTOOLS EVENT Runtime.executionContextDestroyed {
   "executionContextId": 1551
}
[11824.164][DEBUG]: DEVTOOLS EVENT Page.frameDetached {
   "frameId": "4608.2489"
}
[11824.164][DEBUG]: DEVTOOLS EVENT Runtime.executionContextDestroyed {
   "executionContextId": 1546
}
[11824.164][DEBUG]: DEVTOOLS EVENT Runtime.executionContextCreated {
   "context": {
      "frameId": "4608.2479",
      "id": 1552,
      "isPageContext": true,
      "name": "",
      "origin": "http://www.xxx.com"
   }
}
[11824.164][DEBUG]: DEVTOOLS EVENT DOM.childNodeRemoved {
   "nodeId": 2285,
   "parentNodeId": 2283
}
[11824.164][DEBUG]: DEVTOOLS EVENT DOM.childNodeInserted {
   "node": {
      "attributes": [ "ng-show", "!isPoppedOut", "id", "betslipIframe", "name", "betslipIframe", "scrolling", "no", "ng-src", "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL", "src", "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL", "class", "", "style", "height: 22px;", "cd_frame_id_", "e69ab3a374c49efd41cb7d93f8bb7a27" ],
      "childNodeCount": 0,
      "contentDocument": {
         "baseURL": "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL",
         "childNodeCount": 0,
         "documentURL": "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL",
         "localName": "",
         "nodeId": 2288,
         "nodeName": "#document",
         "nodeType": 9,
         "nodeValue": "",
         "xmlVersion": ""
      },
      "frameId": "4608.2479",
      "localName": "iframe",
      "nodeId": 2287,
      "nodeName": "IFRAME",
      "nodeType": 1,
      "nodeValue": ""
   },
   "parentNodeId": 2283,
   "previousNodeId": 2284
}
[11824.164][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
   "frame": {
      "id": "4608.2479",
      "loaderId": "4608.2492",
      "mimeType": "text/html",
      "name": "betslipIframe",
      "parentId": "4608.1",
      "securityOrigin": "http://www.xxx.com",
      "url": "http://www.xxx.com/betslip?action=GoIFrameBetslip&livebetting=1&bs_add_leg_to_slip=1&leg=price_type~L|selections~373240649|lp_num~4|lp_den~11|bet_origin~LB_HP_ALL"
   }
}
[11824.176][DEBUG]: DEVTOOLS EVENT DOM.childNodeCountUpdated {
   "childNodeCount": 1,
   "nodeId": 2288
}
[11824.176][DEBUG]: DEVTOOLS EVENT DOM.childNodeCountUpdated {
   "childNodeCount": 2,
   "nodeId": 2288
}
[11824.353][DEBUG]: DEVTOOLS EVENT Page.frameAttached {
   "frameId": "4608.2493",
   "parentFrameId": "4608.2479"
}
[11824.353][DEBUG]: DEVTOOLS EVENT Page.frameStartedLoading {
   "frameId": "4608.2493"
}
[11824.353][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
   "frame": {
      "id": "4608.2493",
      "loaderId": "4608.2494",
      "mimeType": "text/html",
      "name": "hidden_iframe_ext",
      "parentId": "4608.2479",
      "securityOrigin": "http://www.xxx.com",
      "url": "about:blank"
   }
}
[11824.353][DEBUG]: DEVTOOLS EVENT Runtime.executionContextCreated {
   "context": {
      "frameId": "4608.2493",
      "id": 1553,
      "isPageContext": true,
      "name": "",
      "origin": "http://www.xxx.com"
   }
}
[11824.353][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
   "frameId": "4608.2493"
}
[11879.001][SEVERE]: Timed out receiving message from renderer: 54.648
[11879.001][INFO]: Timed out. Stopping navigation...
[11879.001][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=138926) {
   "expression": "window.stop();",
   "returnByValue": true
}

Original issue reported on code.google.com by k.kope...@gmail.com on 4 Jun 2015 at 9:47

GoogleCodeExporter commented 9 years ago
This is end of chromedriver log

Original comment by k.kope...@gmail.com on 4 Jun 2015 at 10:36

GoogleCodeExporter commented 9 years ago
k.kopecek@

Thanks for filing the bug. can you please share your testscript, which 
reproduces issue reliably. please enable verbose log and attach whole logfile 
if this issue is reproducible for you consistently. 
(https://sites.google.com/a/chromium.org/chromedriver/logging). what is 
selenium language binding/version are you using ?

Original comment by agau...@chromium.org on 9 Jun 2015 at 7:08

GoogleCodeExporter commented 9 years ago
Hello,
For example I find public site to simulate this freezing.
Testscript in Program.cs

I Using .Net 4.5 C#
Chromedriver Win32 2.15
WebDriver 2.45.0
Chrome 43

Original comment by k.kope...@gmail.com on 3 Jul 2015 at 6:46

Attachments: