Skip to content
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

Phantom Process died #139

Open
toddwprice opened this issue Jul 26, 2016 · 2 comments
Open

Phantom Process died #139

toddwprice opened this issue Jul 26, 2016 · 2 comments

Comments

@toddwprice
Copy link

Certain pages are causing the "Phantom Process died" error to be raised after 30 seconds. If I use a simple phantomjs script directly, the same page loads just fine, though it takes longer than 30 seconds.

Here's an example:

var driver = require('node-phantom-simple');
var url = 'http://www.ebay.com/itm/Hybrid-VERGE-Accessory-Hard-Silicone-Case-Cover-Gel-Apple-iPhone-5S-SE-/301884820233?var=600695910819';

driver.create(function (err, browser) {
  browser.createPage(function (err, page) {
    page.open(url, function (err, status) {
      if (err) console.log('error', err);
      else {
        console.log('done');
      }
    });
  });
});

Running the following script with phantomjs myScript.js works fine though:

var page = require('webpage').create();
var url = 'http://www.ebay.com/itm/Hybrid-VERGE-Accessory-Hard-Silicone-Case-Cover-Gel-Apple-iPhone-5S-SE-/301884820233?var=600695910819';
page.open(url', function() {
  page.render('ebay.png');
  phantom.exit();
});

Is there a default timeout of 30 seconds in one of the underlying calls perhaps?

@puzrin
Copy link
Contributor

puzrin commented Sep 8, 2016

https://github.com/baudehlo/node-phantom-simple/blob/2.2.4/bridge.js#L13

We could do watchdog timeout tuneable. But in fact, freezing browser for 30 seconds is NOT normal.

@jeandat
Copy link

jeandat commented Dec 28, 2016

It is not normal but it happens notably when you tend to execute a lot of phantom processes in parallel. The mean time augment considerably. Making it customizable would be great indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants