Closed The-Compiler closed 10 months ago
This is a 10 sec timeout in start(), but this was present before v2.0. If the processing is very slow then it can fail. I removed this timeout on master branch. Can you test it?
How can I see the log under https://github.com/The-Compiler/pytest-xvfb/actions? The last entry is 6 months old.
here is my example of fail https://github.com/4DNucleome/PartSeg/runs/1969237540?check_suite_focus=true
I am getting the same error as well with Ubuntu v18.04 and pyvirtualdisplay v2.0. Any idea?
I removed the timeout in v2.1. Please test it.
I'm afraid removing timeout is not a good option. I have experienced kind of "eternal" hang of my script with v2.2. The host system experienced high load and several scripts hung on _wait_for_pipe_text() function of PyVirtualDisplay. And even when the high load was gone, and system was idling, those scripts still were hanging. So the loop inside _wait_for_pipe_text() was running for more than 24 hours before I manually interrupted the scripts.
Hello, I have the same error being raised in a Ubuntu 20.04 LTS container:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/dist-packages/crumbs/animate.py", line 5, in <module>
display.start()
File "/usr/local/lib/python3.8/dist-packages/pyvirtualdisplay/display.py", line 72, in start
self._obj.start()
File "/usr/local/lib/python3.8/dist-packages/pyvirtualdisplay/abstractdisplay.py", line 149, in start
self._start1_has_displayfd()
File "/usr/local/lib/python3.8/dist-packages/pyvirtualdisplay/abstractdisplay.py", line 197, in _start1_has_displayfd
self.display = int(self._wait_for_pipe_text(rfd))
File "/usr/local/lib/python3.8/dist-packages/pyvirtualdisplay/abstractdisplay.py", line 309, in _wait_for_pipe_text
raise XStartTimeoutError(
pyvirtualdisplay.abstractdisplay.XStartTimeoutError: No reply from program Xvfb. command:['Xvfb', '-br', '-nolisten', 'tcp', '-screen', '0', '1280x1024x24', '-displayfd', '4']
Any idea on how to solve this?
Do you get the timeout after 10 minutes? Please read the previous messages and describe if your situation is the same or different than others. Do you have high load like this? https://github.com/ponty/PyVirtualDisplay/issues/62#issuecomment-884171201
Yes, the timeout seems to happen after 10 minutes. For the load I am not sure about how to answer. The error is raised from a job I run from a singularity/docker image on an heterogeneous grid for distributed high throughput computing and I am not sure about how to pull information from there.
I can't reproduce the timeout.
I added timeout
parameter on master branch. retry
parameter also works.
You can find what works for your use case.
Since upgrading to v2.0, I sometimes see this on GitHub Actions:
This is with pytest-xvfb which is a rather small wrapper around PyVirtualDisplay.
I think it only happens in the Ubuntu 18.04 environment, not with 20.04. Also it only happens one out of 10 times or so...
Any idea what could be going on there?