-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello,
thank you for this awesome distribution!
I'm having a problem with $webkit->open method - it sometimes hangs the execution of the program, tends to do this for the same urls, but that may be just a coincidence since my program always opens urls in the same order, and I see in code that this function waits for pending data on the page it's leaving. However, this happened to me even when I opened an url that only contained simple minified CSS.
The program then uses 100% CPU and doesn't seem to ever return to my caller function - waited ~10 mins. I can currently pretty deterministically reproduce this problem, but it happens after a login wall of a closed webpage so can't share any link you can follow. Could you assist me in debugging or at the very least give some insights on what could have gone wrong?
My pipeline is somewhat like this:
- open url, wait for the page to load
- wait for layout element to become visible
- wait additional 3 sec (a lot of JS lazyloading)
- run some javascript on the page (mostly get js-generated content) and analyze it
- move to the next page, repeating the process
My current best guess is that the page I'm leaving is loading a lot of stuff with javascript lazyloaders, which takes a lot of time and more for every batch. I could try to stop all the scripts on that page and just leave it, but I can't see a way in module's API to do this.
Any help will be appreciated, thank you!