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 crash: code -1073741819 on setting view port #89

Open
majuansari opened this issue Feb 18, 2014 · 0 comments
Open

phantom crash: code -1073741819 on setting view port #89

majuansari opened this issue Feb 18, 2014 · 0 comments

Comments

@majuansari
Copy link

I am getting "phantom crash: code -1073741819" on setting view port width to a value greater 600 .

Following is the code i use

 var phantom = require('node-phantom');
            phantom.create(function (err, ph) {
        ph.createPage(function (err, page) {
    page.get('viewportSize',function(err,value){
        console.log(value);
        page.set('viewportSize',{width:800,height:600},function(err){
             page.set('content',data.html, function (err, status) {
            setTimeout(function() {
                page.render('capture.png',function(err){
                console.log("created image");
                //    ph.exit();
                });
                                }, 10000);
            });
        });
    });
        });
      });

If here i set height to 600 it will work fine .
//page.set('viewportSize',{width:600,height:600},function(err){

Can any body please help me out on this issue ?
Thanks

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

1 participant