Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome freezes after about 10 seconds of launching #2002

Open
unlucky-kit opened this issue Sep 1, 2024 · 0 comments
Open

Chrome freezes after about 10 seconds of launching #2002

unlucky-kit opened this issue Sep 1, 2024 · 0 comments

Comments

@unlucky-kit
Copy link

unlucky-kit commented Sep 1, 2024

A month or so back, on my mac undetected_chromedriver started freezing consistently after about 10 seconds and became unusable. Before that everything worked fine. I thought it was a temporary bug and tried waiting it out. It has been some time but the problem remained. I haven't seen people with the same issue and so I am writing this.

I found a workaround by adding "--disable-gpu" argument on ChromeOptions.

def general_browser():
    options = uc.ChromeOptions()
    options.add_argument("--disable-gpu")

    driver = uc.Chrome(options=options)
    driver.get('https://www.google.com')
    input("Enter anything to quit")
    driver.quit()

options.add_argument("--disable-gpu")

Without this line the freeze comes back.

Any ideas why this is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant