Qudir Ansari
Qudir Ansari

Reputation: 59

ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No available renderers error using ChromeDriver and Chrome with Selenium

I am trying to execute basic python google chrome automation selenium command I am getting below error while executing the below code:

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

Note: I have windows7 64 bit OS, Chrome driver version is latest and chome browser as well latest.

ERROR:

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: {"

Upvotes: 1

Views: 10651

Answers (1)

undetected Selenium
undetected Selenium

Reputation: 193298

This error message...

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

...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.

This error is generally observed due to mismatch between and versions.


Solution

You need to upgrade ChromeDriver and Google Chrome version either to the latest version or to either of the compatible versions as detailed out in the discussion Protractor-selenium error message : “gl_surface_egl.cc eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED”


Outro

You can find a relevant discussion in:

Upvotes: 0

Related Questions