playwright: [BUG] Windows VM ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL

System info

  • Playwright Version: [v1.31.2]
  • Operating System: [Windows VM]
  • Browser: [ONLY in Chromium]
  • Other info: It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)

Error LOG

2023-03-07T09:27:22.6036536Z   1) [testing Login Setup] › tests\login-setup.ts:6:5 › Login Setup ────────────────────────────────
2023-03-07T09:27:22.6037617Z 
2023-03-07T09:27:22.6038162Z     browserType.launch: Browser closed.
2023-03-07T09:27:22.6038793Z     ==================== Browser output: ====================
2023-03-07T09:27:22.6044850Z     <launching> C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --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 --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window
2023-03-07T09:27:22.6052457Z     <launched> pid=9100
2023-03-07T09:27:22.6054202Z     [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F)
2023-03-07T09:27:22.6056487Z     =========================== logs ===========================
2023-03-07T09:27:22.6062693Z     <launching> C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --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 --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window
2023-03-07T09:27:22.6068578Z     <launched> pid=9100
2023-03-07T09:27:22.6070213Z     [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F)
2023-03-07T09:27:22.6071990Z     ============================================================

Test file

import { test as setup } from '@playwright/test';

setup('Login Setup', async ({ page }) => {
      await this.page.goto('URL');
});

Steps

  • run: “npm set PLAYWRIGHT_BROWSERS_PATH=0&& playwright install”
  • runL “npm set PLAYWRIGHT_BROWSERS_PATH=0&& playwright test”

Expected It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)

Actual As you can see in the LOG error, the browser cannot even be executed now.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Came here just to chime in.

I am just now setting up a project with dotNet Playwright and ran into the same issue with the newest version (1.35.0) during my ado pipeline run.

Thanks to this forum I was able to get it working by downgrading to 1.27.1

Can confirm its not yet fixed.

@aslushnikov - tried again today with the same result. updated to latest, failed with the error above and rolled back again to 1.27.1. Had upgraded from angular 14 to angular 15 today so thought I’d give it another shot… I can confirm I am on windows server 2019 and utilizing azure devops server on prem not sure if that helps at all, seems unrelated imo.

also tried upgrading to the preview just to see if I got a better result, and ran into the same issue, and re-rolled back.

newer versions are working lovely on my local, but I need it running in my CI builds too.

Facing the exact same issue. Nothing changed from the code side but suddenly stopped working for chrome. How to downgrade playwright on windows server? ( If that would fix the issue ) Or should I be avoiding a particular version of chrome and playwright combination for now? Any suggestion is helpful. @harleyz @aslushnikov @garciallorente-fer

Perhaps it is because your computer no longer supports a higher version of the Chrome browser. Starting from version 110, Chrome does not support Windows 7/8/8.1 and Windows Server 2012.

https://support.google.com/chrome/thread/185534985/sunsetting-support-for-windows-7-8-8-1-and-windows-server-2012-and-2012-r2-in-early-2023