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]: how open nvidia gpu and webgl application? #2716

Open
fastkits opened this issue Mar 19, 2025 · 4 comments
Open

[🐛 Bug]: how open nvidia gpu and webgl application? #2716

fastkits opened this issue Mar 19, 2025 · 4 comments

Comments

@fastkits
Copy link

What happened?

The gpu graphics device cannot be recognized?

Image

Command used to start Selenium Grid with Docker (or Kubernetes)

docker run -d --gpus all -e SE_VNC_NO_PASSWORD=true -e SE_BROWSER_ARGS_CUSTOM2="--disable-gpu-sandbox" -e SE_BROWSER_ARGS_CUSTOM5="--ignore-gpu-blocklist" -e SE_BROWSER_ARGS_CUSTOM6="--enable-gpu-rasterization" -e SE_BROWSER_ARGS_CUSTOM7="--enable-webgl" -e SE_BROWSER_ARGS_CUSTOM8="--disable-software-rasterizer" -e SE_BROWSER_ARGS_CUSTOM9="--use-gl=desktop" -e SE_BROWSER_ARGS_CUSTOM9="--enable-features=VaapiVideoDecoder" -e SE_BROWSER_ARGS_CUSTOM9="--disable-dev-shm-usage" -e SE_BROWSER_ARGS_CUSTOM10="--enable-unsafe-webgpu" -e SE_BROWSER_ARGS_CUSTOM11="--enable-features=Vulkan,WebGPU" -p 4444:4444 -p 7900:7900 --shm-size="8g" selenium/standalone-chrome:latest

Relevant log output

Platform:	Linux x86_64
Browser User Agent:	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Context Name:	webgl2
GL Version:	WebGL 2.0 (OpenGL ES 3.0 Chromium)
Shading Language Version:	WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium)
Vendor:	WebKit
Renderer:	WebKit WebGL
Unmasked Vendor:	Google Inc. (Mesa)
Unmasked Renderer:	ANGLE (Mesa, llvmpipe (LLVM 19.1.1 256 bits), OpenGL 4.5)
Antialiasing:	Available
ANGLE:	No
Major Performance Caveat:	No

Operating System

windows11 docker-desktop

Docker Selenium version (image tag)

latest

Selenium Grid chart version (chart version)

No response

Copy link

@fastkits, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@cgoldberg
Copy link

@fastkits
Can you elaborate on what the issue you are having is?

@fastkits
Copy link
Author

this is correct device infos:

Image

use docker selenium chrome : this is error device infos:

Image

@VietND96
Copy link
Member

Your issue looks like similar to #2678, which could not accelerate GPU in Chrome browser running in container.
Before checking browser, can you read that ticket to see the GPU is detected in the container correctly?
If no, I saw you are using Docker Desktop on Windows, probably need to check the enable Nvidia on WSL - https://learn.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl

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

No branches or pull requests

3 participants