To solve ERROR:gpu_init.cc(426) Passthrough is not supported, GL is disabled error follow below methods.
Contents
Why ERROR:gpu_init.cc(426) Passthrough is not supported GL is disabled occurs
I tried crawling a specific site with selenium and webdriver manager.chrome, and my code completely crawled that site’s elements. However, after crawling, the console window displays the following error message.
ERROR:gpu_init.cc(426) Passthrough is not supported, GL is disabled
How to solve ERROR:gpu_init.cc(426) Passthrough is not supported GL is disabled ?
Solved this error by just enable WebGL in chrome. Follow the below steps
- First and foremost, we will enable hardware acceleration.
- Simply navigate to chrome://settings.
- Then, at the bottom of the page, click the Advanced button.
- There is a System section; check the Use hardware acceleration when available checkbox (any changes will take effect after you reopen Chrome).
- We will now activate WebGL.
- Navigate to chrome://flags.
- Check that Disable WebGL is not enabled (any changes will take effect when you reopen Chrome).
- In later versions, the Disable WebGL option will no longer be accessible; instead, look for WebGL 2.0.
- In this case, change Default to Enabled in the drop down menu.
We will now examine the status of WebGL.
- Navigate to chrome:/gpu.
- Inspect the WebGL item in the list of Graphics Feature Status. One of the following will be the status:
- Hardware acceleration – WebGL is on and hardware-accelerated (running on the graphics card).
- WebGL is enabled, but only in software, with no hardware acceleration — WebGL is enabled, but only in software. More information can be found here: “SwiftShader, a software GL rasterizer, is used by Chrome for software rendering of WebGL.”
- WebGL is not available in either hardware or software.
Alternative to Solve ERROR:gpu_init.cc(426) Passthrough is not supported, GL is disabled
I’m not sure if this is a solution to your problem because the error message is slightly different.
As far as I recall, the error message Passthrough is not supported, GL is swiftshader was displayed after Chromedriver version 89 as a bug (although this is not certain) [1].
In Windows, the –headless and –disable-gpu options are necessary to run the chromedriver in headless mode [2]. Because of the problem [3,] it appears that –disable-gpu is also required for Linux.
- If both the –headless and –disable-gpu options are removed, the error message does not show. However, the chrome driver no longer supports headless mode.
- The error warning has no effect on the functionality of a headless chrome in my instance. As I discovered, “Normally, Chrome would just continue to work in the absence of a GPU. Telemetry, on the other hand, requires the presence of a GPU for consistent findings [4].”
- I also used the –disable-software-rasterizer option to disable WebGL [5]. Under the headless operation, the error notice is no longer displayed.
Hope the above solution works.
Also read :
get-pip.py returns SyntaxError: invalid syntax
ImportError: cannot import name ‘get_config’ from ‘tensorflow.python.eager.context’