Questions tagged [xvfb]
Xvfb; X virtual framebuffer, is an X11 server that can run graphic applications without a physical screen.
542
questions
0
votes
0
answers
15
views
Github action -Can't call scrollIntoView on element with selector
I have a github action workflow to run webdriver ui tests.
I am making use of ubuntu runner. But my test cases are not executed properly. Getting broken UI issue -
Error: Can't call scrollIntoView on ...
0
votes
0
answers
17
views
Browser not updating content on save in React - any solutions?
When I save my React files, the browser does not update the displayed content. Reloading the page also does not work. In order to see my changes I have to exit and run npm start again.
I use:
wsl
...
0
votes
0
answers
47
views
Ubuntu 22.04 droplet: xvfb-run firefox -headless www.google.com produces error: RenderCompositorSWGL failed mapping default framebuffer, no dt
I need your help.
My goal is to scrape website using selenium/python via digitalocean droplet without using Desktop.
But before anything else I need to run firefox in headless mode using XVFB ...
0
votes
0
answers
129
views
Error: Navigation failed because browser has disconnected in puppeteer
I am running puppeteer with Chromium (v112) on a collection of websites. On some of the websites, i encounter the following error:
STDERR: Error: Navigation failed because browser has disconnected!
...
-1
votes
1
answer
34
views
How to add keyboard layouts to xvfb?
What's the config file to add keyboard layouts to xvfb (for example fr)?
$ xvfb-run setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
...
0
votes
0
answers
40
views
How do you I fix the xvfb start error when building a docker image?
Is there also some solution for Windows OS for the service xvfb start error? I pulled code from github, built an image in docker and didn't encounter the error the first time I did it. After pushing ...
0
votes
0
answers
151
views
xvfb-run : command not found in chrome:headless mode
I am trying for the CI integration of testcafe in GitHub Actions.
Our runner does not have xvfb. So we are trying to run in headless mode to avoid xvfb error. But we are still getting:
Command failed:...
1
vote
1
answer
53
views
Invalid maximum heap size: -Xmx0m
I am getting the following text while running xvfb build config on OKD & which leads to pod termination
exec java -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=...
0
votes
0
answers
32
views
Does the incoming codec or audio-video sync matter when encoding from Xvfb using FFMPEG?
How I'm capturing:
I'm using Xvfb on Linux, to capture a video and audio from an app that is also running on Linux. I'm using -f x11grab when capturing that video headlessly from Xvfb's frambuffer ...
0
votes
1
answer
66
views
xwininfo -tree always shows 0 children on lambda container
As the title states, I'm finding that whenever I issue xwininfo -tree on a container running Ubuntu in lambda, there are never child screens, though when I run the same container locally it works fine ...
0
votes
1
answer
476
views
Cannot bind X UNIX socket within Docker container
I am trying to run Xvfb within a Docker container, but it is failing with the error:
$ Xvfb :0 -nolisten tcp -screen 0 1024x768x24
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
...
0
votes
1
answer
200
views
How to run Xvfb with xvfbwrapper on AWS EC2 to records screen of selenium headless session
I have a problem running selenium sesion with Xvfb to record video file with sesion. Below is my session and wrapper
from selenium import webdriver
from xvfbwrapper import Xvfb
class TestPages(...
-2
votes
1
answer
94
views
How to fix "No protocol specified" xdpyinfo error?
On Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-122-generic x86_64):
$ apt install x11-apps
$ xvfb-run -e x11.log --listen-tcp --server-num=76 --server-arg="-screen 0 1920x1080x24" --auth-file=/tmp/...
0
votes
1
answer
478
views
xvfb-run: usage error: need a command to run after using `xvfb-run --auto-servernum`
I'm trying to run a puppeteer instance with headless: false inside a VM, so I need an interface, that's why I'm using xvfb.
But after trying to run the command: xvfb-run --auto-servernum I get: xvfb-...
2
votes
0
answers
280
views
Continously capturing/reading all frames from Xvfb virtual framebuffer as a stream?
I have a Linux system (Raspberry Pi 4 with DietPi) which controls some RGB LED Matrix panels, by transmitting buffers of RGB pixels.
I want to display the content of a virtual frame buffer on the LED ...
0
votes
0
answers
28
views
xvfb parallel run on same node inside Jenkins [duplicate]
I configured the UI automation tests (serenity+cucumber) to run in parallel.
Some of the tests fails randomly on the server where the xvfb display plugin is used.
The tests are running parallel all ...
8
votes
1
answer
1k
views
Can't run Playwright on AWS Lambda with Docker & xvfb
I've been trying to run Playwright on AWS Lambda with xvfb for days. I was able to build a few variants of Docker images that worked locally, but when pushed to AWS always encountered errors.
...
3
votes
0
answers
325
views
ScreenRecording a headless browser using xvfb with ffmpeg or jmf jar(java) shows distorted video in container, if the resolution greaterthan 1024x768
I am getting a proper video output, if i used to record a screen resolution for about 1024x768(max) or lesser. but
whenever i used to increase the resolution like "1600x900 or 1920x1080 or ...
-1
votes
1
answer
141
views
How do I disable the input cursor blink in a new X session?
I am running a some browser regression in a new X session using 'Xvfb' and 'x11vnc'.
My window manager is Xfce 4.16 and the OS is Fedora 35.
To launch these I am running the following;
`which Xfvb` :1 ...
2
votes
2
answers
469
views
When running headless selenium in cron, got error "Pyperclip could not find a copy/paste mechanism for your system"
I have implemented a selenium script in Python to upload some pictures and content to Facebook, which I named FBUpload.py.
When I launch it this way, it works perfectly (in headless mode):
Xvfb :10 -...
0
votes
2
answers
642
views
pyvirtual display and xvfb on MacOS latest
Context
I am trying to get some code working on MacOS. The code uses the Mayavi visualization library, and is supposed to run on headless servers to produce visualizations.
Dependencies
brew install ...
0
votes
0
answers
66
views
Pyautogui throws pipe error on second request behind web server
I have an python automation running with pyvirtualdisplay behind a fastapi web server. Below is the code:
import pyautogui
import time
@app.get("/")
def root():
with Display(visible=0, ...
0
votes
0
answers
295
views
Selenium Webscraper-PyVirtualDisplay XVFB configuration with Docker
Overview:
Using this base docker file:
RUN yum install -y unzip && \
curl -Lo "/tmp/chromedriver.zip" "https://chromedriver.storage.googleapis.com/103.0.5060.53/...
1
vote
1
answer
544
views
Xvfb x11vnc | Different Displaynumber specified but when connecting, its the same
So. I've build myself a custom Selenium-Chrome-Node Docker image, which's purpose is to host a node, a virtual display and also a x11vnc Server to connect to the display.
My docker image has ...
2
votes
0
answers
566
views
Selenium XVFB - Unable to receive message from renderer
Overview:
Selenium scraper works perfectly in headless mode. Spawning a virtual display shows no errors via XVFB:
from xvfbwrapper import Xvfb
vdisplay = Xvfb()
vdisplay.start()
vdisplay.stop()
But ...
0
votes
0
answers
286
views
Puppeteer works headless but not headful (JS)
I am running puppeteer on a Linux VM, which does not have a display; however, I am using xvfb to remedy that.
For some background: The overall goal of this program is to navigate to a page and ...
0
votes
0
answers
555
views
Xvfb in Selenium: RenderCompositorSWGL failed to display the default frame buffer, no dt
When running Java code or starting the browser manually via the command line, I get this:
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
java code:
src/main/java/com/app/...
0
votes
0
answers
857
views
How to use Selenium with Firefox browser when I have no display
I am newly assigned to this shared hosting (ssh access only). Have no sudo or yum facility. I am trying to scrape some data from a dynamically loaded website [So, can't use scrapy or bs]. When I am ...
1
vote
0
answers
276
views
How to debug with xvfb-run wrapped in the vscode?
I want to debug rl_methods.py with xvfb-run wrapped, just as input the command
xvfb-run -a -s "-screen 0 640x480x24" python rl_methods.py
in the terminal.
How should I modify launch.json to ...
-1
votes
1
answer
295
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
637
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
911
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/...
1
vote
2
answers
2k
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
208
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
122
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
843
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
262
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
432
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
1k
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 ...
7
votes
0
answers
10k
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
242
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
180
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
2k
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-...
1
vote
0
answers
765
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
272
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 ...
1
vote
1
answer
1k
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
1
answer
94
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 ...
4
votes
2
answers
4k
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
39
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
830
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 ...