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

dri3 extension not supported error when running with xvfb in GitHub Action #1277

Closed
palewire opened this issue May 1, 2022 · 7 comments
Closed
Labels

Comments

@palewire
Copy link

palewire commented May 1, 2022

Hello. I'm trying to run a headful Playwright browser inside GitHub Actions and running into trouble. I suspect this has to do with some nuance of configuring xvfb or the like.

My current roadblock is that unit tests and manual runs that work properly on my laptop are failing in GitHub Actions with an error that ends dri3 extension not supported and reads:

playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
<launching> /opt/google/chrome/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater --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 --no-sandbox --disable-extensions-except=/home/runner/work/news-homepages/news-homepages/newshomepages/extensions/uBlock0.chromium --load-extension=/home/runner/work/news-homepages/news-homepages/newshomepages/extensions/uBlock0.chromium --user-data-dir=.chromium --remote-debugging-pipe about:blank
<launched> pid=5077
[pid=5077][err] [5077:5101:0501/155113.391161:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[pid=5077][err] [5077:5101:0501/155113.391244:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[pid=5077][err] [5077:5101:0501/155113.404284:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[pid=5077][err] [5077:5101:0501/155113.404312:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[pid=5077][err] [5077:5120:0501/155113.512668:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[pid=5077][err] [5077:5120:0501/155113.512973:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[pid=5077][err] [5077:5120:0501/155113.513145:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[pid=5077][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[pid=5077][err] [5110:5110:0501/155113.750394:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
[pid=5077][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[pid=5077][err] [5135:5135:0501/155113.808305:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

More information is available here in the action run: https://github.com/palewire/news-homepages/runs/6248046186?check_suite_focus=true

Any help sorting out the issue would be appreciated.

@mxschmitt
Copy link
Member

Looks like some Chromium issue, would running the tests headless work for you? It even increases the performance since no GUI / xserver needs to be emulated.

@palewire
Copy link
Author

palewire commented May 2, 2022

Headless is already working great in the main branch. I'm going headful because the Playwright docs suggest it's necessary to run the browser with an extension. In this case it's an ad blocker.

@palewire
Copy link
Author

palewire commented May 8, 2022

Put another way, I'd be happy to adopt any alternative method that works if I can use the ad blocker extension. That's my real goal. I don't really care if the operation is headful or headless.

@palewire
Copy link
Author

palewire commented May 28, 2022

I'm continuing to fumble around with this bug, which has become a blocker to my itty bitty humble project. One development: If I add the --disable-gpu flag to the Playwright browser boot the dri3 error disappears, but the process still times out on GitHub Actions, despite working locally. Perhaps something else is the root cause? Here's the latest log.

@mxschmitt
Copy link
Member

mxschmitt commented Jul 12, 2022

Sorry for the late reply. Were you able to reproduce it with the Chromium which Playwright ships? Since you are using Google Chrome from the operating system.

@rwoll
Copy link
Member

rwoll commented Jul 20, 2022

Closing as part of triage

@masaok
Copy link

masaok commented Sep 18, 2022

This worked for me: https://shouv.medium.com/how-to-run-cypress-on-wsl2-989b83795fb6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants