-
Notifications
You must be signed in to change notification settings - Fork 406
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
Stuck for no reason? #314
Comments
I have the same situation, but not randomly, it just stuck with chrome process killed after several minutes. |
Did anyone find a solution or workaround? No exception is thrown and no error is printed. I still have a few chrome processes running when the script gets stuck. |
I discovered what causes blocks in my case. The blocks happen when a tab is pointed toward ( Solution (works for me): /**
* @param {!string} baseUrl
* @return {!Promise<!Array<!string>>}
* @private
*/
async _collectLinks(baseUrl) {
const links = [];
await Promise.race([
new Promise(function(resolve, reject) {
setTimeout(resolve, 10000);
}),
this._page.exposeFunction('pushToLinks', link => {
const _link = resolveUrl(link, baseUrl);
if (_link) links.push(_link);
})
]);
console.log("PASSED"); Possibly this modification causes a memory leak, but it worksForMe. |
Maybe @yujiosaka could look more into this since it's clearly an easy to reproduce and easy to fix bug. |
Try to add |
is anyone willing making a PR? |
i have a list that has 1.8k urls, but when
it seems stuck randomly without timeout?
1.8.0
osx
v8.11.3
The text was updated successfully, but these errors were encountered: