Passthrough Is Not Supported, Gl Is Disabled
Solution 1:
Tested environment
Windows OS, Chromedriver vesion 89, headless mode
Solution
I am not certain that this can be a solution for your question, since the error message is slightly different.
As I remember correctly, the error message Passthrough is not supported, GL is swiftshader
has been shown after the Chromedriver version 89 as a bug (but not certain) [1].
In case of Windows, --headless
and --disable-gpu
options are required to make the chromedriver work as a headless mode [2]. It seems like --disable-gpu
is also required for Linux because of the bug [3].
The error message does not appear if both
--headless
and--disable-gpu
options are removed. However, the chromedriver does not work as a headless mode anymore.In my case, the error message does not affect the operation of a headless chrome. As I found, "Normally, Chrome would just fall back to work without GPU. However, for consistent results, Telemetry requires the presence of GPU [4]."
I've additionally applied
--disable-software-rasterizer
option to disable WebGL [5]. The error message does not show anymore under the headless operation.
References
[1] https://reddit.com/r/chrome/comments/n6qywt/hardware_acceleration_fail_in_chrome_on_linux/ [2] https://developers.google.com/web/updates/2017/04/headless-chrome [3] https://bugs.chromium.org/p/chromium/issues/detail?id=737678 [4] https://groups.google.com/a/chromium.org/g/telemetry/c/bEgV1EH63eA [5] https://bugs.chromium.org/p/chromium/issues/detail?id=617551
Solution 2:
I had the same problem with selenium and chromedriver. For me the solution was to activate WebGL in Chrome browser. I did the following
chrome://settings
-> ClickAdvanced
at the bottom -> Check theUse hardware acceleration when available
box
chrome://flags
-> Search forWebGL
in the search bar -> Enable / Activate WebGL There are much better instructions here: https://superuser.com/questions/836832/how-can-i-enable-webgl-in-my-browser
Solution 3:
I got this error as a result of using NVIDIA's Quadro view so for me the fix was to disable that.
Solution 4:
I received this error during Eclipse Startup and fixed it by changing two things:
- Now using a more recent Java VM for Eclipse, in my case I was moving from Java8 to Java11
- Also moving from JRE to JDK
Add Eclipse Start Parameter:
-vm C:\PROGRA~1\ECLIPS~1\jdk-11.0.12.7-hotspot\bin\javaw.exe
Post a Comment for "Passthrough Is Not Supported, Gl Is Disabled"