user62948: I have an ESP8266 project which reads my gas consumption. The hardware and the project run satisfactorily. Sporadically, the ESP8266 can no longer write to its file system and therefore cannot save any data. As soon as I upload the complete data and the sketch to the device again, it works for a few months. After that, the mistake occurred again and again. What could that be?
The ESP8266 then has an "Exception" error. Unfortunately, I have not yet been able to find the reason for the error, why it always happens.
Does anyone have a tip on how I can isolate the problem?
https://github.com/HomeAutoUser/ESP-Gaszaehler-GZ16/tree/pre-release_v1.91

user14490: I have faced the same issue with my water leak detector, based on esp8266. It was caused by memory leak in the ESP binaries, so, I've updated it to ver 2.6.3
So, you can try to log (print to serial) free memory amount:
extern "C" 
{
    #include "user_interface.h"
}
uint32_t free = system_get_free_heap_size();


62948: <p>I have an ESP8266 project which reads my gas consumption. The hardware and the project run satisfactorily. Sporadically, the ESP8266 can no longer write to its file system and therefore cannot save any data. As soon as I upload the complete data and the sketch to the device again, it works for a few months. After that, the mistake occurred again and again. What could that be?</p>

<p>The ESP8266 then has an "Exception" error. Unfortunately, I have not yet been able to find the reason for the error, why it always happens.</p>

<p>Does anyone have a tip on how I can isolate the problem?</p>

<p><a href="https://github.com/HomeAutoUser/ESP-Gaszaehler-GZ16/tree/pre-release_v1.91" rel="nofollow noreferrer">https://github.com/HomeAutoUser/ESP-Gaszaehler-GZ16/tree/pre-release_v1.91</a></p>
 14490: <p>I have faced the same issue with my <a href="https://github.com/BG4444/waterLeakDetector" rel="nofollow noreferrer">water leak detector</a>, based on esp8266. It was caused by <a href="https://github.com/esp8266/Arduino/issues/4497" rel="nofollow noreferrer">memory leak</a> in the ESP binaries, so, I've updated it to ver 2.6.3</p>

<p>So, you can try to log (print to serial) free memory amount:</p>

<pre><code>extern "C" 
{
    #include "user_interface.h"
}
uint32_t free = system_get_free_heap_size();
</code></pre>
