Skip to content
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

XIO error 11on X server ":0" #213

Open
wariokart opened this issue Jan 4, 2021 · 1 comment
Open

XIO error 11on X server ":0" #213

wariokart opened this issue Jan 4, 2021 · 1 comment
Labels
Milestone

Comments

@wariokart
Copy link

Hi,

Thanks for making this amazing library.

I'm trying a very clean and standard test. I tested both on my Mac (Big Sur) and an Ubuntu server (v20.04).

docker run ea31337/ea-tester run_backtest -v -e https://github.com/EA31337/EA31337/releases/download/v1.079/EA31337-Lite-v1.079.ex4

....
....
....
ACCOUNT: Time: 2019.01.04 00:00:00; Balance: $10000.00; Equity: $10000.00; Credit: $0.00; Margin Used/Free: $0.00/$10000.00; Risk: 1.0;

INFO: Copying report files (/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/EA31337-Lite-v1.079-Report* into: /opt/results)...
'/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/EA31337-Lite-v1.079-Report.gif' -> '/opt/results/EA31337-Lite-v1.079-Report.gif'
'/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/EA31337-Lite-v1.079-Report.htm' -> '/opt/results/EA31337-Lite-v1.079-Report.htm'
'/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/logs/20210104.log' -> '/opt/results/EA31337-Lite-v1.079-Report.log'
/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/files/EURUSD-10000USD-2019.01.04-2019.01.30-10spread-M30-report.txt
'/home/ubuntu/.wine/drive_c/MetaTrader 4/tester/files/EURUSD-10000USD-2019.01.04-2019.01.30-10spread-M30-report.txt' -> '/opt/results/EURUSD-10000USD-2019.01.04-2019.01.30-10spread-M30-report.txt'
Backtest results for EA31337-Lite-v1.079: PF:0.29/EP:-9.58/DD:15.30%, Deposit:10000/Profit:-1466/Spread:10; EURUSD (M30)(2019.01.01-2019.01.31)
Xvfb killed (pid 273)
0m0.031s 0m0.038s
0m52.920s 0m22.053s
INFO: /opt/scripts/run_backtest.sh done.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 193 requests (193 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Exiting /opt/scripts/run_backtest.sh with 0

I'm unsure why this is happening, are there any other requirements other than Docker CE?

@kenorb
Copy link
Member

kenorb commented Feb 18, 2021

These errors are coming from Xvfb which may be not 100% compatible with a Docker container. You can silence them, but it won't change anything (they're still going to happen in the background). The final exit status is 0, so it doesn't make any difference.

The tester rely on these external libraries and doesn't have really anything to do with these.

Possibly related: https://stackoverflow.com/q/25790890/55075

As for the workaround, you can redirect the stderr to some file.

@kenorb kenorb added this to the v1.0.4 milestone Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants