selenoid icon indicating copy to clipboard operation
selenoid copied to clipboard

Timed out receiving message from renderer: 300.000

Open godomainz opened this issue 4 years ago • 10 comments

I'm getting this error when I'm running long test cases.

OS : Ubuntu 18.04 Docker Version: 19.03.8 Docker API version: 1.40 No Of Containers : 4 RAM : 30GB Processor : i7 9700k

browsers.json

{
    "chrome": {
        "default": "81.0",
        "versions": {
            "81.0": {
                "image": "selenoid/vnc:chrome_81.0",
                "port": "4444",
                "path": "/",
                "shmSize" : 268435456
            },
            "80.0": {
                "image": "selenoid/vnc:chrome_80.0",
                "port": "4444",
                "path": "/",
                "shmSize" : 268435456
            },
            "79.0": {
                "image": "selenoid/vnc:chrome_79.0",
                "port": "4444",
                "path": "/",
                "shmSize" : 268435456
            }
        }
    }
}
 { TimeoutError: timeout: Timed out receiving message from renderer: 300.000
matchdciprotractor_1   |   (Session info: chrome=81.0.4044.92)
matchdciprotractor_1   |   (Driver info: chromedriver=81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}),platform=Linux 5.3.0-46-generic x86_64)
matchdciprotractor_1   |     at Object.checkLegacyResponse (/protractor/node_modules/selenium-webdriver/lib/error.js:546:15)
matchdciprotractor_1   |     at parseHttpResponse (/protractor/node_modules/selenium-webdriver/lib/http.js:509:13)
matchdciprotractor_1   |     at doSend.then.response (/protractor/node_modules/selenium-webdriver/lib/http.js:441:30)
matchdciprotractor_1   |     at process._tickCallback (internal/process/next_tick.js:68:7)
matchdciprotractor_1   | From: Task: WebDriver.switchTo().defaultContent()
matchdciprotractor_1   |     at thenableWebDriverProxy.schedule (/protractor/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
matchdciprotractor_1   |     at TargetLocator.defaultContent (/protractor/node_modules/selenium-webdriver/lib/webdriver.js:1798:25)
matchdciprotractor_1   |     at Function.<anonymous> (/protractor/src/elements/utils.ts:112:38)
matchdciprotractor_1   |     at step (/protractor/dist/src/elements/utils.js:44:23)
matchdciprotractor_1   |     at Object.next (/protractor/dist/src/elements/utils.js:25:53)
matchdciprotractor_1   |     at /protractor/dist/src/elements/utils.js:19:71
matchdciprotractor_1   |     at new Promise (<anonymous>)
matchdciprotractor_1   |     at __awaiter (/protractor/dist/src/elements/utils.js:15:12)
matchdciprotractor_1   |     at Function.Utils.doSwitch (/protractor/dist/src/elements/utils.js:179:16)
matchdciprotractor_1   |     at Function.<anonymous> (/protractor/src/elements/utils.ts:98:20) name: 'TimeoutError', remoteStacktrace: '' }

godomainz avatar Apr 22 '20 13:04 godomainz

@godomainz this issue could signal that your Chrome browser has crashed. This could be e.g. because of insufficient shared memory. Try to increase shmSize parameter (default value is 256 megabytes) as shown here: https://aerokube.com/selenoid/latest/#_other_optional_fields.

vania-pooh avatar Apr 22 '20 14:04 vania-pooh

@vania-pooh if you can see my browsers.json i added "shmSize" : 268435456. same value as in that doc you mentioned. Is that in bytes ?

godomainz avatar Apr 23 '20 08:04 godomainz

@godomainz it is in bytes and this is the default value automatically added by Selenoid anyway. Try to use bigger value.

vania-pooh avatar Apr 23 '20 15:04 vania-pooh

@vania-pooh I increased shmSize to 1068435456 still gave me the same issue. mainly this happens with Jenkins

godomainz avatar Apr 24 '20 05:04 godomainz

@godomainz in that case browser could be just freezing for some reason. Could you please then take a look at system metrics of the machine where containers are running (CPU consumption, load average, memory consumption, iowait and so on)?

vania-pooh avatar Apr 24 '20 08:04 vania-pooh

@vania-pooh please see the attached docker

godomainz avatar Apr 24 '20 09:04 godomainz

@godomainz yes, video recording is as usually consuming a lot of CPU.

vania-pooh avatar Apr 24 '20 09:04 vania-pooh

@vania-pooh thats fine. but why is it freezing ? and whats the solution ?

godomainz avatar Apr 24 '20 10:04 godomainz

@godomainz have no idea. I would use Selenoid UI to see what's happening in browser while it's freezing.

vania-pooh avatar Apr 25 '20 08:04 vania-pooh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 02 '24 01:02 github-actions[bot]