Skip to content
Home » ERROR:gpu_init.cc(426) Passthrough is not supported GL is disabled

ERROR:gpu_init.cc(426) Passthrough is not supported GL is disabled

To solve ERROR:gpu_init.cc(426) Passthrough is not supported, GL is disabled error follow below methods.

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

  1. First and foremost, we will enable hardware acceleration.
  2. Simply navigate to chrome://settings.
  3. Then, at the bottom of the page, click the Advanced button.
  4. There is a System section; check the Use hardware acceleration when available checkbox (any changes will take effect after you reopen Chrome).
  5. We will now activate WebGL.
  6. Navigate to chrome://flags.
  7. Check that Disable WebGL is not enabled (any changes will take effect when you reopen Chrome).
  8. In later versions, the Disable WebGL option will no longer be accessible; instead, look for WebGL 2.0.
  9. In this case, change Default to Enabled in the drop down menu.

We will now examine the status of WebGL.

  1. Navigate to chrome:/gpu.
  2. Inspect the WebGL item in the list of Graphics Feature Status. One of the following will be the status:
  3. Hardware acceleration – WebGL is on and hardware-accelerated (running on the graphics card).
  4. 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.”
  5. 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.

  1. 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.
  2. 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].”
  3. 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’