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

[Bug] Chromium crashes on browser.close() when using plugin-stealth 2.9.0 #601

Closed
josep11 opened this issue Dec 29, 2021 · 2 comments
Closed
Labels
issue: bug report A bug has been reported needs triage

Comments

@josep11
Copy link
Contributor

josep11 commented Dec 29, 2021

Chromium crashes on browser.close() when using plugin-stealth.
I tried it using another plugin like puppeteer-extra-plugin-adblocker and it doesn't crash.
It happens in a similar fashion as with #421.
It obviously doesn't happen when headless launch option is set to false.

Code Snippet

const puppeteer = require('puppeteer-extra')

// const AdblockerPlugin = require('puppeteer-extra-plugin-adblocker');
// puppeteer.use(AdblockerPlugin());
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin());

const url = "https://github.com/berstend/puppeteer-extra/issues/421";

(async () => {
    const browser = await puppeteer.launch({
        headless: false,
        slowMo: 150,
        ignoreHTTPSErrors: true
    })

    const page = await browser.newPage();

    await page.goto(url, { waitUntil: 'domcontentloaded' });

    await browser.close();
})()

Versions

@types/puppeteer@5.4.4
child-process-async@1.0.1
colors@1.4.0
dotenv@10.0.0
eslint@8.5.0
fs@0.0.1-security
is-internet-available@3.0.0
jsonpath@1.1.1
mocha-junit-reporter@2.0.2
mocha@9.1.3
puppeteer-extra-plugin-adblocker@2.12.0
puppeteer-extra-plugin-stealth@2.9.0
puppeteer-extra@3.2.3

@josep11 josep11 added issue: bug report A bug has been reported needs triage labels Dec 29, 2021
@naumoff1337
Copy link

Same. Did you find a solution to this problem?
If I use the non-headless version, then browser.close() works fine, but if I set headless: true, browser.close() crashes Chromium.

@berstend
Copy link
Owner

berstend commented Jul 8, 2022

Should be fixed through #656

@berstend berstend closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug report A bug has been reported needs triage
Projects
None yet
Development

No branches or pull requests

3 participants