Skip to main content
No Result Found

Error - Browser launch failure

Learn how to fix errors related to browser launch failures in Percy

In Percy, the browser launch failure error usually happens because of the following reasons:

  • Missing dependencies to launch the browser
  • Resource crunch on the user/CI machine

Try these solutions to resolve this error:

Solution 1: Install missing dependencies

Try installing the following Chromium dependencies for Ubuntu and Debian OS types.

Dependencies List

OS - Ubuntu 20.04-x64

  • fonts-liberation,
  • libasound2,
  • libatk-bridge2.0-0,
  • libatk1.0-0,
  • libatspi2.0-0,
  • libcairo2,
  • libcups2,
  • libdbus-1-3,
  • libdrm2,
  • libegl1,
  • libgbm1,
  • libglib2.0-0,
  • libgtk-3-0,
  • libnspr4,
  • libnss3,
  • libpango-1.0-0,
  • libx11-6,
  • libx11-xcb1,
  • libxcb1,
  • libxcomposite1,
  • libxdamage1,
  • libxext6,
  • libxfixes3,
  • libxrandr2,
  • libxshmfence1

OS - Ubuntu 22.04-x64

  • libasound2,
  • libatk-bridge2.0-0,
  • libatk1.0-0,
  • libatspi2.0-0,
  • libcairo2,
  • libcups2,
  • libdbus-1-3,
  • libdrm2,
  • libgbm1,
  • libglib2.0-0,
  • libnspr4,
  • libnss3,
  • libpango-1.0-0,
  • libwayland-client0,
  • libx11-6,
  • libxcb1,
  • libxcomposite1,
  • libxdamage1,
  • libxext6,
  • libxfixes3,
  • libxkbcommon0,
  • libxrandr2

OS - Debian 11-x64

  • libasound2,
  • libatk-bridge2.0-0,
  • libatk1.0-0,
  • libatspi2.0-0,
  • libcairo2,
  • libcups2,
  • libdbus-1-3,
  • libdrm2,
  • libgbm1,
  • libglib2.0-0,
  • libnspr4,
  • libnss3,
  • libpango-1.0-0,
  • libwayland-client0,
  • libx11-6,
  • libxcb1,
  • libxcomposite1,
  • libxdamage1,
  • libxext6,
  • libxfixes3,
  • libxkbcommon0,
  • libxrandr2

OS - Debian 12-x64

  • libasound2,
  • libatk-bridge2.0-0,
  • libatk1.0-0,
  • libatspi2.0-0,
  • libcairo2,
  • libcups2,
  • libdbus-1-3,
  • libdrm2,
  • libgbm1,
  • libglib2.0-0,
  • libnspr4,
  • libnss3,
  • libpango-1.0-0,
  • libx11-6,
  • libxcb1,
  • libxcomposite1,
  • libxdamage1,
  • libxext6,
  • libxfixes3,
  • libxkbcommon0,
  • libxrandr2

For other missing packages, manually trigger the apt install <package_with_appropriate_version> command to install the package compatible with your OS.

For example, let’s assume you receive the following error:

libnss3.so: cannot open shared object file: No such file or directory

To fix this error, execute the following commands:

apt install libnss
apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev

Usually, a simple search with the error message gives you the packages that you’d need to install.

Solution 2:

  • If the browser launch failed to find the executable to launch the browser, try using the PERCY_BROWSER_EXECUTABLE env variable to set the correct browser executable path.
  • Ensure the browser binary you use is compatible with your machine. For example, using a 32-bit ARM binary executable on a 64-bit machine can cause lower performance risk and may hamper the execution time to launch the browser.

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle