Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: does not work on Linux Arm64 machine #3110

Open
iAmBipinPaul opened this issue Feb 24, 2025 · 0 comments
Open

[Bug]: does not work on Linux Arm64 machine #3110

iAmBipinPaul opened this issue Feb 24, 2025 · 0 comments

Comments

@iAmBipinPaul
Copy link

iAmBipinPaul commented Feb 24, 2025

Version

1.50.0

Steps to reproduce

I have playwright docker image running on port 3000

docker run -d -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.50.0-noble /bin/sh -c "npx -y [email protected] run-server --port 3000 --host 0.0.0.0"

this below code works fine on my windows x64 machine but I'm getting error on Linux arm64 machine

var playwright = await Playwright.CreateAsync();
await playwright .Chromium.ConnectAsync("ws://localhost:3000/");

Expected behavior

it should work fine on Linux Arm64 machine also

Actual behavior

it does not work and gives this error

 System.NullReferenceException: Object reference not set to an instance of an object.
2025-02-24T17:05:29.380942890Z          at Microsoft.Playwright.Helpers.Driver.GetExecutablePath() in /_/src/Playwright/Helpers/Driver.cs:line 90
2025-02-24T17:05:29.380946290Z          at Microsoft.Playwright.Transport.StdIOTransport.GetProcess(String driverArgs) in /_/src/Playwright/Transport/StdIOTransport.cs:line 116
2025-02-24T17:05:29.380949290Z          at Microsoft.Playwright.Transport.StdIOTransport..ctor() in /_/src/Playwright/Transport/StdIOTransport.cs:line 46
2025-02-24T17:05:29.380952130Z          at Microsoft.Playwright.Playwright.CreateAsync() in /_/src/Playwright/Playwright.cs:line 43

Additional context

running playwright on remote Linux arm64 machine as docker and connect to it from Windows 11 x64 works fine.

means this code work, in this scenario

var playwright = await Playwright.CreateAsync();
await playwright .Chromium.ConnectAsync("ws://{remote_macahine_ip}:3000/");

Environment

- Operating System: [linux-arm64 noble]
- CPU: [arm64]
- Browser: [All, Chromium, Firefox, WebKit]
- .NET Version (TFM): [net9.0]
- Other info: running inside docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant