Timed out receiving message from renderer: 10.000
Asked Answered
P

3

5

I am getting following error when running my scenarios.

org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 10.000

(Session info: chrome=79.0.3945.79) Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z' System info: host: 'fv-az598', ip: '10.1.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1064-azure', java.version: '1.8.0_212' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 79.0.3945.79, chrome: {chromedriverVersion: 79.0.3945.36

As you can see, with bold, highlighted font, I do have matching versions of the chrome and chrome driver.

I am also passing some arguments to my ChromeOptions that meant help with timeouts:

        // options to prevent TIMEOUTS
        options.addArguments("start-maximized"); //https://mcmap.net/q/205020/-cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer
        options.addArguments("enable-automation"); //https://mcmap.net/q/205020/-cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer
        options.addArguments("--no-sandbox"); //https://mcmap.net/q/66848/-webdriverexception-unknown-error-devtoolsactiveport-file-doesn-39-t-exist-while-trying-to-initiate-chrome-browser
        options.addArguments("--disable-infobars"); //https://mcmap.net/q/205020/-cannot-get-automation-extension-from-timeout-timed-out-receiving-message-from-renderer
        options.addArguments("--disable-dev-shm-usage"); //https://mcmap.net/q/66848/-webdriverexception-unknown-error-devtoolsactiveport-file-doesn-39-t-exist-while-trying-to-initiate-chrome-browser
        options.addArguments("--disable-browser-side-navigation"); //https://mcmap.net/q/202700/-selenium-timed-out-receiving-message-from-renderer
        options.addArguments("--disable-gpu"); //https://mcmap.net/q/205019/-how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-exception
        options.addArguments("--disable-features=VizDisplayCompositor"); //https://mcmap.net/q/1020132/-getting-timed-out-receiving-message-from-renderer-600-000-when-we-execute-selenium-scripts-using-jenkins-windows-service-mode

Edit: it happens when running in DOCKER container (using LATEST docker images for chrome browser, and node-chrome-debug)

Any ideas will be greatly appreciated.

Parkinson answered 7/1, 2020 at 14:24 Comment(3)
can you give more details?, because it can be internet connection, also you can try to put a thread sleepVixen
@Parkinson Can you upgrade your Chrome browser to current ...Version 79.0.3945.88 (Official Build)...?Jaquelinejaquelyn
@DebanjanB - sorry, i did not mention (edited post now) that it happens when I run them in docker, using LATEST images for all services (browser and chrome driver) so I am using latest (newest available) docker images. Thank you.Parkinson
J
4

This error message...

org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 10.000

...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.

Your main issue is the incompatibility between the version of the binaries you are using as follows:

  • Your Selenium Client version is 3.14.0 of 2018-08-02T20:19:58.91Z which is almost 1.5 years older andthe concurrent ChromeDriver was OSS compliant.
  • You are using chromedriver=79.0
  • You are using chrome=79.0
  • Though chromedriver=79.0 and chrome=79.0 are concurrent but they are incompatible with Selenium Client version is 3.14.0.

So there is a clear mismatch between Selenium Client v3.14.0 , ChromeDriver v79.0 and the Chrome Browser v79.0


Solution

Ensure that:

  • JDK is upgraded to current levels JDK 8u222.
  • Selenium is upgraded to current levels Version 3.141.59.
  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.

tl; dr

You can find a couple of relevant discussions in:

Jaquelinejaquelyn answered 7/1, 2020 at 19:54 Comment(1)
Thank you for detailed answer, indeed my selenium version was outdated and it was contributing factor, updating selenium to version 3.141.59 did not help initially, but combining it with additional ChromeOptions being passed (--disable-features=NetworkService, --dns-prefetch-disable, --disable-extensions) it all works well now, thank you!Parkinson
A
1

In my case I had this problem when I have more than one intelliji idea projects opened at the same time of which I had ran the various projects. For example, suppose I had 3 intelliji idea projects opened => Project A not selenium related , Project B not selenium related , Project C selenium project. Project A , B, C has been run several times. After some times I get this error when I run project C which is a selenium related project. What I did was to invalidate caches of the project C and everything works fine again.

Amalberga answered 7/4 at 15:13 Comment(0)
E
-1

It because either you have set pageload timeout to 10 sec example

driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);

change here 10 to any other number to see increase in timeout

or

delete that line if no needed

Emblazonry answered 29/7, 2021 at 21:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.