如何解决Ubuntu 上的 Google Chrome Headless 在启动时崩溃
我正在尝试模拟 selenium 执行的命令,以了解为什么 Google Chrome 在运行 google-chrome 版本 90.0.4430.93 的 Ubuntu 18.04 上崩溃
执行命令
/usr/bin/google-chrome --allow-pre-commit-input --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --headless --log-level=0 --no-first-run --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.eltrZ4 --disable-gpu-driver-workarounds --ignore-gpu-blacklist --disable-dev-shm-usage --enable-gpu-rasterization data:,
出现以下错误
DevTools listening on ws://127.0.0.1:41211/devtools/browser/887a417b-5f9b-4c08-9f0c-247960367e96
[0618/070230.189026:ERROR:vaapi_wrapper.cc(594)] Could not get a valid VA display
[0618/070230.189335:ERROR:gpu_init.cc(426)] Passthrough is not supported,GL is egl
#
# Fatal error in,line 0
# ignored
#
#
#
#FailureMessage Object: 0x7a162d11dee0#0 0x1428e5a45a69 <unknown>
[0618/070230.195948:WARNING:crash_handler_host_linux.cc(365)] Could not translate tid - assuming crashing thread is thread group leader; syscall_supported=0
[0618/070230.196209:ERROR:crash_handler_host_linux.cc(444)] Failed to write crash dump for pid 5283
Cannot upload crash dump: failed to open
--2021-06-18 07:02:30-- https://clients2.google.com/cr/report
Resolving clients2.google.com (clients2.google.com)...
#
# Fatal error in,line 0
# ignored
#
#
#
#FailureMessage Object: 0x7a162d11dee0#0 0x1428e5a45a69 <unknown>
[0618/070230.234066:WARNING:crash_handler_host_linux.cc(365)] Could not translate tid - assuming crashing thread is thread group leader; syscall_supported=0
[0618/070230.234238:ERROR:crash_handler_host_linux.cc(444)] Failed to write crash dump for pid 5308
142.250.65.78,2607:f8b0:4004:832::200e
Connecting to clients2.google.com (clients2.google.com)|142.250.65.78|:443... connected.
HTTP request sent,awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘/dev/fd/4’
Crash dump id: 1ad6c72034456140
0K 1.25M=0s
Cannot upload crash dump: failed to open
--2021-06-18 07:02:30-- https://clients2.google.com/cr/report
Resolving clients2.google.com (clients2.google.com)... 142.250.65.78,awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘/dev/fd/4’
0K
Crash dump id: 2a15ef026b43c605
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。