Core dumps on headless server (16.04)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| phantomjs (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
1) Ubuntu: 16.04 server (headless, no X)
2) Package version: phantomjs 2.1.1+dfsg-1
3) I'm expecting it to work (not crash) and run a script.
4) On an up to date system, it crashes and dumps core, even when simply running 'phantomjs' in a command line (it doesn't matter if run with sudo or without):
QXcbConnection: Could not connect to display
PhantomJS has crashed. Please read the bug reporting guide at
<http://
Aborted (core dumped)
It doesn't even work when providing a script to run.
Falk Nisius (falknisius) wrote : | #2 |
Perhaps it depends on https:/
as workaround can be:
- compile from source for headless usage
- install xvfb and use 'xvfb-run phantomjs' to wrap it in an xserver
goldcove (goldcove) wrote : | #3 |
According to issue #14330 @ phantomjs this is due to a bug in the deb:
https:/
A third workaround is to use the static binary from http://
Thomas d'Otreppe (thomas-dotreppe) wrote : | #4 |
goldcove, I'm sorry I should have mentioned that. The binary from phantomjs doesn't have this issue as you say. However, it has another issue (that has been resolved in their repository after the release): we cannot set the DPI (and it works fine with the deb) which means you might have to rework the html being converted/printed to PDF to adjust sizes.
J Logan (sgtbakerrahulnet) wrote : | #5 |
Another workaround for this is to use the 'offscreen' platform. For example:
QT_QPA_
Phill (phill.l) wrote : | #6 |
https:/
Status changed to 'Confirmed' because the bug affects multiple users.