Skip to content

Browser crash on devtools if uc_driver exists before running the script #3714

Closed
@Flojomojo

Description

@Flojomojo

For some reason my chromedriver keeps crashing after opening the devtools if the uv_driver file already exists (meaning every run after the first). Deleting the uc_driver fixes this (until it exists again)

Steps to reproduce:

  1. Make a new directory (optional)
  2. Install seleniumbase (preferably in a venv)
  3. Get a driver instance up and running using the uc mode (see code below for what I used)
  4. Open devtools -> works fine
  5. Let the driver exit
  6. Restart the script
  7. Open devtools -> crash

Deleting uc_driver (for me under the path .venv/lib/python3.13/site-packages/seleniumbase/drivers/uc_driver) fixes this until it exists again (which is after the next run).

OS: Arch 6.12.25-1-lts
Chromedriver version: ChromeDriver 135.0.7049.114
uc_driver version: ChromeDriver 135.0.7049.114

Code i used:

import seleniumbase

with seleniumbase.SB(uc=True) as sb:
    sb.driver.uc_open_with_reconnect("https://google.com")
    breakpoint()

There are no error message or anything else

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Modeinvalid usageYou may need to change what you're doing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions