【问题标题】:ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers error using ChromeDriver and Chrome with SeleniumERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers error using ChromeDriver and Chrome with Selenium
【发布时间】:2020-06-14 20:10:53
【问题描述】:

我正在尝试执行基本的 python google chrome 自动化 selenium 命令 执行以下代码时出现以下错误:

from selenium import webdriver
chrome_path=r"xxxx\chromedriver_win32_2\chromedriver.exe"
driver= webdriver.Chrome(chrome_path)
driver.get("<somesite>")

注意: 我有windows7 64位操作系统,Chrome驱动版本是最新的,chome浏览器也是最新的。

错误:

DevTools listening on ws://127.0.0.1:12592/devtools/browser/78ac717d-857a-436c-9b28-ee18bc18fa66
[0615/004254.120:ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0615/004254.127:ERROR:gl_surface_egl.cc(1236)] eglInitialize D3D11 failed with error EGL_NOT_INITIALIZED, trying next display type
[0615/004255.175:ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0615/004255.176:ERROR:gl_surface_egl.cc(1236)] eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED
[0615/004255.178:ERROR:gl_initializer_win.cc(196)] GLSurfaceEGL::InitializeOneOff failed.
[0615/004255.184:ERROR:viz_main_impl.cc(152)] Exiting GPU process due to errors during initialization
Code executing....
[0615/005841.064:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"MediaSource endOfStream before demuxer initialization completes (before HAVE_METADATA) is treated as an error. This may also occur as consequence of other MediaSource errors before HAVE_METADATA."}
[0615/005942.374:ERROR:batching_media_log.cc(38)] MediaEvent: {"

【问题讨论】:

    标签: selenium google-chrome selenium-webdriver webdriver selenium-chromedriver


    【解决方案1】:

    此错误消息...

    [0615/004254.120:ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers
    

    ...暗示 ChromeDriver 无法启动/生成新的浏览上下文,即 Chrome 浏览器 会话。

    由于 版本不匹配,通常会出现此错误。


    解决方案

    您需要将ChromeDriverGoogle Chrome 版本升级到最新版本或任一兼容版本,详见讨论Protractor-selenium error message : “gl_surface_egl.cc eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED”


    结尾

    您可以在以下位置找到相关讨论:

    【讨论】:

    • 嗨@DebanjanB,感谢您的回复。但是在发布这个问题之前,即使我尝试降级到相同版本,我也已经尝试将两者升级到最新版本。我不知道为什么它会发生
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-27
    相关资源
    最近更新 更多