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

External browser stops responding after connecting too soon after launch #2632

Open
PhantomGamers opened this issue May 8, 2024 · 0 comments

Comments

@PhantomGamers
Copy link

PhantomGamers commented May 8, 2024

Description

I've been stuck on PuppeteerSharp 6.2.0 for a while because the chromium instance I needed to interact with was stuck on a pre-100 version for the longest time and only recently got updated to 109.

After updating to the latest version of Puppeteer Sharp (v17), I noticed that if I connect to the browser instance as soon as it launches, just connecting and nothing else, the browser becomes unresponsive. I've narrowed down the issue to something added in PuppeteerSharp v9, v8 and everything below work fine.

Now I suspect this is some edge case with the particular application I'm trying to connect to, which in this case is the Steam client ran with the -cef-enable-debugging argument.

Complete minimal example reproducing the issue

Just running Puppeteer.ConnectAsync as soon as the debugging server starts seems to cause the issue.

I can provide a full minimal example later if I can't figure out the issue myself, just wanted to get this issue started here for documentation purposes.

Expected behavior:

Puppeteer connects to the browser, and the browser continues to operate normally.

Actual behavior:

Puppeteer connects to the browser, and the browser stops responding to user input.

Versions

  • Which version of PuppeteerSharp are you using?
    v9-v17
  • Which .NET runtime and version are you targeting? E.g. .NET framework 4.6.1 or .NET Core 2.0.
    .NET 8.0

Additional Information

The project in question that I'm working on that demonstrates this issue can be found here: https://github.com/PhantomGamers/SFP/tree/6cf9682cee684b79d945f8e4cc9c0bd0db59d0e9

It does do more than just connect, but I commented everything puppeteer related out except the connection and still was able to reproduce the issue.

I suspect the issue is related to this Introduce Target Managers commit but I need to look into it further at some point, hopefully during the week.

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