Well I did add that to the webpage, it tells you free memory.
Because its a datalogger it uses the flash (I think), on power up the code determines the free memory, leaves 35kb spare for the esp to run and allocates the rest to the logger.
This sounds like it would cause the problem, but it works fine on a wemos, and the code was adapted from another system that also runs fine.
The site says 29kb is still free, but I havent been able to check that up to the point where it crashes.
I dont use spiffs to create the memory array, I just create a large array, I'm not sure if it goes into ram or flash to be honest.
And if it did the system only takes readings every 10 mins, and it takes a couple of weeks to fill the memory assigned, so a full memory write would be 2 weeks x 10,000, I dont think I'd be around long enough to see it fail.