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

Selenium python library via docker, Chrome error failed to start: exited abnormally

I am trying to run some python scripts with the selenium library from within a docker container based on miniconda/anaconda, but I keep getting this error: selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to…
TPPZ
  • 4,447
  • 10
  • 61
  • 106
3
votes
1 answer

Is DISPLAY:0 shared by multiple docker containers if run Xvfb :0 inside each docker container?

I need to run the same set of processes inside multiple docker containers and each container process one log. I need to screencast the result of each container. If I run Xvfb :0 inside each container, do they all share Display:0 of host or each uses…
CindyRabbit
  • 359
  • 2
  • 17
3
votes
0 answers

Xvfb is already installed but throws error while using pyvirtualdisplay and suggests to install Xvfb

I have been trying to run a selenium Chrome browser using pyvirtualdisplay inside a flask application as API on startup. This is the code I'm trying to run from flask import Flask, request, jsonify from pymongo import MongoClient import…
charush nair
  • 53
  • 1
  • 7
3
votes
2 answers

WebDriverError error: Chrome failed to start: exited abnormally

I'm trying to run protractor test on ubuntu 14.04 vm (by google cloud), for some reason when i run 'protractor conf.js' i get an error says: E/launcher - WebDriverError: unknown error: Chrome failed to start: exited abnormally I followed this tasks…
3
votes
2 answers

How to install xvfb on Scrapinghub for using Selenium?

I use Python-Selenium in my spider (Scrapy), for using Selenium i should install xvfb on Scrapinghub. when i use apt-get for installing xvfb i have this error message: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) …
parik
  • 2,313
  • 12
  • 39
  • 67
3
votes
0 answers

Xvfb virtual display error, no module named fcntl

Im trying to make a virtual display for a splinter script. When i runi get the error code "ImportError: No module named 'fcntl'" from splinter import Browser from xvfbwrapper import Xvfb vdisplay = Xvfb(width=1280,…
Jaypaque
  • 59
  • 8
3
votes
0 answers

Net::ReadTimeout (Net::ReadTimeout) error in jenkins with xvfb mode

When I run Selenium - Ruby tests in xvfb mode against jenkins, the scripts go unreliable and randomly throws same error in different steps. Net::ReadTimeout (Net::ReadTimeout) any workaround for this issue? or any retry exceptions for every…
Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125
3
votes
1 answer

Take screenshots at same time Xvfb multiple displays

I have a requirement where I am running a selenium script which opens up 2 instances of Firefox on a machine. I want to take screenshots of both instances at the same time. The same time part is important. I used following steps to simulate…
skjindal93
  • 706
  • 1
  • 16
  • 34
3
votes
1 answer

Xvfb - start or attach a window manager to xvfb

For testing purpose, I used Xvfb. Today, I want to do some test with wmctrl commmand. I do some test in python like this : display = ":99" pXvfb = subprocess.Popen(["Xvfb", display, "-screen", "0", "1024x768x24"]) # wait that xvfb is…
Emmanuel DUMAS
  • 680
  • 10
  • 25
3
votes
2 answers

How to increase GL_MAX_TEXTURE_SIZE for mesa drivers?

I am trying to generate a large image using WebGL and Xvfb. When the WebGL canvas size is up to 8192x8192px - it's working great and I get my image. When the WebGL canvas size is larger than 8192x8192px - it's not generating my image. Script is…
Karlis Bikis
  • 73
  • 1
  • 5
3
votes
0 answers

Pyglet fails to load swrast_dri.so in Python 3 (Anaconda) when running on a headless server with Xvfb

This works fine in python 2.7, but it fails in python 3.5 (Anaconda): $ xvfb-run -s "-screen 0 1400x900x24" ./anaconda2/envs/python3/bin/python Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
3
votes
1 answer

ffmpeg screencapture with xvfb displaying green screen

Using xvfb to run a browser window and want to do a screen recording of that Doing xvfb-run Firefox http://google.com ffmpeg -y -r 30 -f x11grab -i :94.0 output.mp4 Getting output as if colors are washed out
somya bhargava
  • 101
  • 1
  • 12
3
votes
0 answers

running xvfb-run on OS X 10.11

Is it possible to get xvfb-run to work in the newest version of OS X? I've installed XQuartz and Xvfb runs the scripts with the following command: Xvfb :4000 & export DISPLAY=:4000 & rspec instead of this one: xvfb-run rspec This is however not…
nilsolofsson
  • 96
  • 2
  • 6
3
votes
1 answer

Reading pixel data from xvfb

So I'm having a strange problem with xvfb. Basically I have an application running through xvfb like so: Xvfb :1 -screen 0 1920x1080x24+32 -fbdir /var/tmp & export DISPLAY=:1 gimp & And then I read the pixel data from the file like this: #include…
ktb92677
  • 407
  • 4
  • 16
3
votes
1 answer

Switching between xvfb display screens when running Firefox tests on Selenium Grid

I have been running tests on our Selenium Grid and have run into a problem using the same xvfb display over - when I run a batch of 100 tests in parallel, most of which are filling in forms / clicking buttons - some tests get stuck entering in text…
Richard Guion
  • 427
  • 5
  • 14