pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.62k stars 3.48k forks source link

Out of Memory in Chrome #2293

Closed gigasoftit closed 11 months ago

gigasoftit commented 1 year ago

Is there an existing issue for this?

Describe the bug

Screenshot 2023-06-22 105930

Whatsapp web loading then get this error.

Expected behavior

...

Steps to Reproduce the Bug or Issue

...

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Windows 10

Additional context

No response

roigreenberg commented 1 year ago

It's a global WhatsApp issue. You can use the new "webVersion" option to use a previous working version (Should be in .wwebjs_cache if you ran it before.)

roigreenberg commented 1 year ago

wwebjs_cache.zip

Here is a working version

tofers commented 1 year ago

I ran into your problem today.

Whatsapp seems to have broken something on its side.

But I only encountered some languages Arabic, Hindi, Hebrew. All languages that have a right-to-left layout.

I even checked on mine. In English everything works, changed the language on my phone to Arabic and Whatsapp stopped working.

tofers commented 1 year ago

The temporary solution was to return customers to the old version

 webVersionCache: {
        type: 'remote',
        remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2322.15.html',
    },
mkhdoom commented 1 year ago

@tofers where can i put this json ?

mkhdoom commented 1 year ago

hi @roigreenberg
how can we implement this ?

roigreenberg commented 1 year ago

Use the latest version, and put the webVersionCache from @tofers comment in the object you pass to the Client (new Client({/*here*/}))

mkhdoom commented 1 year ago

@roigreenberg

Unfortunately it doesn't work.

client = new Client({ webVersionCache: { type: 'remote', remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2322.15.html', }, puppeteer: { headless: false , args: ['--no-sandbox', '--disable-setuid-sandbox'], }, // Make headless true or

});

roigreenberg commented 1 year ago

Try to use webVersion: '2.2325.3', instead, with the file I sent above.

vladkucherov commented 1 year ago

I can confirm @roigreenberg solution works.

new Client({
  webVersion: "2.2325.3",
  webVersionCache: {
    type: "remote",
    remotePath: "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2325.3.html",
  },
  authStrategy: new LocalAuth({
    dataPath: authStorageDir,
  }),
  puppeteer: {
    headless: true,
    args: [
      "--no-sandbox",
      "--no-first-run",
      "--disable-setuid-sandbox",
      "--disable-dev-shm-usage",
      "--disable-accelerated-2d-canvas",
      "--disable-gpu",
      "--single-process",
      "--no-zygote",
    ],
  },
})
tofers commented 1 year ago

Whatsapp version 2.2326.10 fixed problem