EA31337 / EA-Tester

🐳📈 Headless Forex backtesting for MetaTrader platform using Docker
https://ea31337.github.io/EA-Tester
MIT License
108 stars 84 forks source link

Various errors when installing the thing... #41

Closed stefek99 closed 8 years ago

stefek99 commented 8 years ago

Potential duplicate #40

vagrant up
vagrant ssh
/vagrant/scripts/install_mt4.sh
wine "$(find ~/.wine -name terminal.exe)"
vagrant@vagrant:~$ /vagrant/scripts/install_mt4.sh
wget is /usr/bin/wget
xdotool is /usr/bin/xdotool
xwininfo is /usr/bin/xwininfo
wine is /usr/bin/wine
Downloading MT4 installer...
--2016-01-31 13:29:07--  https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4setup.exe
Resolving download.mql5.com (download.mql5.com)... 78.140.180.43, 23.81.66.91, 78.140.180.43, ...
Connecting to download.mql5.com (download.mql5.com)|78.140.180.43|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 566640 (553K) [application/exe]
Saving to: ‘/opt/mt4setup.exe’

mt4setup.exe       100%[==================>] 553.36K  1.73MB/s   in 0.3s

2016-01-31 13:29:08 (1.73 MB/s) - ‘/opt/mt4setup.exe’ saved [566640/566640]

Starting MT4 Setup in Wine...
Waiting for Wine to initialize...
wine: created the configuration directory '/home/vagrant/.wine'
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040155
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80040155
err:ole:get_local_server_stream Failed: 80040155
err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040155
err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80040155
err:ole:get_local_server_stream Failed: 80040155
wine: configuration in '/home/vagrant/.wine' has been updated.
Sending installer keystrokes...
err:winhttp:netconn_secure_connect send failed
Waiting for installer to finish...

xwininfo: Window id: 0x800001 "MetaTrader 4 Setup (32 bit)"

  Root window id: 0x12e (the root window) (has no name)
  Parent window id: 0x12e (the root window) (has no name)
     0 children.

14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
14621 mt4setup.exe
Waiting for MT4 platform to start...
err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0465 wp=00000000 lp=0033ecc8
err:toolbar:ToolbarWindowProc unknown msg 0466 wp=00000000 lp=0033ecc8
Closing application...
/vagrant/scripts/install_mt4.sh done.
Exiting /vagrant/scripts/install_mt4.sh with 0
kenorb commented 8 years ago

That's normal behaviour. The command exited with error code 0 which is fine. The error like err:ole or err:toolbar coming from wine and should be reported against it (try googling them individually). Could be related to not implemented or badly written functions which platform is using or missing hardware (like missing drivers for sound-card, etc.). Newer version of wine potentially could have these implemented, but I'm not sure.

Some of the errors are already suppressed by WINEDEBUG variable in .configrc, e.g.

export WINEDEBUG="warn-all,fixme-all,alsa-all,ole-all"

which suppose to silence all ole error, but it seems it doesn't. Maybe there is some extra syntax that we need to use to hide them, e.g. toolbar-all?

But in general, there is nothing to worry about. Your platform should now be installed in ~/.wine (find it by: find ~/.wine -name terminal.exe).

You should be able to run the platform via:

wine "$(find ~/.wine -name terminal.exe)"

or:

shopt -s globstar
wine ~/.wine/**/terminal.exe

Related: