当在centos上启动google-chrome稳定时,浏览器可以启动成功,但是页面会崩溃,并向aw,snap!展示如何修复此错误?
操作系统:
CentOS Linux release 7.2 (Final)chrome版本:
Google Chrome 111.0.5563.146 命令:
google-chrome-stable --autoplay-policy=no-user-gesture-required --mute-audio=false --window-size=1920,1080 http://douyin.com产出:
google-chrome-stable --autoplay-policy=no-user-gesture-required --mute-audio=false --window-size=1920,1080 http://douyin.com
[742794:742820:0331/103754.452327:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742825:0331/103754.509872:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742825:0331/103754.509920:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742820:0331/103754.511707:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742820:0331/103754.511750:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742820:0331/103754.526791:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742820:0331/103754.526818:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742820:0331/103754.584518:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742820:0331/103754.584545:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[742794:742912:0331/103754.779461:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742912:0331/103754.779498:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742912:0331/103754.779570:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742912:0331/103754.779589:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742794:742912:0331/103754.779604:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[742833:742833:0331/103754.780520:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[742916:742916:0331/103754.891348:ERROR:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[742864:7:0331/103754.892920:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[0331/103755.989434:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0331/103755.996041:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0331/103755.996073:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[742834:742852:0331/103804.844167:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -100
[742834:742852:0331/103814.894472:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -100发布于 2023-04-01 08:00:13
根据您的日志,D-Bus通信和GPU进程可能会出现问题,要调查错误,应该尝试在没有--no-sandbox沙箱mod的安全性的情况下启动chrome,而不使用--disable-gpu的GPU。
google-chrome-stable --autoplay-policy=no-user-gesture-required --mute-audio=false --window-size=1920,1080 --no-sandbox --disable-gpu http://douyin.com如果这不起作用,您还可以创建一个新的临时配置文件,查看它是否来自该google-chrome-stable --user-data-dir=/tmp/chrome-temp-profile --autoplay-policy=no-user-gesture-required --mute-audio=false --window-size=1920,1080 http://douyin.com
https://unix.stackexchange.com/questions/741514
复制相似问题