Loading is freezing after some time
See original GitHub issueHello! I’m doing something like that:
CDP((client) => {
// extract domains
const {Network, Page} = client;
// setup handlers
Network.requestWillBeSent((params) => {
console.log(params.request.url);
});
Page.loadEventFired(() => {
client.close();
});
// enable events then start!
Promise.all([
Network.enable(),
Page.enable()
]).then(() => {
return Page.navigate({url: 'https://github.com'});
}).catch((err) => {
console.error(err);
client.close();
});
}).on('error', (err) => {
// cannot connect to the remote endpoint
console.error(err);
});
After loadEventFired i execute some javascript in the page and close client. I’m doing this a lot of time for different sites. It’s working well, but after some time it stop working. It can’t load anything. The restart of chrome helps to solve this.
What am i doing wrong? Hope on your response
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
How to Fix Freezing & Other Issues During Windows Startup
If your computer keeps freezing, the cause is probably software-related. Other possible culprits include corrupt drivers, malware, or damaged ...
Read more >6 Methods to Solve Computer Keeps Freezing (#5 Is Awesome)
In this situation, you should right-click Task Manager, choose Task Manager, click the Processes, find the program that is frozen and click End...
Read more >[Solved] Windows 10 Freezes on Startup or Boot - Driver Easy
5 quick and effective solutions in this post to solve the problem: Windows 10 freezes on startup, or boot: 1: Disable fast startup; ......
Read more >Windows 10 doesnt boot (spinning wheel freezes after few
One more time, the windows freezes after just 3 to 4 seconds of boot time - I doubt the GUI and drivers have...
Read more >What to do when your computer is slow or freezes - USA Today
This time, choose the “Processes” tab. Sort the list by CPU, memory, or disk, whichever was high the last time the computer froze,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
SIGBUS on Docker can be related to shared memory issue
For comparison, on various container environments, /dev/shm can be much smaller by default.
To fix /dev/shm issue, simply configure
--shm_size
to be 256 or more in Docker config. Or if you use docker-compose, useshm_size: 256MB
in your service configExcellent! That did it.