Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Segmentation Fault #13735

Closed
MrOutput opened this issue Nov 17, 2015 · 1 comment
Closed

Segmentation Fault #13735

MrOutput opened this issue Nov 17, 2015 · 1 comment
Labels

Comments

@MrOutput
Copy link

Not sure why but phantom is generating my pdf while also giving me a seg fault.

var webPage = require('webpage'),
    system = require('system'),
    page = webPage.create(),
    stream = system.stdin,
    FILENAME = ''

while (!stream.atEnd())
    FILENAME += stream.readLine()

stream.close()

page.viewportSize = {
    width: 1920
  , height: 1080
}

page.paperSize = {
    height: '11in'
  , width: '8.5in'
  , margin: '0.25in'
  , footer: {
        height: "0.75in"
      , contents: phantom.callback(function (pageNum, numPages) {
            return "<small style='font-size: 0.5em; font-weight: bold'>Building Energy Sciences <span style='float:right'>" + pageNum + " / " + numPages + "</span></small>"
        })
    }
}

page.open('/home/rafael/work/api/src/' + FILENAME + '.html', function (status) {
    if (status === 'success') {
        page.render('/home/rafael/work/api/src/' + FILENAME + '.pdf', {format: 'pdf', quality: 50})
        phantom.exit(0)
    }
    else
        phantom.exit(1)
})

dump.txt

@stale stale bot added the stale label Dec 27, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant