facebook/memlab

how to handle Page crashed error ,when execute the run method。

susakin opened this issue · 1 comments

微信截图_20240221173312

try {
const { leaks, runResult } = await run({ scenario });
} catch(e) {
console.log(e)
}

try catch can not handle this error, i need to get this error to return to service

This is a Puppeteer error that does not seem to be catchable. It is likely because the browser OOMed (out-of-memory crashed). I would recommend testing on a scenario where the web app uses less memory; or perhaps try the solution here if you are running on Docker: puppeteer/puppeteer#1321 (comment)