-
Notifications
You must be signed in to change notification settings - Fork 930
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
QT_QPA_PLATFORM for phantomjs headless #2569
Comments
It comes from ariya/phantomjs#14376 (comment) I think but the key point is that it doesn't work with the Debian/Ubuntu packaged phantom - you need to use the upstream one. |
I don't believe offscreen will work by the way because it still requires an X server I think - it just positions the window off the edge of the screen so it's not visible. |
Hmm 2f342ba is odd because it was supposed to be making it conditional but also changed it from |
The core issue though is that there is no good solution for Debian/Ubuntu systems - you basically can't use the packaged phantomjs on a headless system. So you either have to use the upstream one or you have to run in an environment with an X server of some sort even if it's Xvfb or something. |
"offscreen" works on my virtual machine, without needing an X server. I suspect/guess that "phantom" is a platform that only exists on the phatomjs patched version of QT. |
I mean I'm happy to change that given that I don't understand why it changed in the way it did and I suspect it may have been an accident. There must have been a reason I made it conditional though, which suggests that there was some situation where |
Sounds good! |
Having now tried on my machine, where I use the upstream phantomjs I think I have a better handle on what happened. The upstream phantomjs actually only has one backend, namely the |
While investigating #2556 I found a problem with our phantomjs config. After running vagrant up, phantomjs is in a non-working state:
This turns out to be expected, since the debian/ubuntu build of phantomjs doesn't use the patched+bundled version of QT that is in the official phantomjs builds.
We already have code to handle this situation in the test suite, namely:
... but this doesn't work on our vagrant boxes, because:
I don't know where the "phantom" in
ENV["QT_QPA_PLATFORM"] = "phantom"
comes from. Should this be"offscreen"
? Or will that break a different situation?The text was updated successfully, but these errors were encountered: