Page 1 of 1

ESP8266 WebREPL becomes buggy after some time

Posted: Mon Nov 05, 2018 1:45 pm
by HermannSW
I do use 1.9.4 MicroPython a lot on ESP8266 (ESP01s) and ESP32 modules.

I only experience the issue on ESP8266 modules, but after some time (many days, perhaps weeks).
MicroPython gets into a bad state.
I use MicroPython on that modules only remotely via "webrepl.html" in browser or "webrepl_client.py", no serial connection.
After some time login is difficult (needs retries), or a connected active session gets terminated by module reboot.

I am able to fix the issue using these steps:
  1. connect module to USB port
  2. screen /dev/ttyUSB3 115200
  3. import webrepl_setup, then choose to disable WebREPL and reboot
  4. after reconnect with screen, import webrepl_setup, choose enable, change password to that used before and reboot
  5. disconnect module from USB port
  6. now WebREPL can be used again for many days, perhaps weeks
What can be the reason for the issue seen repeatedly?

Re: ESP8266 WebREPL becomes buggy after some time

Posted: Wed Nov 07, 2018 4:35 pm
by cyberlab
Hello, I think it may be something in your code that after some time runs out of memory, and therefore your application stops, I am using the same version and webrepl ESP-12E with several clients and have not had any problems.

Re: ESP8266 WebREPL becomes buggy after some time

Posted: Thu Nov 08, 2018 1:11 pm
by HermannSW
I doubt that running out of memory can be the reason, because if I powercycle the module, connecting with webrepl.html still does not work if module MicroPython is in that state. Logging in with serial screen session shows 26KB free memory then ...