Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

378
Vistas
Puppeteer "Failed to launch the browser process!" when launching multiple browsers

I'm trying to launch multiple instances of browser to handle my tasks simultaneously. To illuminate I used the following code:

export async function play() {
    const b1 = await launchBrowserPuppeteer()
    const b2 = await launchBrowserPuppeteer()
    const b3 = await launchBrowserPuppeteer()
}

where:

export const launchBrowserPuppeteer = async () => {
    const options = {
        headless: false,
        userDataDir: env.chromeUserDataDir,
        executablePath: env.chromeExecutablePath,
    }
    return await puppeteer.launch(options);
}

I expected three separate windows getting opened, but what happens is like this:

First a chromium window is opened (b1), next a new tab is opened inside that window (b2), and then an exception is thrown:

Error: Failed to launch the browser process!

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (\node_modules\puppeteer\src\node\BrowserRunner.ts:268:9)
at ChildProcess.<anonymous> (\node_modules\puppeteer\src\node\BrowserRunner.ts:255:61)
at ChildProcess.emit (node:events:539:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

When I close() browsers and launch a new one, I get no errors. Is launching multiple browsers generally supported by puppeteer, or I'm using it in a wrong way?

Any suggestion is highly appreciated.

I'm on a windows machine and the chromium version is 102.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda