Questions tagged [xvfb]
Xvfb; X virtual framebuffer, is an X11 server that can run graphic applications without a physical screen.
526
questions
0
votes
0
answers
10
views
How can I install xvfb on windows?
I am using pyvirtualdisplay for testing, but it works only for linux.
from selenium import webdriver
from pyvirtualdisplay import Display
class Browser:
def __init__(self, headless):
self.options ...
-1
votes
1
answer
48
views
Feeding content of an X-Window to a virtual camera
I want to feed a virtual webcam device from an application window (under Linux/Xorg). I have so far just maximised the window and then used ffmpeg to grab the whole screen like this:
ffmpeg \
-f ...
0
votes
0
answers
35
views
Running Unity rendering on Ubuntu with no display
I'm trying to dockerize & deploy an already built Unity program to AWS. The program takes a simple image and renders it in different scenarios/lightning conditions. I have ready a Linux build that ...
0
votes
1
answer
52
views
Getting xvfb to work in jupyter notebook on M1 Mac
I am working with OpenAI gym on colab and using the following code to render the videos within Jupyter notebook based on this tutorial: https://colab.research.google.com/drive/...
0
votes
2
answers
82
views
Execute xvfb-run as docker custom command
Is there any reason why xvfb-run will not be executed as docker overridden command?
Having an image from this Dockerfile:
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y xvfb
...
0
votes
0
answers
21
views
Not able to screenshot an ximage window running in Xvfb
First things first: Ubuntu 20.04.4 LTS.
I'm trying to take a screenshot of an ximage window running on a remote server, so using Xvfb. Here is some pseudocode summarising the process:
Xvfb ':99' &
...
0
votes
0
answers
46
views
Open an Xvfb server from C
I heard of this technology called Xvfb, which is used to create virtual X sessions. The command to do this is Xvfb :1, or replace :1 with any display you like. My question is: how can I do this within ...
0
votes
0
answers
50
views
Docker xvfb-run killed with ffmpeg
error:
xvfb-run: line 169: 18 Killed DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE
Dockerfile xvfb command
ENTRYPOINT ["/usr/bin/dumb-init", "--", "xvfb-run&...
0
votes
0
answers
27
views
How to download a file by clicking a link in a webpage through selenium+java in docker container
I have one selenium + java scenario which clicks a link in the webpage and that would download the file to the directory.
I have done few things which working fine in my local MAC though I need this ...
1
vote
0
answers
201
views
xvfb electron : Passthrough is not supported, GL is disabled, ANGLE is
Hello at all Stack Overflow community
I come today to ask experts.
I'm trying to make this browser https://github.com/minbrowser/min/
run from server without graphic card.
I've opened a topic on ...
1
vote
1
answer
87
views
Swing UI tests on Github Actions
I have a few UI tests for my Java application made with AssertJ-Swing and JUnit 5. I encounter no problem running these tests locally but some of the tests fail once I push them to my continuous ...
0
votes
0
answers
88
views
Is there a way to stream xvfb output?
I have automated robotframework tests that runs via xvfb on a jenkins agent, using firefox.
Sometimes I want to check what robot actually see for debugging.
I have found a solution to capture xvfb ...
0
votes
0
answers
49
views
use xvfb across multiple containers
I have containerise application having multiple containers. 2 different images where one of them have PHP-fpm, WkhtmlToPDF and xvfb; And other one have php, WkhtmlToPDF and xvfb utilities installed.
I ...
0
votes
0
answers
374
views
How to open selenium webdriver in Xvfb() display on headless server without '--headless' option
I recently ran into a problem when trying to scroll websites on a server without GUI, the problem is I can't use ('--headless') option to be able to complete my tests, so I try to open Xvfb fake ...
3
votes
0
answers
3k
views
Getting “Failed to connect to the bus: Could not parse server address” error when launch Chrome in CentOS using puppeter
I am trying to launch Chrome in CentOS using puppeteer but got errors like this:
[8012:8039:1220/204633.586208:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown ...
0
votes
0
answers
117
views
Google colab virtual sink audio and video recording
I am trying to record videos (visual + audio) while running a script through selenium python(headless-chrome) in google colab. Using the Xvfb library and ffmpeg I was able to use a virtual display and ...
0
votes
0
answers
82
views
Minimum Packages needed for Xvfb-backed PyVirtualDisplay
If only the xvfb backend will be used for PyVirtualDisplay, what are the minimum set of packages that needs to be installed?
In the PyVirtuallDisplay docs, the example installs various things, as ...
0
votes
0
answers
50
views
Running XVFB via pipeline groovy
I am running a groovy script for my job on Jenkins and the xvfb call is
$ Xvfb :0 -screen 0 1024x768x24
This however fails claiming that an X server is already running. However if I run the command
...
1
vote
0
answers
378
views
How to run chrome in Xvfb with gpu NVIDIA supported?
I started an AWS instance with GPU ( g4dn.xlarge ). I installed the NVIDIA driver by following this article https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-nvidia-driver.html .
The nvidia-...
0
votes
0
answers
154
views
Unable to locate Xvfb on AWS Lambda
I want to run xvfbwrapper in python 3.8 on AWS Lambda. I'm using a custom docker container and have verified that xvfb is installed and that it is located at /usr/bin/Xvfb. However when I run the ...
0
votes
0
answers
45
views
How can I get the child process ID for a process started with xvfb-run?
When running commands with xvfb-run, e.g.:
xvfb-run -d $CMD &
How can I retrieve the PID of the $CMD process?
If I try:
xvfb-run -d $CMD & PID=$! EXITCODE=$?
I get PID=<PID of xvfb> ...
0
votes
0
answers
377
views
From where comes "QXcbConnection: XCB error:" message and how fix it?
In CI tests, using Xvfb, I get various message as:
XcbConnection: XCB error: 8 (BadMatch), sequence: 1448, resource id: 2097187, major code: 42 (SetInputFocus), minor code: 0
I have not yet been ...
0
votes
0
answers
106
views
I am doing Web Scraping, using dryscrape and beautiful soup. But Colab doesn't find xvfb, though it is installed. Why?
!pip install git+https://github.com/niklasb/webkit-server.git@refs/pull/35/head
!pip install dryscrape
from xvfbwrapper import Xvfb
from datetime import datetime
import dryscrape
from bs4 import ...
0
votes
1
answer
409
views
Record web browser with sound as a service on linux server with puppeteer
I'm trying to build a service on a linux server to record video a web browser with its sound.
The first step I did with the source code below (using xvfb, puppeteer and ffmpeg) to record successfully.
...
0
votes
0
answers
97
views
ffmpeg Thread message queue blocking after hours
I'm using ffmpeg to record Xvfb and pulse audio. After 1h 30mins, it stopped and show this error
[pulse @ 0x3406240] Thread message queue blocking; consider raising the thread_queue_size option (...
0
votes
0
answers
46
views
ffmpeg + Xvfb eats all the memory after few hours
I'm using ffmpeg to record a Xvfb screen. It works fine at the beginning.
The system keep stable at 50% CPU and 2.5 Gb RAM for 1-2 hours.
After that, it suddenly eats all the memory like this https://...
0
votes
1
answer
47
views
how to run/start graphical programs (Ex: firefox) on a remote machine using CLI without logging in
So, the story is like this:
I have 2 linux machines with ubuntu 20.04 installed on both. one of them, call it computer A doesn't have X on it because it is the server version installed and I don't ...
3
votes
2
answers
2k
views
problem in spawning Xvfb, server already running
I'm trying to run 2 cypress docker container in parallel using node js spawn
docker run -v path/to/ws:/e2e -w /e2e --network host cypress/included:8.0.0 --spec 'cypress/integration/cytorus-cache/1....
0
votes
0
answers
81
views
How to improve XVFB display quality
I am currently running chrome on AWS Linux servers with this Puppeteer and XVFB setup.
I also built a little chrome extension that handles the recording with MediaRecorder and chrome.tabCapture.
It's ...
0
votes
0
answers
49
views
How to start xvfb display using Cron or Python?
I am trying to run:
/usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 &
Using Cron:
@reboot /usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 & >> /home/ubuntu/xvfb.log 2>&1
When I reboot ...
0
votes
0
answers
26
views
Getting issue while trying to run the protractor in centos docker image: chrome failed to start
I am trying to run the selenium test cases in a docker container with Centos using a protractor. I am getting an error. Even I have the latest version of the xvfb package.
1
vote
1
answer
359
views
Running Java GUI tests on GitHub using xvfb
I've got some basic automated GUI tests for my Java desktop application that work when running on my Windows desktop. On GitHub they fail with
java.awt.AWTError at X11GraphicsEnvironment.java:-2
I ...
0
votes
0
answers
68
views
Error when running selenium tests in jenkins with docker container
When Selenium tests runs in docker through jenkins ,after an hour of execution i get this error :
**Stopping Docker container after build completion
FATAL: Cannot run program "docker": ...
0
votes
0
answers
69
views
Run a sh with Xvfb display using cron?
I am trying to run a sh script using cron. This script requires a display.
I have tried:
# Xvfb display
/usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 &
41 18 * * * /bin/sh /path/to/script/script.sh ...
0
votes
0
answers
153
views
Azure Pipeline job script /usr/bin/xvfb-run: cannot create /dev/stdout: No such device or address
I created an Azure Agent in my kubernetes cluster using https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops. I can run hello-world style pipelines on it, the agent ...
2
votes
0
answers
381
views
Run headful chromium with nvidia GPU and Xvfb on EC2 instance with PRIME
I am trying to do hardware accelerated WegGL rendering through puppeteer on an Elastic Beanstalk instance (EC2 running Amazon Linux 2).
My instance is a g4dn.xlarge with Nvidia RTX drivers provided by ...
2
votes
1
answer
682
views
docker: can not start xvfb-run with docker run, but can start with docker exec -it
I'm trying to run a node app with xvfb-run, here is my Dockerfile
FROM node:lts-alpine
RUN apk --no-cache upgrade && apk add --no-cache chromium coreutils xvfb xvfb-run
ENV CHROME_BIN="/...
1
vote
1
answer
317
views
wine fixme wait_for_withdrawn_state window
I am running a Windows execuable (.exe) using wine, in a docker container and I am dumping the graphical interface using xvfb-run. The setup is working but with some fixmes and some errors which I am ...
1
vote
0
answers
73
views
How to capture screenshot when I am running selinium python (robotframework) headless mode using xvfb library in centos
I am running my python selinium script using robotframework.
I configure xvfb library to run my script in headless mode.
Script is running properly but whatever screenshot it is capturing is blank.
0
votes
0
answers
132
views
Python cron job with Chrome not running in AWS EC2
I've been using an EC2 instance to run a python script with cron everyday for a month or so. The script uses selenium.
Everything was working correctly until today, when my script did not run.
I have ...
4
votes
0
answers
622
views
How to record Video with Audio from a puppeteer instance from a docker container
I'm trying to build a simple server that basically:
opens a webpage with a puppeteer instance.
records the webpage and save the video file.
I was able to implement this with puppeteer-stream and it ...
0
votes
1
answer
1k
views
Getting ffmpeg to capture the full screen of xfvb-run screen running puppeteer script, and send it over rtmp
My problem
I can't get ffmpeg or xvfb-run to stream the full screen to ffplay/videolan, it only captures a part of the screen.
Update 2
I answered the question myself in a follow up answer, hopefully ...
2
votes
1
answer
818
views
How to check if OpenGL/EGL detects GPU on a headless server?
I am trying to use NVIDIA's EGL library to render an OpenGL-based simulator in headless mode. However, I find that rendering on the server with EGL is the same speed as rendering on the server with ...
3
votes
0
answers
397
views
Xvfb & Docker - display suddenly stops working
I need to run XVFB in a docker container in order to make a puppeteer web scraper work in headful mode. Here is my Dockerfile:
FROM node:15.11.0
RUN mkdir /code
WORKDIR /code
ADD . /code/
RUN apt-...
0
votes
0
answers
122
views
Detect bot running via xvbf + Chrome under puppeteer
Is it possible to detect in javascript that HTTP request came from system where Chrome is running with xvbf under puppeteer?
So in this case bot browser is headfull
2
votes
1
answer
100
views
Cannot make Firefox window fullscreen of Xvfb
Please check this image : https://imgur.com/a/P4kPSQe
You can see the window screen width is 1280, but the firefox only can get 1152 to display.
I'm using selenim with python.
I can use ...
2
votes
1
answer
865
views
XStartError in pyvirtualdisplay
I'm running a co-workers notebook on my local machine (she used collab).
Immediately after import, this line of code
display = pyvirtualdisplay.Display(visible=0, size=(1400, 900))
_ = display.start()
...
0
votes
1
answer
136
views
Xvfb-run as a subprocess in Django running xfreerdp fails
I have a ThreadPoolExecutor object(rdp_connector_global) in a Dockerized Django application's view method calling the below method(_rdp_connect) via submit as follows:
rdp_connector_global.submit(...
0
votes
1
answer
666
views
Running cypress tests in parallel on single machine gives error
TLDR: issues in running parallel cypress tests in docker containers at the same machine in jenkins.
I'm trying to run on single aws machine 2 docker instances of cypress to run different suite in ...