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
0
votes
1 answer

testing with xvfb virtual display starting from CRON - missing keyboard device

I am trying to run test software using CRON on a RHEL machine. The testing software requires display, so I think the only option is to use xvfb. So I am starting it using xvfb-run wrapper, which creates display :99. It works and tests fine when I…
maslan
  • 2,078
  • 16
  • 34
0
votes
1 answer

Jenkins Xvfb plugin - selecting incorrect -fbdir name

When running a build on a newly installed Jenkins server on centos7 The Xvfb fails with the following: Xvfb starting$ /bin/Xvfb -displayfd 2 -screen 0 1024x768x8 -fbdir /var/lib/jenkins/xvfb-272-..fbdir6345857630426455925 FATAL: Cannot run …
Simon
  • 1
0
votes
0 answers

Selenide test in Jenkins:

i have tests written in Selenide. On localhost Jenkins - they run successfully, but if i want put them on my company Jenkins - problems starts My first attemp, without Xvfb: Logs: [31mFailed…
moroyoung11
  • 63
  • 1
  • 9
0
votes
1 answer

Using integrated graphics for headless rendering inside a cloud docker container

Short version How can I get an integrated-graphics-accelerated headless X display running inside a Google Cloud Kubernetes Engine pod? Background I'm working on a reinforcement learning project that involves running a large number of simulated…
Andy Jones
  • 4,723
  • 2
  • 19
  • 24
0
votes
1 answer

Getting java.awt.HeadlessException after run gui tests on Jenkins

After running gui tests on Jenkins I am getting java.awt.HeadlessException on build Jenkins: No X11 DISPLAY variable was set, but this program performed an operation which requires it. I am using xvfb in pipeline Jenkins (script), eclipse &…
user3450666
  • 45
  • 1
  • 1
  • 5
0
votes
1 answer

Can two containers launch a Xserver on the same display on the same host?

I have created a Dockerfile that installs Xvfb and firefox with all the dependencies needed and I'm able to create a container with firefox launched on the DISPLAY=:1 of a Xserver. When I try to launch another container, the second container is not…
Ryctus
  • 109
  • 2
  • 12
0
votes
1 answer

Need dedicated Xvfb display for each jenkins job

I need to run two jenkins' job in parallel but when first one is running the second one fails stating that Server is already active for display 0 I have gone through these two posts but not able to fix: Xvfb plugin to run multiple job instances…
paul
  • 4,333
  • 16
  • 71
  • 144
0
votes
0 answers

Selenium python web scraper clogging my RAM: drivers and xvfb display not closing following display.stop() and driver.close()

So I have a web scraper using selenium, code below. The problem is that each time the code is run, a new process seems to permanently appear as per htop- both a chromedriver process, and a XVFB process, as can be seen here…
mcplums
  • 159
  • 2
  • 2
  • 9
0
votes
1 answer

Jenkins - desktop application's window size is bigger than xvfb's screen resolution

I am running GUI tests for a desktop application under Jenkins on a headless server. I am using jenkin's xvfb plugin. When I run the test I can see that xvfb's screen resolution is smaller than the application's window size. Is there a way I can…
0
votes
1 answer

Jenkins Xvfb Plugin - get display name offset in build

I create a virtual monitor in jenkins file using: wrap([$class: 'Xvfb', screen: '1920x1080x24']) { // my steps here } The out is: Xvfb starting$ Xvfb :0 -screen 0 1920x1080x24 -fbdir /var/lib/jenkins/xvfb-2-6842399732643585931.fbdir I can't…
Bohdan Nesteruk
  • 794
  • 17
  • 42
0
votes
1 answer

Nightmare js running only one time on Linux server

Hey I have a nightmare js project that works on my Mac flawlessly but I’m having an issue on the server that it only runs once and then it seems to be not responding at all anymore. I tried many things from the related GitHub issue using Xvfb and it…
benonymusx
  • 49
  • 2
  • 6
0
votes
1 answer

Is it required to set the DISPLAY for headless firefox browser on linux machine

I want to run the headless browser and below is the code for same. However when i ran it. it shows "Error: no DISPLAY environment variable specified" try { FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("webdriver.log.driver",…
J.vik
  • 103
  • 2
  • 11
0
votes
1 answer

/usr/bin/xvfb-run: line 181: 10208 Killed, Browser gets closed as XvFb process gets killed by itself

Running my automation suite with following command /usr/bin/xvfb-run -a /usr/share/maven/bin/mvn -e clean install -gs ~/.m2/settings.xml test -Dsuite=checktest -Dbrowser=firefox -Dplatform=linux However browser gets opened but closed after few…
vish
  • 901
  • 1
  • 7
  • 20
0
votes
0 answers

FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/xvfb-run'

I'm getting this error while running Django test in mac machine, Error: File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 696, in run with Popen(*popenargs, **kwargs) as process: File…
Mr Singh
  • 3,936
  • 5
  • 41
  • 60
0
votes
1 answer

Unable to render WebGL in Electron with Xvfb

I am trying to render my app which has a WebGL dependency in Electron on my Linux PC, but nothing is rendering on the page, except for the CSS background color. When I remove the WebGL dependency, which is MapboxGL, then everything renders…
modulitos
  • 14,737
  • 16
  • 67
  • 110