-
Notifications
You must be signed in to change notification settings - Fork 2k
Zenbot suddenly stops during longer simulations #1922
Comments
Also stops during paper trading over HitBTC after a few hours. |
unfortunately i have to confirm this behaviour! to me it seems to be partly a RAM (leaking?) problem... so setting for i wrote a little script to automatize the retry if the simulations fails, and most time after ~10-100 tries i get a completed simulation. but sometimes it seems impossible and even after ~1000 attempts there is not one completed simulation, so the only way is to split the timespan. 😞 |
Having the same problem with zenbot 4.1.0 on Ubuntu 18 and node v10.15.2, but I don't think it's a memory leak. I can see my available memory go down and up when monitoring Unfortunately I can't even get I've tried increasing Node's memory limit:
No difference. I notice that every time, before zenbot prematurely stops, it freezes for 30 seconds first. Then it exits with code 0. I can't find anything in |
I've added some debug to the code and I notice that often, the reason for the premature termination of zenbot seems to be that it has reached the end of the Mongo collection of trades that it is iterating through. Hoping that this may be a hint towards finding the cause. Perhaps it's related to holes in the backfilled history? |
hmmm... 🤔 but in this case, splitting the time span wouldn't/shouldn't change anything? - but at least at my setup, this always helps to get a complete simulation. and running backfill for the same time span several times over the last year didn't change anything... it never downloaded any additional data or changed anything at the simulations behaviour. 😐 |
I've never seen this behaviour before, until last week when I updated Node to v10.16 because of some dependency package failing to install. I used npm "n" package to switch between different node versions. Very simple to use.(https://www.npmjs.com/package/n?activeTab=versions) |
Indeed, switching back to Node v8.3 prolongs operation. Even without reinstalling |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
A very puzzling practice. So existing problems that bear no further discussion, no longer exist? |
FWIW I still have this problem, even with node 8.3, with node modules rebuilt. Just on 8.3 it happens less often than with higher versions of node, both on Mac and Linux. |
The cause lies in the bottom of I've fixed this for myself by rewriting this section of I may submit a PR if I think my changes are universally suitable. In any case the problem has nothing to do with Node.js versions. |
* Fix spontaneous bot exits Fixes #1922 by calling `getNext()` based on record count checks rather than the unreliable `.on('end')` cursor event * Set a somewhat recent ECMAScript version * Clean up so eslint passes
* Fix spontaneous bot exits Fixes DeviaVir#1922 by calling `getNext()` based on record count checks rather than the unreliable `.on('end')` cursor event * Set a somewhat recent ECMAScript version * Clean up so eslint passes
* Fix spontaneous bot exits Fixes DeviaVir#1922 by calling `getNext()` based on record count checks rather than the unreliable `.on('end')` cursor event * Set a somewhat recent ECMAScript version * Clean up so eslint passes
System information
c.days = 300
andc.currency_capital = 10000
Describe the problem
During longer simulations (~ more than 57 days for trend_ema) no matter the period, it suddenly stops without giving an output file or anything. It is different lengths depending on the strategy but none of them go ~ more than 100
Source code / Error logs
--debug doesn't give any error logs not does anything else I can find, it just suddenly stops
The text was updated successfully, but these errors were encountered: