question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading is freezing after some time

See original GitHub issue

Hello! 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:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
cungminh2710commented, Jun 8, 2017

SIGBUS on Docker can be related to shared memory issue

For comparison, on various container environments, /dev/shm can be much smaller by default.

  • Heroku: 5MB
  • Docker: 64MB
  • Vagrant ubuntu/trusty64: 256MB

To fix /dev/shm issue, simply configure --shm_size to be 256 or more in Docker config. Or if you use docker-compose, use shm_size: 256MB in your service config

2reactions
ErlendSBcommented, Jun 8, 2017

Excellent! That did it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found