Questions tagged [xvfb]

Xvfb; X virtual framebuffer, is an X11 server that can run graphic applications without a physical screen.

Xvfb is an X11 server that executes all the graphical operations in memory without showing any screen output.

It acts exactly like any other X widow server but with the difference that no output is shown so Xvfb does not require the computer it is running on to a screen.

It can be used for many things like remote controlling browsers in web testing, or background tasks running for creating screenshots of programs or web pages.

543 questions
2
votes
1 answer

Xvfb plugin to run multiple job instances concurrently on Jenkins

I have a job in Jenkins that runs UI tests written in Selenium. The job can run multiple instances of it concurrently. I am running into a problem while trying to use Xvfb (the Xvfb plugin or otherwise). Using the Xvfb plugin The configuration is as…
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
2
votes
1 answer

Chrome browser randomly hangs on start from chromedriver

I have several tests that are automated using selenium/python. Tests are run through teamcity, in xfvb drive where you installed Ubuntu 14.04. all 28 tests, and when they run, I see a process that runs Chrome (using the command ps auvvx | grep…
2
votes
1 answer

Are there differences between xvfb and xvfb-run?

I have to install a program which requires xvfb-run. But I can't install xvfb-run by commanding 'sudo apt-get install xvfb-run' on Ubuntu 16.04. However, I can install xvfb. Are there differences between xvfb and xvfb-run ? Can I use xvfb instead…
kh.chung
  • 53
  • 1
  • 4
2
votes
1 answer

chrome fails with "Illegal instruction" in minimal Centos7+Xvfb

Chrome used to work on headless centos 7 but now seems to fail to start. Spits out "Illegal instruction" as the only output. Happens for both minimal centos 7 virtualbox and the https://hub.docker.com/_/centos/ docker image. Is there a workaround or…
2
votes
1 answer

Java AWT requires X11 , how to use xvfb (ubuntu 14.04)

I Have a java application that requires X11 DISPLAY variable, the exception I am getting is: Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at…
2
votes
0 answers

Two instances of pyvirtualdisplay (xvfb) won't run at the same time

So I have a small script which uses pyvirtualdisplay to make a virtual display to run some selenium tests. I have tested the same code on my windows computer and both run just fine at the same time. Which leads me to believe that the problem is with…
2
votes
1 answer

How to convert kivy to a video file

I wrote a kivy app to render some animation on linux server. Is there a good way to convert the animation to a video file directly? Currently I tried Xvfb + ffmpeg approach. However it has some issues I want to avoid such as: ffmpeg will also…
lucemia
  • 6,349
  • 5
  • 42
  • 75
2
votes
4 answers

Disable Firefox auto-update in Linux

In my current project, I require Firefox browser to be run in headless mode using Xvfb and Selenium. In order to maintain compatibility between Selenium and Firefox, I want to maintain both of them at a specific version and stop Firefox…
2
votes
1 answer

What is a "dumb" framebuffer?

I used Xvfb recently for running my tests using Jenkins on an Ubuntu instance. On researching up on Xvfb, I understood what the X and virtual part meant in Xvfb. I got stuck at the meaning of "dumb framebuffer". According to X.org: It emulates a…
chaudharyp
  • 3,394
  • 3
  • 26
  • 42
2
votes
1 answer

How to capture audio in an xvfb system using ffmpeg

Want to capture the audio using ffmpeg Went to this link The error coming on the first one is ffmpeg exited with code 1: hw:0: Input/output error And the pulse one is running on my laptop but not on the server i think some missing drivers ffmpeg…
somya bhargava
  • 101
  • 1
  • 12
2
votes
1 answer

Deploying PhantomJS or headless gem on Engine Yard

I currently have an app deployed to Engine Yard. I am not familiar with importing chef recipes to Engine Yard's repo, etc. like a PhantomJS install. It appears the instance uses Amazon Linux. Is there a best practice, or even walkthrough, that would…
2
votes
2 answers

wkhtmltopdf: Updated my Ubuntu Server and got "QXcbConnection: Could not connect to display"

Something with 'phpwkhtmltopdf' stopped working. Running on a web browser with this code: $string = "http://www.google.com"; // You can add parameter for the constructor call $binary = '/usr/bin/wkhtmltopdf'; $pdf = new…
Imnotapotato
  • 5,308
  • 13
  • 80
  • 147
2
votes
1 answer

Moving tests from windows to Linux server - Selenium

I have some tests, I am using Maven 3.1 Selenide v3.5 Selenium v2.53 Firefox v45.0.1 I run them on windows and all thing are going fine with successful run, I noticed that browser on windows is explicitly open and see the tests directly on…
Hana90
  • 943
  • 5
  • 17
  • 37
2
votes
1 answer

PHPUnit Selenium Xvfb Centos

I am trying to setup functional tests on my Centos Server using Selenium Web Server and Phpunit. When I run the tests, I get an error in the command line : PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Unable to connect to host…
Nicolas
  • 1,320
  • 2
  • 16
  • 28
2
votes
1 answer

Issue running python scripts in docker container outside of run -it /bin/bash

So I have a weird issue with a python script I'm trying to run... this works: docker run -it /bin/bash xvfb-run python myscript.py Everything starts up, firefox launches in headless mode, it's all good. This…
mcheshier
  • 715
  • 4
  • 13