hardkoded/puppeteer-sharp

Chrome 129 headless Error

Closed this issue · 12 comments

Today, I updated the Chrome browser to the latest version (129).
After the update, running Chrome in headless mode produces an unusual result: a blank white window appears, matching the size of the browser.
image

We don't have support for 129 yet. Upstream change in puppeteer might come soon.

I tested on chrome128 and chrome130. there was no problem. I think chromium(129) has a problem.

Do you know how to fix this issue interim?

So you are using your installed browser rather than the one downloaded by puppeteer right?

Yes we are using installed browser

I tried to reproduce that. But I'm not getting that on Chrome 129.0.6668.60 on MacOS.

It seems this was reported on Selenium here. It was also reported on chromium bugs here.

One potential, an ugly, workaround is to add this command line argument --window-position=-2400,-2400.

It is also reported that you could replace Headless = false with HeadlessMode = HeadlessMode.Shell.

It is also reported that you could replace Headless = false with HeadlessMode = HeadlessMode.Shell.

That is not correct way, since that will point to old headless mode which is going to be out of support from chrome soon.
By default parameters, i.e new headless we are getting this white screen.

It is also reported that you could replace Headless = false with HeadlessMode = HeadlessMode.Shell.

That is not correct way, since that will point to old headless mode which is going to be out of support from chrome soon. By default parameters, i.e new headless we are getting this white screen.

Ok so you'll need to wait till the chromium team fixes the bug.

This is resolved in google chrome release - Version 130.0.6723.59

Can confirm that current build as of 26 Oct 2024 have this issue
I'm running next code

var browserFetcher = new BrowserFetcher();
await browserFetcher.DownloadAsync()
    .ConfigureAwait(false);

var launchOptions = new LaunchOptions()
{
    Args = new string[]
    {
        "--no-sandbox"
    },
    Headless = true
};
browser = await Puppeteer.LaunchAsync(launchOptions).ConfigureAwait(false);

Fetching loads Chrome/129.0.6668.100

  • Windows 11 23H2 (22631.4317)
  • net6.0

Waiting for new PuppeteerSharp version?