-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XStartTimeoutError since v2.0 #62
Comments
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. 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 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, 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? |
Yes, the timeout seems to happen after 10 minutes. |
I can't reproduce the timeout. |
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?
The text was updated successfully, but these errors were encountered: