You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04虚拟机中Headless Chrome无法识别GPU求助

Ubuntu 22.04虚拟机中Headless Chrome无法识别GPU导致WebGL2未启用的问题

我在Ubuntu 22.04虚拟机中运行Headless Chrome,正面临Chrome无法识别GPU的问题。使用Playwright启动Headless Chrome实例时,配置参数如下:

chrome_args = [
    '--enable-features=Vulkan,UseSkiaRenderer',
    '--use-vulkan=swiftshader',
    '--enable-unsafe-webgpu',
    '--disable-vulkan-fallback-to-gl-for-testing',
    '--dignore-gpu-blocklist',
    '--use-angle=vulkan'
]
browser = playwright.chromium.launch(args=chrome_args, headless=True, channel="chrome")

但渲染对象时(例如使用Three.js示例场景),出现WebGL2未启用的错误,相关截图如下:

  • chrome://gpu页面截图:chrome://gpu页面截图
  • 检测到的问题截图:检测到的问题截图

内容的提问来源于stack exchange,提问作者GRS

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 15:32:02