darwin.js fails to find individual sim results, causing it to be stuck on gen 0
System information
- Have I written custom code (as opposed to using zenbot vanilla): no
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 17:10
- Zenbot version (commit ref, or version): Working in a8d3f72, failing after
- Zenbot branch: unstable
- NodeJS version: 10.5.0
- Python version (when using a python script): na
- Exact command to reproduce (include everything): node ./scripts/genetic_backtester/darwin.js --selector=gdax.BTC-USD --days=90 --period_length=15m --period=15m --markdown_buy_pct=0.0001 --markup_sell_pct=0.0001 --order_type=taker --floatScanWindow=true --currency_capital=3000 --asset_capital=0.000001 --ignoreLaunchFitness=true --generateLaunch=true --population_data=period15day90taker --noStatSave=false --use_strategies=ta_macd,wavetrend,ichimoku,ta_ultosc,ti_bollinger,ta_ppo --population=30
- Did I make any changes to conf-sample.js?: no
Describe the problem
After commit a8d3f72, the darwin.js script fails to parse the results of individual simulations. It does NOT appear to be a permissions issue, as the folder gets created appropriately, and contains the expected json output files. darwin's behavior in this situation is to repeatedly run generation 0, since it is unable to parse/locate the results from that generation.
Source code / Error logs
No traceback. The console output of the issue is a single line stating "Couldn't find simulationResults for #" for every sim instance in the generation. The files DO exist. There are 3 non travis-ci commits after the working a8d3f72 commit. The most likely is commit bed3bb5
- Have I written custom code: No
- OS Platform and Distribution: Ubuntu 16.04
- Zenbot version: e41a01b
- Zenbot branch: unstable
- NodeJS version: 10.5.0
darwin.js fails to parse the JSON files created for each sim because the JSON files for the sims which cannot be found are missing lots of information and are not formatted correctly. Below, I will attach JSON files (as TXTs), sim_20.json & sim_32.json, created after two simulations in the same generation. sim_20.json is correctly formatted and has all the information about the sim, and therefore the "simulationResults for 20" were found. sim_32.json is formatted incorrectly and is missing information suggesting that sim 32 was not executed. Because of this, "simulationResults for 32" could not be found.
Note that both of those simulations were of the same generation which was completed, but for some reason sim 32 was not completed in proper. Also, unlike @tabbek, this issue only happens a few times per generation rather than for each simulation. The most times this error has occurred in one generation using the system, with which I am typing this comment, is 16 out of 150 simulations. On my other system, the issue happens for each simulation, and they are hardly being processed by my CPU meaning that a simulation might freeze forever.
@tisawe have you found what was the issues/solution to it?
I'm having the same issue... Anyone has the solution to this?