playwright: [Bug]: Getting argument list too long while launching chrome using playwright test

Version

1.42.1

Steps to reproduce

Install chrome latest (124) on Docker file using base image playwright jammy 1.42.1 Run the container to trigger test scripts Not sure if this is related to playwright or chrome

2024-05-04T17:31:21+10:00 [chrome] › tests/example.spec.ts:3:5 › has title ─────────────────────────────────────────────── 2024-05-04T17:31:21+10:00 1 failed 2024-05-04T17:31:21+10:00 2024-05-04T17:31:21+10:00 2024-05-04T17:31:21+10:00 - [pid=55][err] /opt/google/chrome/chrome: line 46: /usr/bin/cat: Success 2024-05-04T17:31:21+10:00 - [pid=55][err] /opt/google/chrome/chrome: line 45: /usr/bin/cat: Success 2024-05-04T17:31:21+10:00 - [pid=55][err] /opt/google/chrome/chrome: line 45: /usr/bin/cat: Argument list too long 2024-05-04T17:31:21+10:00 - [pid=55][err] /opt/google/chrome/chrome: line 46: /usr/bin/cat: Argument list too long 2024-05-04T17:31:21+10:00 - [pid=55] finished temporary directories cleanup 2024-05-04T17:31:21+10:00 - [pid=55] starting temporary directories cleanup 2024-05-04T17:31:21+10:00 - [pid=55] <process did exit: exitCode=126, signal=null> 2024-05-04T17:31:21+10:00 - <launched> pid=55 2024-05-04T17:31:21+10:00 - <launching> /opt/google/chrome/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-XXXXXX6A6qi7 --remote-debugging-pipe --no-startup-window

Expected behavior

Test should pass

Actual behavior

Chrome launch failed

Additional context

No response

Environment

System
Linux - npm_config_user_agent=npm/10.7.0 node/v22.1.0 linux x64 workspaces/false

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Yeah this is not supported, browsers require a lot of system dependencies, they won’t run on a stock Ubuntu, since the dependencies are not satisfied. So you cannot simply copy a few files in order to make browsers like WebKit/Chromium/Firefox work.

See here on how to install the system dependencies. We recommend using our Docker image since it has all these system dependencies installed (for all the browsers):