Skip to content

Browser disconnected issue #3650

@valgussev

Description

@valgussev

What is the Current behavior?

XXX browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues

What is the Expected behavior?

Do not disconnect or freeze chromium browser

Steps to Reproduce:

The setup we currently have where the problem reproduces is official testcafe/testcafe docker image run on the kubernates pod with the following resources allocated:

resourceLimitCpu: '5000m',
resourceLimitMemory: '5000Mi',

The error XXX browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues is happening in random places of the testsuite with arbitrary frequency. If to run the same docker image locally on Mac or if to run tests in debian VM everything works just fine and tests never crash.

It reproduces on chromium run with the following flags --no-sandbox --disable-dev-shm-usage and on the latest testcafe version 1.1.1. More frequently if to reduce the test run speed to 0.2 (--speed).

I've taken a look onto chromium logs but there is nothing suspicious except the following errors at the middle of the log file

[0403/084113.645826:ERROR:gpu_process_transport_factory.cc(1016)] Lost UI shared context.
[0403/084113.659220:ERROR:zygote_host_impl_linux.cc(270)] Failed to adjust OOM score of renderer with pid 657: Permission denied (13)
[0403/084113.704354:ERROR:gl_implementation.cc(292)] Failed to load /usr/lib/chromium/swiftshader/libGLESv2.so: Error loading shared library /usr/lib/chromium/swiftshader/libGLESv2.so: No such file or directory
[0403/084113.706164:ERROR:viz_main_impl.cc(201)] Exiting GPU process due to errors during initialization
[0403/084113.707268:ERROR:service_manager_context.cc(250)] Attempting to run unsupported native service: /usr/lib/chromium/content_gpu.service
[0403/084113.754683:ERROR:gl_implementation.cc(292)] Failed to load /usr/lib/chromium/swiftshader/libGLESv2.so: Error loading shared library /usr/lib/chromium/swiftshader/libGLESv2.so: No such file or directory
[0403/084113.756565:ERROR:viz_main_impl.cc(201)] Exiting GPU process due to errors during initialization
[0403/084113.757762:ERROR:service_manager_context.cc(250)] Attempting to run unsupported native service: /usr/lib/chromium/content_gpu.service

It never reproduces if to run tests on BrowserStack browsers, so I believe there could be something wrong with GCP kubernates configuration or a hosting environment. So any suggestions on how to localize and reproduce the problem are very welcome.

Your Environment details:

  • testcafe version: 1.1.1
  • node.js version: 8.15.0 / 10.15.0
  • command-line arguments: CHROME_LOG_FILE=$(pwd)/chrome_debug_$(date +%s).log testcafe 'chromium:headless --no-sandbox --disable-dev-shm-usage --enable-logging --v=1 --disable-gpu --disable-translate --disable-extensions --no-proxy-server --disable-setuid-sandbox --disable-web-security' 'testcafe/'
  • browser name and version: Chromium 68/Chromium 72
  • platform and version: Linux Alpine / Linux Debian 9

Metadata

Metadata

Assignees

Labels

STATE: Auto-lockedAn issue has been automatically locked by the Lock bot.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions