如何解决错误的EGL驱动程序消息(错误)eglQueryDeviceAttribEXT:使用Selenium和Python的错误属性 [英] How to address the error EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute using Selenium and Python

查看:559
本文介绍了如何解决错误的EGL驱动程序消息(错误)eglQueryDeviceAttribEXT:使用Selenium和Python的错误属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从硒中收到随机错误消息,即使它们都与我正在运行的确切Web驱动程序命令无关(我不知道).

I'm getting random error messages from selenium, even though none of them are related to the exact web driver commands I'm running (not that I know of).

此错误不会中断程序,只是在添加不需要的警报(使我的打印件更难阅读).

This error isn't interrupting the program, it's just adding unwanted alerts (making my prints harder to read).

  • Chrome版本:75.0.3770.100(正式版本)(64位)
  • Python版本:3.6.1
  • ChromeDriver版本:75.0.3770.140

我已经添加了以下代码,但是仍然出现错误.

I've added the following code already but I'm still getting the error.

options.add_argument("--log-level=3")

错误:

gl_surface_egl.cc(544) - EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute.

推荐答案

chrome://gpu页面是一个很好的线索.我的经验是:在设置菜单中禁用硬件加速会导致错误消息停止,但是使作为基准的Babylon.js演示运行非常缓慢.我仔细阅读并启用了chrome://gpu上红色的所有功能.现在,我在启动Chrome时遇到一个新错误,该错误不再重复:

The chrome://gpu page was a good lead. My experience was: disabling hardware acceleration in the settings menu caused error messages to stop, but made a Babylon.js demo I was using as a benchmark run very slowly. I went through and enabled all of the functionalities that were in red on chrome://gpu. I now have a new error on start-up of Chrome that doesn't repeat:

[13837:13837:0505/004321.484642:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

偶尔:

[13801:13801:0505/005551.603893:ERROR:CONSOLE(15)] "Uncaught TypeError: Do not know how to serialize a BigInt", source: chrome://gpu/vulkan_info.js (15)

该基准现在运行良好.希望这对我以外的人都有效.我在Linux上使用AMD GPU驱动程序,并根据检测到的问题"判断部分,我怀疑这是我案件中的一个促成因素.好吧,祝你好运!

The benchmark runs well now, though. Hopefully, this works for someone besides me. I'm on Linux with an AMD GPU driver, and judging by the "Problems Detected" portion, I suspect that is a contributing factor in my case. Well, good luck!

这篇关于如何解决错误的EGL驱动程序消息(错误)eglQueryDeviceAttribEXT:使用Selenium和Python的错误属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆