Describe the bug
I am using puphpeteer and one day my crawler not longer working with memory exhausted error.
After some checking, i noticed that problem occurred after composer update to latest version of puphpeteer and rialto
Reproducible example
$puppeteer = new Puppeteer(['executable_path' => __DIR__ . '/../../../node_modules/node/bin/node']);
return $puppeteer->launch([
'headless' => true,
'executablePath' => '/usr/bin/chrome-linux/chrome',
'args' => [
// cache
'--disable-dev-profile',
'--aggressive-cache-discard',
'--disable-cache',
'--disable-application-cache',
'--disable-offline-load-stale-cache',
'--disable-gpu-shader-disk-cache',
'--media-cache-size=0',
'--disk-cache-size=0',
// performance
"--disable-infobars",
"--no-sandbox",
"--disable-gpu",
'--disable-setuid-sandbox',
'--no-zygote',
"--disable-web-security",
"--disable-extensions",
"--disable-plugins",
"--headless",
"--disable-breakpad",
"--disable-client-side-phishing-detection",
"--disable-sync",
"--disable-translate",
"--no-experiments",
'--disable-default-apps',
'--mute-audio',
'--no-default-browser-check',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-notifications',
'--disable-background-networking',
'--disable-component-update',
'--disable-domain-reliability',
'--autoplay-policy=user-gesture-required',
'--disable-component-extensions-with-background-pages',
]
]);
}
above is the launch codes as ref.
note that the code is running fine in
puphpeteer v2.4.0
zoonru/rialto 1.5.5
Expected behavior
Successful run without any exception thrown
Exception thrown
Whoops\Exception\ErrorException
…/vendor/clue/socket-raw/src/Socket.php:263
1
Whoops\Run handleError
…/vendor/filp/whoops/src/Whoops/Run.php:520
0
Whoops\Run handleShutdown
[internal]0
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-143-generic aarch64)
- Node version: v22.16.0
- PHP version: 8.3.22
My Node package manager is:
Additional context
Add any other context about the problem here.
Describe the bug
I am using puphpeteer and one day my crawler not longer working with memory exhausted error.
After some checking, i noticed that problem occurred after composer update to latest version of puphpeteer and rialto
Reproducible example
above is the launch codes as ref.
note that the code is running fine in
puphpeteer v2.4.0
zoonru/rialto 1.5.5
Expected behavior
Successful run without any exception thrown
Exception thrown
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
My Node package manager is:
Additional context
Add any other context about the problem here.