• That's pretty strange... You get the memory leak with the disk error:

    627
    ERROR: Unable to write file : DISK_ERR
    618
    ERROR: Unable to write file : DISK_ERR
    560
    482
    413
    356
    

    But then the disk errors stop and you're still losing memory! You could try typing trace(), which dumps the internal datastructures. I guess you might be able to find something in there that hinted at where the memory was going...

    If you could try and get the simplest possible piece of code that still got the memory leaks then that'd really help matters.

    With the DISK_ERR, I'm unsure what to do as it's the filesystem lib that's failing and when I have tried it, it does recover eventually - the development version (or 1v56 when it is released) now returns false is appendFile fails, so you could try again if needed.

    By the way, Using strings in setInterval/etc it's really evil in Espruino - it's actually pretty efficient. It's just that jslint (which is what does the warnings) thinks it is and I haven't got around to convincing it otherwise :)

About

Avatar for Gordon @Gordon started