Сообщение драйвера EGL (Ошибка) eglQueryDeviceAttribEXT: Неверный атрибут - PullRequest
0 голосов
/ 05 октября 2019

мы получаем ошибку ниже, когда браузер chrome запускается, и любое представление по проблеме ниже, где используется хром и селен, используется python

DevTools прослушивает ws: //127.0.0.1: 12306 / devtools /browser / 14f00afd-581d-4a48-9141-8ab74c3355cf [1005 / 210449.408: ОШИБКА: gl_surface_egl.cc (612)] Сообщение драйвера EGL (Ошибка) eglQueryDeviceAttribEXT: Неверный атрибут. [1005 / 210503.773: ОШИБКА: context_group.cc (151)] ContextResult :: kFatalFailure: WebGL2 помещен в черный список [1005 / 210508.959: ОШИБКА: shared_image_manager.cc (120)] SharedImageManager :: ProduceGLTexture: попытка создать существующее представление из несуществующего представленияпочтовый ящик. FB: DB: 4B: EB: 07: 94: DB: D6: DA: B3: D4: 47: 9D: AC: 5B: 83 [1005 / 210508.960: ОШИБКА: gles2_cmd_decoder.cc (18508)] [.DisplayCompositor] GLОШИБКА: GL_INVALID_OPERATION: DoCreateAndTexStorage2DSharedImageINTERNAL: недопустимое имя почтового ящика [1005 / 210508.960: ОШИБКА: gles2_cmd_decoder.cc (18529)] [.DisplayCompositor] [.DisplayCompositor]. cc (10742)] [.DisplayCompositor] RENDER ПРЕДУПРЕЖДЕНИЕ: текстура, привязанная к единице текстуры 0, не может быть воспроизведена. Это может быть не power-of-2 или несовместимая фильтрация текстур (может быть)? [1005 / 210508.962: ОШИБКА: gles2_cmd_decoder.cc (18552)] [.DisplayCompositor] ОШИБКА GL: GL_INVALID_OPERATION: DoEndSharedImageAccessCHROMIUM: связанная текстура не является общим изображением [1005 / 210509.0272_Com_D_C_C_COM_RD)ОШИБКА GL: GL_INVALID_OPERATION: DoBeginSharedImageAccessCHROMIUM: связанная текстура не является общим изображением [1005 / 210509.028: ОШИБКА: gles2_cmd_decoder.cc (10742)] [.DisplayCompositor] ПРЕДУПРЕЖДЕНИЕ О ПОРЯДКЕ: текстура, привязанная к блоку текстуры 0, не отображается. Это может быть не power-of-2 или несовместимая фильтрация текстур (может быть)? [1005 / 210509.028: ОШИБКА: gles2_cmd_decoder.cc (18552)] [.DisplayCompositor] ОШИБКА GL: GL_INVALID_OPERATION: DoEndSharedImageAccessCHROMIUM: связанная текстура не является общим изображением [1005 / 210509.6732_CoD_COM_COM_COM_COMD_COMD_COM_COMD_COMD_COMD_COMD_COMD_COM] :_RoD_C_C_COMОШИБКА GL: GL_INVALID_OPERATION: DoBeginSharedImageAccessCHROMIUM: связанная текстура не является общим изображением [1005 / 210509.674: ОШИБКА: gles2_cmd_decoder.cc (10742)] [.DisplayCompositor] ПРЕДУПРЕЖДЕНИЕ О ПОРЯДКЕ: текстура, привязанная к блоку текстуры 0, не отображается. Это может быть не power-of-2 или несовместимая фильтрация текстур (может быть)? [1005 / 210509.674: ОШИБКА: gles2_cmd_decoder.cc (18552)] [.DisplayCompositor] ОШИБКА GL: GL_INVALID_OPERATION: DoEndSharedImageAccessCHROMIUM: связанная текстура не является общим изображением 10/05/2019 09:05:16 amxt-alexoudeВремя в Гонконге, 6:50 утра.

import platform , logging
import os,re
from time import  sleep
import selenium.webdriver.support.ui as ui
import selenium.webdriver.support.expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains

class Cloud(object):
    """
    Amazon cloud class to get query and response for alexa
    """

    def __init__(self, username='xxxxxxxx', password='xxxx'):

        logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.INFO)
        self.logger = logging.getLogger(__name__)

        self.url = "https://www.amazon.com"
        self.username = username
        self.password = password
        self.timeout = 100
        self.driver = None
        self.get_chrome_driver()

    def get_chrome_driver(self):
        """
        get chrome driver
        """
        if platform.system().lower() == 'windows':
            if self.driver is None:
                chrome_options = Options()
                #chrome_options.add_argument('--disable-extensions')
                chrome_options.add_argument('--start-maximized')
                chrome_options.add_argument('--disable-popup-blocking')
                chrome_options.add_argument('--ignore-certificate-errors')
                chrome_options.add_argument('--allow-insecure-localhost')
                chrome_options.add_argument('--disable-infobars')
                chrome_options.add_argument("--log-level=3")
                chrome_driver_path = os.path.join(str(os.environ['PYTHONPATH'].split(';')[0]),"bin","chromedriver","chromedriver.exe")
                self.driver = WebDriver(executable_path=chrome_driver_path, chrome_options=chrome_options)
        return self.driver

    def login(self, username='xxxxxxxxx', password='xxxxx'):
        """
        Login into amazon cloud
        """
        self.logger.info("logging in amazon cloud username: %s and password: %s" %(self.username, re.sub(r".", "*", self.password)))
        self.driver.get(self.url)
        # wait for login username textbox

        self.wait_visibility_element(By.XPATH, "//div[@id='nav-signin-tooltip']//span[@class='nav-action-inner'][contains(text(),'Sign in')]")
        self.driver.find_element_by_xpath("  //div[@id='nav-signin-tooltip']//span[@class='nav-action-inner'][contains(text(),'Sign in')]").click()

        self.wait_visibility_element(By.XPATH,"//label[@class='a-form-label']")

        self.wait_visibility_element(By.XPATH,"//input[@id='ap_email']")
        username_textbox = self.driver.find_element_by_xpath("//input[@id='ap_email']")
        username_textbox.clear()
        username_textbox.send_keys(self.username)  
        self.driver.find_element_by_xpath("//input[@id='continue']").click() 
        self.wait_visibility_element(By.XPATH,"//input[@id='ap_password']")  #//label[@class='a-form-label']

        password_textbox = self.driver.find_element_by_xpath("//input[@id='ap_password']")
        password_textbox.clear()
        password_textbox.send_keys(self.password)
        # click on submit button
        self.driver.find_element_by_xpath("//input[@id='signInSubmit']").click()


    def wait_visibility_element(self, by_type, element_name):
        """
        wait for visibility of element
        :param by_type: Locate element using type of element
        :param element_name: element name
        """
        ui.WebDriverWait(self.driver, self.timeout).until(
            EC.visibility_of_element_located((by_type, element_name)))
...