Skip to content

[🐛 Bug]: Deadlock in Selenium Java bindings #12576

@asolntsev

Description

@asolntsev

What happened?

My Java test opens a browser and hangs forever.

How can we reproduce the issue?

I managed to create a simple reproducible example: https://github.com/asolntsev/selenium-deadlock

When running `mvn test`, it hangs immediately.

A sample thread dump is stored [here](https://github.com/asolntsev/selenium-deadlock/blob/main/thread-dump.txt).
It contains two threads blocking each other: "main" #1 and "CDP Connection" #57.

Relevant log output

https://github.com/asolntsev/selenium-deadlock/blob/main/thread-dump.txt

Operating System

MacOS (no matter)

Selenium version

4.11.0 - 4.9.0 (probably older versions too)

What are the browser(s) and version(s) where you see this issue?

Chrome 116, Edge 115 (versions don't really matter)

What are the browser driver(s) and version(s) where you see this issue?

automatically downloaded by SeleniumManager

Are you using Selenium Grid?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-devtoolsIncludes everything BiDi or Chrome DevTools relatedC-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions